Coredns: Add apparmor profile to coredns-health container

Adding profile to missing container in coredns chart

Change-Id: I87d99ea53f8c7e086a5e098ae23e0a8ab8f84d6f
This commit is contained in:
KHIYANI, RAHUL (rk0850) 2020-04-13 10:01:19 -05:00 committed by Rahul Khiyani
parent d0d0e8be36
commit bb8dd7af48
2 changed files with 2 additions and 1 deletions

View File

@ -57,7 +57,7 @@ spec:
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" | indent 8 }}
configmap-bin-hash: {{ tuple "configmap-bin.yaml" $envAll | include "helm-toolkit.utils.hash" }}
configmap-etc-hash: {{ tuple "configmap-etc.yaml" $envAll | include "helm-toolkit.utils.hash" }}
{{ dict "envAll" $envAll "podName" "coredns" "containerNames" (list "coredns") | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 8 }}
{{ dict "envAll" $envAll "podName" "coredns" "containerNames" (list "coredns" "coredns-health") | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 8 }}
spec:
{{ dict "envAll" $envAll "application" "coredns" | include "helm-toolkit.snippets.kubernetes_pod_security_context" | indent 6 }}
serviceAccountName: coredns

View File

@ -42,6 +42,7 @@ pod:
type: apparmor
coredns:
coredns: runtime/default
coredns-health: runtime/default
security_context:
coredns:
pod: