From 83d8616cc3f31db818591f0763bdd2517db2333a Mon Sep 17 00:00:00 2001 From: "KHIYANI, RAHUL (rk0850)" Date: Wed, 5 Feb 2020 11:36:34 -0600 Subject: [PATCH] Add apparmor profile to promenade charts adding apparmor profile to haproxy-anchor chart Change-Id: Ifa27ac8335e9990fe9f39aa02e63835019ec6461 --- charts/haproxy/templates/daemonset.yaml | 1 + charts/haproxy/values.yaml | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/charts/haproxy/templates/daemonset.yaml b/charts/haproxy/templates/daemonset.yaml index a5facb3c..7b80bf2d 100644 --- a/charts/haproxy/templates/daemonset.yaml +++ b/charts/haproxy/templates/daemonset.yaml @@ -37,6 +37,7 @@ spec: annotations: {{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" | indent 8 }} scheduler.alpha.kubernetes.io/critical-pod: '' +{{ dict "envAll" $envAll "podName" "haproxy-anchor" "containerNames" (list "anchor") | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 8 }} spec: {{ dict "envAll" $envAll "application" "haproxy_anchor" | include "helm-toolkit.snippets.kubernetes_pod_security_context" | indent 6 }} tolerations: diff --git a/charts/haproxy/values.yaml b/charts/haproxy/values.yaml index 1b72fca8..0c02a82f 100644 --- a/charts/haproxy/values.yaml +++ b/charts/haproxy/values.yaml @@ -77,6 +77,10 @@ endpoints: port: 6553 pod: + mandatory_access_control: + type: apparmor + haproxy-anchor: + anchor: runtime/default security_context: haproxy_anchor: pod: