Skip to content

Commit

Permalink
Ingress: Add apparmor profile to ingress init container
Browse files Browse the repository at this point in the history
Change-Id: I2217a8ab8c76b8f6a14f477c3159e4133ef186f9
  • Loading branch information
rk0850 authored and diwakar thyagaraj committed May 7, 2020
1 parent eabe320 commit 8617c8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ingress/templates/deployment-error.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ spec:
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" | indent 8 }}
configmap-bin-hash: {{ tuple "configmap-bin.yaml" . | include "helm-toolkit.utils.hash" }}
configmap-etc-hash: {{ tuple "configmap-conf.yaml" . | include "helm-toolkit.utils.hash" }}
{{ dict "envAll" $envAll "podName" "ingress-error-pages" "containerNames" (list "ingress-error-pages") | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 8 }}
{{ dict "envAll" $envAll "podName" "ingress-error-pages" "containerNames" (list "init" "ingress-error-pages") | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 8 }}
spec:
{{ dict "envAll" $envAll "application" "error_pages" | include "helm-toolkit.snippets.kubernetes_pod_security_context" | indent 6 }}
shareProcessNamespace: true
Expand Down
3 changes: 2 additions & 1 deletion ingress/values_overrides/apparmor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ pod:
mandatory_access_control:
type: apparmor
ingress-error-pages:
init: runtime/default
ingress-error-pages: runtime/default
ingress-server:
ingress: runtime/default
ingress-vip: runtime/default
ingress-vip: runtime/default

0 comments on commit 8617c8c

Please sign in to comment.