Skip to content

Commit 22ea3df

Browse files
committed
Fix tls kuttl-test suite
COO 1.3.1 released recently, which increased how many rulefiles volumeMounts the prometheus pod has. We're checking that the tls certificates are being mounted into the prometheus pod and so this change in count of volumeMounts resulted in the kuttl-tests failing with: .spec.containers.volumeMounts: slice length mismatch: 9 != 11 This PR adds the 2 additional volume mounts in the kuttl-test assert.
1 parent b838708 commit 22ea3df

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

test/kuttl/tests/tls/02-assert.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,10 @@ spec:
239239
readOnly: true
240240
- mountPath: /etc/prometheus/rules/prometheus-telemetry-kuttl-metricstorage-rulefiles-0
241241
name: prometheus-telemetry-kuttl-metricstorage-rulefiles-0
242+
- mountPath: /etc/prometheus/rules/prometheus-telemetry-kuttl-metricstorage-rulefiles-1
243+
name: prometheus-telemetry-kuttl-metricstorage-rulefiles-1
244+
- mountPath: /etc/prometheus/rules/prometheus-telemetry-kuttl-metricstorage-rulefiles-2
245+
name: prometheus-telemetry-kuttl-metricstorage-rulefiles-2
242246
- mountPath: /etc/prometheus/web_config/web-config.yaml
243247
name: web-config
244248
readOnly: true

test/kuttl/tests/tls/03-assert.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ spec:
2424
readOnly: true
2525
- mountPath: /etc/prometheus/rules/prometheus-telemetry-kuttl-metricstorage-rulefiles-0
2626
name: prometheus-telemetry-kuttl-metricstorage-rulefiles-0
27+
- mountPath: /etc/prometheus/rules/prometheus-telemetry-kuttl-metricstorage-rulefiles-1
28+
name: prometheus-telemetry-kuttl-metricstorage-rulefiles-1
29+
- mountPath: /etc/prometheus/rules/prometheus-telemetry-kuttl-metricstorage-rulefiles-2
30+
name: prometheus-telemetry-kuttl-metricstorage-rulefiles-2
2731
- mountPath: /etc/prometheus/web_config/web-config.yaml
2832
name: web-config
2933
readOnly: true

0 commit comments

Comments
 (0)