Skip to content

Commit

Permalink
create function for container level security context
Browse files Browse the repository at this point in the history
Signed-off-by: Anish Bista <[email protected]>
  • Loading branch information
anishbista60 committed Sep 22, 2024
1 parent 2b9c865 commit f06c4b4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions helm/kanister-operator/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,12 @@ Define a custom kanister-tools image
{{- define "kanister-tools.image" -}}
{{- printf "%s:%s" (.Values.kanisterToolsImage.image) (.Values.kanisterToolsImage.tag) -}}
{{- end -}}

{{/*
Define a security Context at Container level
*/}}
{{- define "controller.containerSecurityContext" -}}
{{- if .Values.controller.containerSecurityContext -}}
{{ toYaml .Values.controller.containerSecurityContext | indent 10 }}
{{- end -}}
{{- end -}}

0 comments on commit f06c4b4

Please sign in to comment.