Skip to content

Commit f79e8d4

Browse files
authored
Merge pull request #7072 from Kellen275/kgsappington/servicemonitor-annotations
Only render ServiceMonitor annotations if not empty
2 parents 8fc7566 + dfb30e6 commit f79e8d4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

charts/cluster-autoscaler/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ name: cluster-autoscaler
1111
sources:
1212
- https://github.com/kubernetes/autoscaler/tree/master/cluster-autoscaler
1313
type: application
14-
version: 9.42.0
14+
version: 9.43.0

charts/cluster-autoscaler/templates/servicemonitor.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ metadata:
66
{{- if .Values.serviceMonitor.namespace }}
77
namespace: {{ .Values.serviceMonitor.namespace }}
88
{{- end }}
9+
{{- if .Values.serviceMonitor.annotations }}
910
annotations:
1011
{{ toYaml .Values.serviceMonitor.annotations | indent 4 }}
12+
{{- end }}
1113
labels:
1214
{{- range $key, $value := .Values.serviceMonitor.selector }}
1315
{{ $key }}: {{ $value | quote }}

0 commit comments

Comments
 (0)