Skip to content
Snippets Groups Projects
Commit 416ae821 authored by Nacho Barrientos's avatar Nacho Barrientos
Browse files

Cover with a test that extraLabelsForMetrics are honoured

parent e24f1fde
1 merge request!55Make sure that k8s_cluster_name is set when it has to
Pipeline #11010880 passed
...@@ -38,6 +38,18 @@ tests: ...@@ -38,6 +38,18 @@ tests:
- equal: - equal:
path: spec.externalLabels.k8s_cluster_name path: spec.externalLabels.k8s_cluster_name
value: test value: test
- it: extra labels for metrics are honoured
set:
kubernetes.clusterName: test
metrics.prometheus.server.extraLabelsForMetrics:
test: bar
asserts:
- equal:
path: spec.externalLabels.k8s_cluster_name
value: test
- equal:
path: spec.externalLabels.test
value: bar
- it: should be deployed with no remoteWrites if no fluentbit is available - it: should be deployed with no remoteWrites if no fluentbit is available
set: set:
kubernetes.clusterName: test kubernetes.clusterName: test
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment