Skip to content

Commit

Permalink
fix podTargetLabels in all Prometheus ServiceMonitor CRDs (#487)
Browse files Browse the repository at this point in the history
* fix podTargetLabels in all Prometheus ServiceMonitor CRD's

Signed-off-by: Niclas Schad <[email protected]>

* add pr number

Signed-off-by: Niclas Schad <[email protected]>

---------

Signed-off-by: Niclas Schad <[email protected]>
  • Loading branch information
nschad authored Dec 18, 2023
1 parent 862bb7b commit 775aef4
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 20 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
* [DEPENDENCY] Update quay.io/cortexproject/cortex Docker tag to v1.15.2 #459
* [DEPENDENCY] Update quay.io/cortexproject/cortex Docker tag to v1.15.3 #471
* [BUGFIX] Correctly interpret .Capabilities.KubeVersion when it looks like a prerelease #457
* [BUGFIX] Fix podTargetLabels in all Prometheus ServiceMonitor CRDs #487

## 2.1.0 / 2023-03-17

Expand Down
4 changes: 2 additions & 2 deletions templates/alertmanager/alertmanager-servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ spec:
namespaceSelector:
matchNames:
- {{ .Release.Namespace | quote }}
{{- if .Values.purger.serviceMonitor.podTargetLabels }}
{{- if .Values.alertmanager.serviceMonitor.podTargetLabels }}
podTargetLabels:
{{- range .Values.purger.serviceMonitor.podTargetLabels }}
{{- range .Values.alertmanager.serviceMonitor.podTargetLabels }}
- {{ . }}
{{- end }}
{{- end }}
Expand Down
4 changes: 2 additions & 2 deletions templates/compactor/compactor-servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ spec:
namespaceSelector:
matchNames:
- {{ .Release.Namespace | quote }}
{{- if .Values.purger.serviceMonitor.podTargetLabels }}
{{- if .Values.compactor.serviceMonitor.podTargetLabels }}
podTargetLabels:
{{- range .Values.purger.serviceMonitor.podTargetLabels }}
{{- range .Values.compactor.serviceMonitor.podTargetLabels }}
- {{ . }}
{{- end }}
{{- end }}
Expand Down
4 changes: 2 additions & 2 deletions templates/distributor/distributor-servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ spec:
namespaceSelector:
matchNames:
- {{ .Release.Namespace | quote }}
{{- if .Values.purger.serviceMonitor.podTargetLabels }}
{{- if .Values.distributor.serviceMonitor.podTargetLabels }}
podTargetLabels:
{{- range .Values.purger.serviceMonitor.podTargetLabels }}
{{- range .Values.distributor.serviceMonitor.podTargetLabels }}
- {{ . }}
{{- end }}
{{- end }}
Expand Down
4 changes: 2 additions & 2 deletions templates/ingester/ingester-servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ spec:
namespaceSelector:
matchNames:
- {{ .Release.Namespace | quote }}
{{- if .Values.purger.serviceMonitor.podTargetLabels }}
{{- if .Values.ingester.serviceMonitor.podTargetLabels }}
podTargetLabels:
{{- range .Values.purger.serviceMonitor.podTargetLabels }}
{{- range .Values.ingester.serviceMonitor.podTargetLabels }}
- {{ . }}
{{- end }}
{{- end }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ spec:
namespaceSelector:
matchNames:
- {{ .Release.Namespace | quote }}
{{- if .Values.purger.serviceMonitor.podTargetLabels }}
{{- if .Values.overrides_exporter.serviceMonitor.podTargetLabels }}
podTargetLabels:
{{- range .Values.purger.serviceMonitor.podTargetLabels }}
{{- range .Values.overrides_exporter.serviceMonitor.podTargetLabels }}
- {{ . }}
{{- end }}
{{- end }}
Expand Down
4 changes: 2 additions & 2 deletions templates/querier/querier-servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ spec:
namespaceSelector:
matchNames:
- {{ .Release.Namespace | quote }}
{{- if .Values.purger.serviceMonitor.podTargetLabels }}
{{- if .Values.querier.serviceMonitor.podTargetLabels }}
podTargetLabels:
{{- range .Values.purger.serviceMonitor.podTargetLabels }}
{{- range .Values.querier.serviceMonitor.podTargetLabels }}
- {{ . }}
{{- end }}
{{- end }}
Expand Down
4 changes: 2 additions & 2 deletions templates/query-frontend/query-frontend-servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ spec:
namespaceSelector:
matchNames:
- {{ .Release.Namespace | quote }}
{{- if .Values.purger.serviceMonitor.podTargetLabels }}
{{- if .Values.query_frontend.serviceMonitor.podTargetLabels }}
podTargetLabels:
{{- range .Values.purger.serviceMonitor.podTargetLabels }}
{{- range .Values.query_frontend.serviceMonitor.podTargetLabels }}
- {{ . }}
{{- end }}
{{- end }}
Expand Down
4 changes: 2 additions & 2 deletions templates/query-scheduler/query-scheduler-servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ spec:
namespaceSelector:
matchNames:
- {{ .Release.Namespace | quote }}
{{- if .Values.purger.serviceMonitor.podTargetLabels }}
{{- if .Values.query_scheduler.serviceMonitor.podTargetLabels }}
podTargetLabels:
{{- range .Values.purger.serviceMonitor.podTargetLabels }}
{{- range .Values.query_scheduler.serviceMonitor.podTargetLabels }}
- {{ . }}
{{- end }}
{{- end }}
Expand Down
4 changes: 2 additions & 2 deletions templates/ruler/ruler-servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ spec:
namespaceSelector:
matchNames:
- {{ .Release.Namespace | quote }}
{{- if .Values.purger.serviceMonitor.podTargetLabels }}
{{- if .Values.ruler.serviceMonitor.podTargetLabels }}
podTargetLabels:
{{- range .Values.purger.serviceMonitor.podTargetLabels }}
{{- range .Values.ruler.serviceMonitor.podTargetLabels }}
- {{ . }}
{{- end }}
{{- end }}
Expand Down
4 changes: 2 additions & 2 deletions templates/store-gateway/store-gateway-servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ spec:
namespaceSelector:
matchNames:
- {{ .Release.Namespace | quote }}
{{- if .Values.purger.serviceMonitor.podTargetLabels }}
{{- if .Values.store_gateway.serviceMonitor.podTargetLabels }}
podTargetLabels:
{{- range .Values.purger.serviceMonitor.podTargetLabels }}
{{- range .Values.store_gateway.serviceMonitor.podTargetLabels }}
- {{ . }}
{{- end }}
{{- end }}
Expand Down

0 comments on commit 775aef4

Please sign in to comment.