From 81526f8180f53d3d896896570127cfe05405e7ca Mon Sep 17 00:00:00 2001 From: dklimpel <5740567+dklimpel@users.noreply.github.com> Date: Thu, 31 Oct 2024 11:31:48 +0100 Subject: [PATCH] fix: add labels on servicemonitor --- livekit-server/templates/servicemonitor.yaml | 3 +++ livekit-server/values.yaml | 2 ++ 2 files changed, 5 insertions(+) diff --git a/livekit-server/templates/servicemonitor.yaml b/livekit-server/templates/servicemonitor.yaml index 73b62a9..11acb52 100644 --- a/livekit-server/templates/servicemonitor.yaml +++ b/livekit-server/templates/servicemonitor.yaml @@ -5,6 +5,9 @@ metadata: name: {{ include "livekit-server.serviceMonitorName" . }} labels: {{- include "livekit-server.labels" . | nindent 4 }} + {{- with .Values.serviceMonitor.labels }} + {{- toYaml . | nindent 4 }} + {{- end }} {{- with .Values.serviceMonitor.annotations }} annotations: {{- toYaml . | nindent 4 }} diff --git a/livekit-server/values.yaml b/livekit-server/values.yaml index bcf6d51..c4332b0 100644 --- a/livekit-server/values.yaml +++ b/livekit-server/values.yaml @@ -143,6 +143,8 @@ gcp: serviceMonitor: # Specifies whether a service monitor should be created create: false + # Labels to add to the service monitor + labels: {} # Annotations to add to the service monitor annotations: {} # The name of the service monitor to use.