Skip to content

Commit 1b919ee

Browse files
committed
CR
1 parent 9a9bacc commit 1b919ee

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

wiz-outpost-lite/templates/_helpers.tpl

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,6 @@ container-registry -> outpost-lite-runner-container-registry
102102
{{- $values = merge $values $.Values.openshiftOverrides }}
103103
{{- end }}
104104
105-
{{/* Add apparmor pod annotation if given */}}
106-
{{- if ne $values.apparmorProfile "" }}
107-
{{- $appArmorKey := printf "container.apparmor.security.beta.kubernetes.io/%s-%s" $.Chart.Name $runner }}
108-
{{- $appArmorDict := dict $appArmorKey $values.apparmorProfile }}
109-
{{- $values = merge $values (dict "podAnnotationsApparmor" $appArmorDict) }}
110-
{{- end }}
111-
112105
{{- if hasKey $values "containerSecurityContextOverride"}}
113106
{{- $values = set $values "containerSecurityContext" $values.containerSecurityContextOverride }}
114107
{{- end }}

wiz-outpost-lite/templates/deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ spec:
1818
{{- with .Values.podAnnotations }}
1919
{{- toYaml . | nindent 8 }}
2020
{{- end }}
21-
{{- with .Values.podAnnotationsApparmor }}
22-
{{- toYaml . | nindent 8 }}
21+
{{- if ne .Values.apparmorProfile "" }}
22+
container.apparmor.security.beta.kubernetes.io/{{ printf "%s-%s" .Chart.Name .runner }}: {{ .Values.apparmorProfile }}
2323
{{- end }}
2424
labels:
2525
{{- include "wiz-outpost-lite.selectorLabels" . | nindent 8 }}

0 commit comments

Comments
 (0)