-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ELASTIC_APM_ACTIVATION_METHOD=K8S_ATTACH
, prefer `ELASTIC_APM_SERVE…
…R_URL`; integration.yml workflow tweak (#87) * test: drop redundant kind cluster creation in integration.yml workflow * use ELASTIC_APM_SERVER_URL instead of the plural; the plural works with java, but not the Node.js or other APM agents * set ELASTIC_APM_ACTIVATION_METHOD=K8S_ATTACH in code rather than values.yaml This means that custom 'webhookConfig.agent.*' names do not need to repeat this envvar. It *does* mean that newer Node.js and .NET APM agents that use the newer value (used to be 'K8S') will be required for the 'activation_method' to get set correctly. Closes: #91 * fix tests * improve the workflow step name
- Loading branch information
Showing
10 changed files
with
27 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name: Agents Integration Testing | ||
|
||
on: | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
|
@@ -18,10 +18,10 @@ on: | |
paths-ignore: | ||
- '**.md' | ||
- '**.asciidoc' | ||
|
||
env: | ||
AGENT_TESTS: java nodejs | ||
|
||
jobs: | ||
integration-test: | ||
runs-on: ubuntu-latest | ||
|
@@ -31,15 +31,12 @@ jobs: | |
with: | ||
fetch-depth: 0 | ||
|
||
- name: Create kind cluster | ||
uses: helm/[email protected] | ||
|
||
- name: Create Local Registry | ||
run: | ||
- name: Create Kind cluster and local Docker registry | ||
run: | ||
sh test/mock/kind-with-registry.sh | ||
|
||
- name: Create Mock APM server image | ||
run: | ||
run: | ||
cd test/mock; | ||
docker build -t mock-apm-server .; | ||
docker tag mock-apm-server localhost:5001/registry/mock-apm-server; | ||
|
@@ -72,7 +69,7 @@ jobs: | |
version: v3.11.2 | ||
|
||
- name: Install webhook | ||
run: | ||
run: | ||
cd charts; | ||
helm install webhook-chart apm-attacher/ --namespace=elastic-apm --create-namespace --values ../test/mock/test_values.yaml; | ||
sleep 5; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters