Skip to content

Commit c8d18c9

Browse files
authored
test(cluster): fix monitoring test - removed bearerTokenSecret (#723)
After prometheus-operator/prometheus-operator#7975 released in prometheus-operator 0.86.0 the `bearerTokenSecret` is not present anymore in the serialized form unless explicitly set. This patch removes that field from all the PodMonitoring asserts. Signed-off-by: Marco Nenciarini <[email protected]>
1 parent 7fdc147 commit c8d18c9

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

charts/cluster/test/monitoring/01-monitoring_cluster-assert.yaml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,7 @@ spec:
4141
matchLabels:
4242
cnpg.io/cluster: monitoring-cluster
4343
podMetricsEndpoints:
44-
- bearerTokenSecret:
45-
key: ''
46-
name: ''
47-
relabelings:
44+
- relabelings:
4845
- targetLabel: environment
4946
replacement: test
5047
- targetLabel: team
@@ -66,10 +63,7 @@ spec:
6663
matchLabels:
6764
cnpg.io/poolerName: monitoring-cluster-pooler-rw
6865
podMetricsEndpoints:
69-
- bearerTokenSecret:
70-
key: ''
71-
name: ''
72-
relabelings:
66+
- relabelings:
7367
- targetLabel: type
7468
replacement: rw
7569
action: replace
@@ -93,10 +87,7 @@ spec:
9387
matchLabels:
9488
cnpg.io/poolerName: monitoring-cluster-pooler-ro
9589
podMetricsEndpoints:
96-
- bearerTokenSecret:
97-
key: ''
98-
name: ''
99-
relabelings:
90+
- relabelings:
10091
- targetLabel: type
10192
replacement: ro
10293
action: replace

0 commit comments

Comments
 (0)