Commit 604bc7e 1 parent ccb7243 commit 604bc7e Copy full SHA for 604bc7e
File tree 6 files changed +14
-6
lines changed
6 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ apiVersion: monitoring.coreos.com/v1
3
3
kind : PodMonitor
4
4
metadata :
5
5
name : {{ .Values.operator.name }}
6
- {{- with .Values.additionalAnnotations }}
6
+ {{- with (mergeOverwrite (deepCopy .Values.additionalAnnotations) .Values.prometheus.operator.podMonitor.annotations) }}
7
7
annotations :
8
8
{{- toYaml . | nindent 4 }}
9
9
{{- end }}
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ apiVersion: monitoring.coreos.com/v1
3
3
kind : ServiceMonitor
4
4
metadata :
5
5
name : {{ .Values.operator.name }}
6
- {{- with .Values.additionalAnnotations }}
6
+ {{- with (mergeOverwrite (deepCopy .Values.additionalAnnotations) .Values.prometheus.operator.serviceMonitor.annotations) }}
7
7
annotations :
8
8
{{- toYaml . | nindent 4 }}
9
9
{{- end }}
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ apiVersion: monitoring.coreos.com/v1
3
3
kind : PodMonitor
4
4
metadata :
5
5
name : {{ .Values.operator.name }}-metrics-apiserver
6
- {{- with .Values.additionalAnnotations }}
6
+ {{- with (mergeOverwrite (deepCopy .Values.additionalAnnotations) .Values.prometheus.metricServer.podMonitor.annotations) }}
7
7
annotations :
8
8
{{- toYaml . | nindent 4 }}
9
9
{{- end }}
Original file line number Diff line number Diff line change @@ -3,9 +3,11 @@ apiVersion: monitoring.coreos.com/v1
3
3
kind : ServiceMonitor
4
4
metadata :
5
5
name : {{ .Values.operator.name }}-metrics-apiserver
6
- {{- with .Values.additionalAnnotations }}
6
+ {{- with (mergeOverwrite (deepCopy .Values.additionalAnnotations) .Values.prometheus.metricServer.serviceMonitor.annotations) }}
7
7
annotations :
8
- {{- toYaml . | nindent 4 }}
8
+ {{- range $key, $value := . }}
9
+ {{ $key }}: {{ $value | quote }}
10
+ {{- end }}
9
11
{{- end }}
10
12
labels :
11
13
app.kubernetes.io/name : {{ .Values.operator.name }}
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ apiVersion: monitoring.coreos.com/v1
4
4
kind : ServiceMonitor
5
5
metadata :
6
6
name : {{ .Values.webhooks.name }}
7
- {{- with .Values.additionalAnnotations }}
7
+ {{- with (mergeOverwrite (deepCopy .Values.additionalAnnotations) .Values.prometheus.webhooks.serviceMonitor.annotations) }}
8
8
annotations :
9
9
{{- toYaml . | nindent 4 }}
10
10
{{- end }}
Original file line number Diff line number Diff line change @@ -369,6 +369,7 @@ prometheus:
369
369
serviceMonitor :
370
370
# Enables ServiceMonitor creation for the Prometheus Operator
371
371
enabled : false
372
+ annotations : {}
372
373
jobLabel :
373
374
targetLabels : []
374
375
podTargetLabels : []
@@ -381,6 +382,7 @@ prometheus:
381
382
podMonitor :
382
383
# Enables PodMonitor creation for the Prometheus Operator
383
384
enabled : false
385
+ annotations : {}
384
386
interval :
385
387
scrapeTimeout :
386
388
namespace :
@@ -392,6 +394,7 @@ prometheus:
392
394
serviceMonitor :
393
395
# Enables ServiceMonitor creation for the Prometheus Operator
394
396
enabled : false
397
+ annotations : {}
395
398
jobLabel :
396
399
targetLabels : []
397
400
podTargetLabels : []
@@ -404,6 +407,7 @@ prometheus:
404
407
podMonitor :
405
408
# Enables PodMonitor creation for the Prometheus Operator
406
409
enabled : false
410
+ annotations : {}
407
411
interval :
408
412
scrapeTimeout :
409
413
namespace :
@@ -429,6 +433,7 @@ prometheus:
429
433
serviceMonitor :
430
434
# Enables ServiceMonitor creation for the Prometheus webhooks
431
435
enabled : false
436
+ annotations : {}
432
437
jobLabel :
433
438
targetLabels : []
434
439
podTargetLabels : []
@@ -441,6 +446,7 @@ prometheus:
441
446
prometheusRules :
442
447
# Enables PrometheusRules creation for the Prometheus Operator
443
448
enabled : false
449
+ annotations : {}
444
450
namespace :
445
451
additionalLabels : {}
446
452
alerts : []
You can’t perform that action at this time.
0 commit comments