Add Application Armor to Ceph-Provisioners-config test

1) Added  to service account name insted of traditional pod name
   to resolve for dynamic release names.

Change-Id: Ibf4c69415e69a7baca2e3b96bcb23851e68d07d8
This commit is contained in:
dt241s@att.com 2020-08-02 03:51:26 +00:00 committed by diwakar thyagaraj
parent 3ce0170da8
commit 4c46b2662a
2 changed files with 4 additions and 1 deletions

View File

@ -67,7 +67,7 @@ metadata:
{{ tuple $envAll "ceph" "provisioner-test" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }} {{ tuple $envAll "ceph" "provisioner-test" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }}
annotations: annotations:
"helm.sh/hook": test-success "helm.sh/hook": test-success
{{ dict "envAll" $envAll "podName" "ceph-provisioner-test" "containerNames" (list "init" "ceph-provisioner-helm-test") | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 4 }} {{ dict "envAll" $envAll "podName" $serviceAccountName "containerNames" (list "init" "ceph-provisioner-helm-test") | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 4 }}
spec: spec:
{{ dict "envAll" $envAll "application" "test" | include "helm-toolkit.snippets.kubernetes_pod_security_context" | indent 2 }} {{ dict "envAll" $envAll "application" "test" | include "helm-toolkit.snippets.kubernetes_pod_security_context" | indent 2 }}
restartPolicy: Never restartPolicy: Never

View File

@ -14,6 +14,9 @@ pod:
ceph-provisioner-test: ceph-provisioner-test:
init: runtime/default init: runtime/default
ceph-provisioner-helm-test: runtime/default ceph-provisioner-helm-test: runtime/default
ceph-osh-infra-config-test:
init: runtime/default
ceph-provisioner-helm-test: runtime/default
ceph-provisioners-ceph-ns-key-generator: ceph-provisioners-ceph-ns-key-generator:
ceph-storage-keys-generator: runtime/default ceph-storage-keys-generator: runtime/default
init: runtime/default init: runtime/default