diff --git a/helm/templates/prometheus/prometheus.yaml b/helm/templates/prometheus/prometheus.yaml index 196d68487824d7d8e130c56d11cec2687304d7e6..b0279821840a26bc735060db6255e089bcc4f347 100644 --- a/helm/templates/prometheus/prometheus.yaml +++ b/helm/templates/prometheus/prometheus.yaml @@ -5,6 +5,10 @@ metadata: name: {{ template "theodolite.fullname" . }}-prometheus spec: serviceAccountName: {{ template "theodolite.fullname" . }}-prometheus + {{- with .Values.prometheus.podMetadata }} + podMetadata: + {{- toYaml . | nindent 8 }} + {{- end}} podMonitorSelector: {} serviceMonitorSelector: {} resources: diff --git a/helm/templates/theodolite/theodolite-operator.yaml b/helm/templates/theodolite/theodolite-operator.yaml index f2669686eada049d33c5c88169d8d2ec3af84261..c8714fc3249db86efe64123d8f7092b0619ce3c7 100644 --- a/helm/templates/theodolite/theodolite-operator.yaml +++ b/helm/templates/theodolite/theodolite-operator.yaml @@ -12,6 +12,10 @@ spec: metadata: labels: app: {{ include "theodolite.fullname" . }} + {{- with .Values.operator.podAnnotations }} + annotations: + {{ toYaml . | indent 2 }} + {{- end }} spec: terminationGracePeriodSeconds: 0 serviceAccountName: {{ include "theodolite.serviceAccountName" . }} diff --git a/helm/values.yaml b/helm/values.yaml index ec004607b41daa81e694a06fa5f644d65941ecd2..1fe1938b9d2257eba4e49b581815937e1a400719 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -285,6 +285,7 @@ kube-prometheus-stack: ### prometheus: enabled: true + podMetadata: {} nodeSelector: {} serviceAccount: @@ -306,6 +307,8 @@ operator: nodeSelector: {} + podAnnotations: {} + sloChecker: generic: enabled: true