Skip to content

Commit a7476d0

Browse files
committed
fix(test): fix nightlies e2e for k8s
1 parent 67e74fd commit a7476d0

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

.github/workflows/nightly.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ jobs:
124124
ARCH: amd64
125125
BUILD_WITH: cargo
126126
with:
127-
retry_attempts: 15
127+
retry_attempts: 30
128+
retry_seconds: 30
128129
agent_enabled: false
129130
spec_path: test/k8s-e2e/e2e-fleet-control.yml
130131
account_id: ${{ secrets.AC_PROD_E2E_ACCOUNT_ID }}
@@ -168,4 +169,3 @@ jobs:
168169
env:
169170
SLACK_WEBHOOK_URL: ${{ secrets.AC_SLACK_WEBHOOK }}
170171
GITHUB_JOB_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
171-

test/k8s-e2e/agent-control-fleet-control.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ agent-control-deployment:
44
config:
55
fleet_control:
66
enabled: true
7-
fleet_id: NjQyNTg2NXxOR0VQfEZMRUVUfDAxOTUzY2RkLTU1MWEtN2Y3NS1iZDhmLWI0YjA0Yzg5MmNhMQ
7+
# Fleet with name 'ac-e2e-2'. The sub-agent reports data to the 'Agent Control Canaries' account.
8+
fleet_id: NjQyNTg2NXxOR0VQfEZMRUVUfDAxOTVjOGJkLTc3ZjYtN2Y2Ni05ZDQ4LTgxMzFlYTJlNWRkMw
89
auth:
910
secret:
1011
create: false

test/k8s-e2e/e2e-fleet-control.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,14 @@ scenarios:
2222
nrqls:
2323
# Check that newrelic-infrastructure data is reported, an extra where testKey=$SCENARIO_TAG is always added.
2424
- query: "FROM K8sClusterSample SELECT * WHERE `config_origin` = 'remote'"
25+
# Expected remote config (already deployed in the corresponding fleet):
26+
# chart_version: "*"
27+
# chart_values:
28+
# global: # add 'cluster_name' (nri-kubernetes events have 'clusterName' attribute)
29+
# customAttributes:
30+
# cluster_name: ${nr-env:NR_CLUSTER_NAME}
31+
# config_origin: remote
32+
# nri-metadata-injection:
33+
# # TODO we are currently disabling the metadata injection since if enabled it breaks when installed
34+
# # together with the gateway
35+
# enabled: false

0 commit comments

Comments
 (0)