diff --git a/src/main/helm/templates/service_monitor.yaml b/src/main/helm/templates/service_monitor.yaml index e107a617ce446f0ffe1d0de30c160aef42bea568..75b75133512c9979d287b252e97a33db65e2066c 100644 --- a/src/main/helm/templates/service_monitor.yaml +++ b/src/main/helm/templates/service_monitor.yaml @@ -40,4 +40,4 @@ spec: selector: matchLabels: {{- include "app.matchLabels" . | indent 6 }} - component: bayernid-proxy-service \ No newline at end of file + component: bayernid-proxy \ No newline at end of file diff --git a/src/test/helm/service_monitor_test.yaml b/src/test/helm/service_monitor_test.yaml index 24e6a01eeda28dfb75c699550c6fd5000452156d..1ae8d9f40704d4439dfa9a8912f88e5d3532181c 100644 --- a/src/test/helm/service_monitor_test.yaml +++ b/src/test/helm/service_monitor_test.yaml @@ -81,11 +81,7 @@ tests: - contains: path: spec.namespaceSelector.matchNames content: sh-helm-test - - it: selector should contain the component label with the value bayernid-proxy-service - asserts: - - equal: - path: spec.selector.matchLabels["component"] - value: bayernid-proxy-service + - it: selector should contain helm recommended labels name and namespace asserts: - equal: @@ -93,4 +89,4 @@ tests: value: app.kubernetes.io/name: bayernid-proxy app.kubernetes.io/namespace: sh-helm-test - component: bayernid-proxy-service + component: bayernid-proxy