Skip to content

Commit 53bab05

Browse files
authored
[chore] Fix aks test (#1747)
* [chore] do not automount serviceaccount tokens for AKS test * add comment for AKS * tmp disable operator deployment on AKS cluster * tmp disable operator deployment on AKS cluster; add kubeletstats config
1 parent d457df1 commit 53bab05

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

functional_tests/functional/testdata/values/aks_test_values.yaml.tmpl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ splunkPlatform:
1111

1212
agent:
1313
config:
14+
receivers:
15+
kubeletstats:
16+
insecure_skip_verify: true
1417
exporters:
1518
otlp:
1619
endpoint: {{ .OtlpEndpoint }}
@@ -70,11 +73,14 @@ livenessProbe:
7073
operatorcrds:
7174
install: true
7275
operator:
73-
enabled: true
76+
enabled: false
7477
admissionWebhooks:
7578
certManager:
7679
enabled: false
7780
autoGenerateCert:
7881
enabled: true
7982
nodeSelector:
8083
kubernetes.io/os: "linux"
84+
85+
featureGates:
86+
explicitMountServiceAccountToken: true

helm-charts/splunk-otel-collector/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1390,6 +1390,7 @@ featureGates:
13901390
noDropLogsPipeline: false
13911391
# The feature gate enables an experiment to define explicitly tokens on the daemonset and gateway, cluster receiver
13921392
# and target allocator deployments.
1393+
# AKS clusters with Azure Policy enabled might need to enable this to resolve automountServiceAccountToken policy.
13931394
explicitMountServiceAccountToken: false
13941395
# Use a specific metrics pipeline to report control plane metrics as histograms.
13951396
useControlPlaneMetricsHistogramData: false

0 commit comments

Comments
 (0)