From 51571d113caf6cee4919a07e34a2d018975412a4 Mon Sep 17 00:00:00 2001 From: OZGCloud <ozgcloud@mgm-tp.com> Date: Fri, 27 Sep 2024 11:13:46 +0200 Subject: [PATCH] OZG-6716 update service monitor --- src/main/helm/templates/service_monitor.yaml | 2 +- src/test/helm/service_monitor_test.yaml | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/main/helm/templates/service_monitor.yaml b/src/main/helm/templates/service_monitor.yaml index e107a61..75b7513 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 24e6a01..1ae8d9f 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 -- GitLab