diff --git a/postgresql/templates/monitoring/prometheus/exporter-job-create-user.yaml b/postgresql/templates/monitoring/prometheus/exporter-job-create-user.yaml index f74b66a67..6ff71f105 100644 --- a/postgresql/templates/monitoring/prometheus/exporter-job-create-user.yaml +++ b/postgresql/templates/monitoring/prometheus/exporter-job-create-user.yaml @@ -29,6 +29,9 @@ spec: metadata: labels: {{ tuple $envAll "prometheus_postgresql_exporter" "create_user" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }} + annotations: +{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" | indent 8 }} +{{ dict "envAll" $envAll "podName" "prometheus-postgresql-exporter-create-user" "containerNames" (list "prometheus-postgresql-exporter-create-user") | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 8 }} spec: serviceAccountName: {{ $serviceAccountName }} restartPolicy: OnFailure diff --git a/postgresql/values_overrides/apparmor.yaml b/postgresql/values_overrides/apparmor.yaml index 7025648f9..cdbdb8743 100644 --- a/postgresql/values_overrides/apparmor.yaml +++ b/postgresql/values_overrides/apparmor.yaml @@ -6,3 +6,5 @@ pod: set-volume-perms: runtime/default prometheus-postgresql-exporter: postgresql-exporter: runtime/default + prometheus-postgresql-exporter-create-user: + prometheus-postgresql-exporter-create-user: runtime/default