From fd524f22142e30d888ee74ca01463766275945d0 Mon Sep 17 00:00:00 2001 From: Douglas Camata <159076+douglascamata@users.noreply.github.com> Date: Fri, 19 Jan 2024 13:15:19 +0100 Subject: [PATCH] Remove version label from obsctl-reloader service monitor (#674) --- resources/services/observatorium-template.yaml | 1 - services/observatorium.libsonnet | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/resources/services/observatorium-template.yaml b/resources/services/observatorium-template.yaml index 41211e6d9e..8e4eaaa626 100644 --- a/resources/services/observatorium-template.yaml +++ b/resources/services/observatorium-template.yaml @@ -310,7 +310,6 @@ objects: app.kubernetes.io/instance: observatorium app.kubernetes.io/name: rules-obsctl-reloader app.kubernetes.io/part-of: observatorium - app.kubernetes.io/version: ${OBSCTL_RELOADER_IMAGE_TAG} - apiVersion: apps/v1 kind: Deployment metadata: diff --git a/services/observatorium.libsonnet b/services/observatorium.libsonnet index 8e7b3d2f50..80c1a89349 100644 --- a/services/observatorium.libsonnet +++ b/services/observatorium.libsonnet @@ -231,9 +231,15 @@ local obsctlReloader = (import 'github.com/rhobs/obsctl-reloader/jsonnet/lib/obs metadata+: { labels+: { prometheus: 'app-sre', + 'app.kubernetes.io/version':: 'hidden', }, }, spec+: { + selector+: { + matchLabels+: { + 'app.kubernetes.io/version':: 'hidden', + }, + }, namespaceSelector: { // NOTICE: // When using the ${{PARAMETER_NAME}} syntax only a single parameter reference is allowed and leading/trailing characters are not permitted.