Remove service monitor labels from headless services (#25171)

Signed-off-by: Fran Mulero <fmulero@vmware.com>
This commit is contained in:
Fran Mulero
2024-04-22 13:38:20 +02:00
committed by GitHub
parent 758a1566fd
commit 38947e0e76
4 changed files with 1 additions and 4 deletions

View File

@@ -35,4 +35,4 @@ maintainers:
name: thanos
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/thanos
version: 15.1.0
version: 15.1.1

View File

@@ -11,7 +11,6 @@ metadata:
namespace: {{ include "common.names.namespace" . }}
labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
app.kubernetes.io/component: receive
{{- include "thanos.servicemonitor.matchLabels" . | nindent 4 -}}
{{- if or .Values.receive.service.headless.annotations .Values.commonAnnotations }}
{{- $annotations := include "common.tplvalues.merge" ( dict "values" ( list .Values.receive.service.headless.annotations .Values.commonAnnotations ) "context" . ) }}
annotations: {{- include "common.tplvalues.render" ( dict "value" $annotations "context" $) | nindent 4 }}

View File

@@ -11,7 +11,6 @@ metadata:
namespace: {{ include "common.names.namespace" . }}
labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
app.kubernetes.io/component: ruler
{{- include "thanos.servicemonitor.matchLabels" . | nindent 4 -}}
{{- if or .Values.ruler.service.headless.annotations .Values.commonAnnotations }}
{{- $annotations := include "common.tplvalues.merge" ( dict "values" ( list .Values.ruler.service.headless.annotations .Values.commonAnnotations ) "context" . ) }}
annotations: {{- include "common.tplvalues.render" ( dict "value" $annotations "context" $) | nindent 4 }}

View File

@@ -11,7 +11,6 @@ metadata:
namespace: {{ include "common.names.namespace" . }}
labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
app.kubernetes.io/component: storegateway
{{- include "thanos.servicemonitor.matchLabels" . | nindent 4 -}}
{{- if or .Values.storegateway.service.headless.annotations .Values.commonAnnotations }}
{{- $annotations := include "common.tplvalues.merge" ( dict "values" ( list .Values.storegateway.service.headless.annotations .Values.commonAnnotations ) "context" . ) }}
annotations: {{- include "common.tplvalues.render" ( dict "value" $annotations "context" $) | nindent 4 }}