Skip to content

Commit

Permalink
fix: linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
BrendanGalloway committed May 23, 2023
1 parent 7e2dd2d commit 6809694
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chart/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@ Image Name
Container Security Context
*/}}
{{- define "canary-checker.containerSecurityContext" -}}
allowPrivilegeEscalation: {{- if -eq (.Values.privilegeMode | toLower) "privileged"}}true{{- else }}false{{-end}}
{{- if has (.Values.privilegeMode | toLower) ( list "privileged" "root" ) }}
allowPrivilegeEscalation: {{- if eq ( lower .Values.privilegeMode ) "privileged" }}true{{- else }}false{{- end }}
{{- if has ( lower .Values.privilegeMode) ( list "privileged" "root" ) }}
runAsUser: 0
runAsGroup: 0
fsGroup: 0
{{- if -eq (.Values.privilegeMode | toLower) "privileged"}}
{{- if eq ( lower .Values.privilegeMode ) "privileged" }}
capabilities:
add:
- CAP_NET_RAW
Expand Down

0 comments on commit 6809694

Please sign in to comment.