diff --git a/charts/cluster-autoscaler/Chart.yaml b/charts/cluster-autoscaler/Chart.yaml index fbe7fa80760..6e8e5de0e29 100644 --- a/charts/cluster-autoscaler/Chart.yaml +++ b/charts/cluster-autoscaler/Chart.yaml @@ -11,4 +11,4 @@ name: cluster-autoscaler sources: - https://github.com/kubernetes/autoscaler/tree/master/cluster-autoscaler type: application -version: 9.42.0 +version: 9.43.0 diff --git a/charts/cluster-autoscaler/templates/servicemonitor.yaml b/charts/cluster-autoscaler/templates/servicemonitor.yaml index 99da7fbd5f5..9ce83a2ef6e 100644 --- a/charts/cluster-autoscaler/templates/servicemonitor.yaml +++ b/charts/cluster-autoscaler/templates/servicemonitor.yaml @@ -6,8 +6,10 @@ metadata: {{- if .Values.serviceMonitor.namespace }} namespace: {{ .Values.serviceMonitor.namespace }} {{- end }} + {{- if .Values.serviceMonitor.annotations }} annotations: {{ toYaml .Values.serviceMonitor.annotations | indent 4 }} + {{- end }} labels: {{- range $key, $value := .Values.serviceMonitor.selector }} {{ $key }}: {{ $value | quote }}