Skip to content

Commit

Permalink
v3.0.663
Browse files Browse the repository at this point in the history
  • Loading branch information
env0 User committed Jan 31, 2024
1 parent 25891c1 commit 361479c
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,17 @@
{{ end }}
{{- end -}}

{{- define "env0-agent.strict-security-context" -}}
{{ if .Values.strictSecurityContext }}
{{- define "env0-agent.strict-security-context" }}
{{- if .Values.strictSecurityContext }}
securityContext:
allowPrivilegeEscalation: false
seccompProfile:
type: RuntimeDefault
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 1000 # run as non-root "node" user
{{ end }}
{{- end -}}
{{- end }}
{{- end }}

0 comments on commit 361479c

Please sign in to comment.