[FIX] Fix Apparmor for postgresql-openstack-create-user

Change-Id: I4ae738636bff152a57bf292786d3855384e3529b
This commit is contained in:
dt241s@att.com 2020-02-24 04:38:36 +00:00 committed by diwakar thyagaraj
parent e54f5f778f
commit 8caf00b12c
2 changed files with 5 additions and 0 deletions

View File

@ -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

View File

@ -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