Skip to content

Commit

Permalink
fixing annotations style for svcms
Browse files Browse the repository at this point in the history
  • Loading branch information
tkennes committed May 9, 2023
1 parent db363c4 commit e6aa99c
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 5 deletions.
4 changes: 3 additions & 1 deletion keda/templates/17-keda-podmonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
name: {{ .Values.operator.name }}
{{- with .Values.prometheus.operator.podMonitor.annotations }}
annotations:
{{- toYaml .Values.additionalAnnotations | nindent 4 }}
{{- toYaml . | nindent 4 }}
{{- end }}
labels:
app.kubernetes.io/name: {{ .Values.operator.name }}
{{- include "keda.labels" . | indent 4 }}
Expand Down
4 changes: 3 additions & 1 deletion keda/templates/17-keda-servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: {{ .Values.operator.name }}
{{- with .Values.prometheus.operator.serviceMonitor.annotations }}
annotations:
{{- toYaml .Values.prometheus.operator.serviceMonitor.additionalAnnotations | nindent 4 }}
{{- toYaml . | nindent 4 }}
{{- end }}
labels:
app.kubernetes.io/name: {{ .Values.operator.name }}
{{- include "keda.labels" . | indent 4 }}
Expand Down
4 changes: 3 additions & 1 deletion keda/templates/26-metrics-podmonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
name: {{ .Values.operator.name }}-metrics-apiserver
{{- with .Values.prometheus.metricServer.podMonitor.annotations }}
annotations:
{{- toYaml .Values.additionalAnnotations | nindent 4 }}
{{- toYaml . | nindent 4 }}
{{- end }}
labels:
app.kubernetes.io/name: {{ .Values.operator.name }}
{{- include "keda.labels" . | indent 4 }}
Expand Down
4 changes: 3 additions & 1 deletion keda/templates/27-metrics-servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: {{ .Values.operator.name }}-metrics-apiserver
{{- with .Values.prometheus.metricServer.serviceMonitor.annotations }}
annotations:
{{- toYaml .Values.prometheus.metricServer.serviceMonitor.additionalAnnotations | nindent 4 }}
{{- toYaml . | nindent 4 }}
{{- end }}
labels:
app.kubernetes.io/name: {{ .Values.operator.name }}
{{- include "keda.labels" . | indent 4 }}
Expand Down
4 changes: 3 additions & 1 deletion keda/templates/33-webhooks-servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: {{ .Values.webhooks.name }}
{{- with .Values.prometheus.webhooks.serviceMonitor.annotations }}
annotations:
{{- toYaml .Values.prometheus.webhooks.serviceMonitor.additionalAnnotations | nindent 4 }}
{{- toYaml . | nindent 4 }}
{{- end }}
labels:
app.kubernetes.io/name: {{ .Values.webhooks.name }}
{{- include "keda.labels" . | indent 4 }}
Expand Down
5 changes: 5 additions & 0 deletions keda/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,7 @@ prometheus:
serviceMonitor:
# Enables ServiceMonitor creation for the Prometheus Operator
enabled: false
annotations: {}
jobLabel:
targetLabels: []
podTargetLabels: []
Expand All @@ -381,6 +382,7 @@ prometheus:
podMonitor:
# Enables PodMonitor creation for the Prometheus Operator
enabled: false
annotations: {}
interval:
scrapeTimeout:
namespace:
Expand All @@ -392,6 +394,7 @@ prometheus:
serviceMonitor:
# Enables ServiceMonitor creation for the Prometheus Operator
enabled: false
annotations: {}
jobLabel:
targetLabels: []
podTargetLabels: []
Expand All @@ -404,6 +407,7 @@ prometheus:
podMonitor:
# Enables PodMonitor creation for the Prometheus Operator
enabled: false
annotations: {}
interval:
scrapeTimeout:
namespace:
Expand All @@ -429,6 +433,7 @@ prometheus:
serviceMonitor:
# Enables ServiceMonitor creation for the Prometheus webhooks
enabled: false
annotations: {}
jobLabel:
targetLabels: []
podTargetLabels: []
Expand Down

0 comments on commit e6aa99c

Please sign in to comment.