From 8caf00b12cdecee93f30b24c542b2f6471e0e14d Mon Sep 17 00:00:00 2001 From: "dt241s@att.com" Date: Mon, 24 Feb 2020 04:38:36 +0000 Subject: [PATCH] [FIX] Fix Apparmor for postgresql-openstack-create-user Change-Id: I4ae738636bff152a57bf292786d3855384e3529b --- .../monitoring/prometheus/exporter-job-create-user.yaml | 3 +++ postgresql/values_overrides/apparmor.yaml | 2 ++ 2 files changed, 5 insertions(+) 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