Enable apparmor to Ceph post-apply pods

Logs : https://storage.gra.cloud.ovh.net/v1/AUTH_dcaab5e32b234d56b626f72581e3644c/zuul_opendev_logs_d16/739849/5/experimental/openstack-helm-infra-apparmor/d167181/primary/objects/namespaced/ceph/pods/ceph-osd-post-apply-zr55t.yaml

Change-Id: Ic5d4fe83ad16a7fc551162275ee3aa34c543ec18
Signed-off-by: diwakar thyagaraj <diwakar.chitoor.thyagaraj@att.com>
This commit is contained in:
diwakar thyagaraj 2020-07-07 20:38:58 +00:00
parent 0d5aeaacbb
commit 5f59695ad4
2 changed files with 10 additions and 0 deletions

View File

@ -75,6 +75,9 @@ spec:
metadata:
labels:
{{ tuple $envAll "ceph-upgrade" "post-apply" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
annotations:
configmap-bin-hash: {{ tuple "configmap-bin.yaml" . | include "helm-toolkit.utils.hash" }}
{{ dict "envAll" $envAll "podName" "ceph-osd-post-apply" "containerNames" (list "ceph-osd-post-apply" "init" ) | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 8 }}
spec:
{{ dict "envAll" $envAll "application" "post_apply" | include "helm-toolkit.snippets.kubernetes_pod_security_context" | indent 6 }}
serviceAccountName: {{ $serviceAccountName }}

View File

@ -11,4 +11,11 @@ pod:
ceph-osd-test:
init: runtime/default
ceph-cluster-helm-test: runtime/default
ceph-osd-post-apply:
ceph-osd-post-apply: runtime/default
init: runtime/default
lifecycle:
upgrades:
daemonsets:
pod_replacement_strategy: OnDelete
...