Skip to content
Snippets Groups Projects
Commit f086b651 authored by OZGCloud's avatar OZGCloud
Browse files

set pod securitycontext

parent 8b347681
No related branches found
No related tags found
No related merge requests found
......@@ -237,10 +237,8 @@ spec:
{{ toYaml . | indent 8 }}
{{- end }}
schedulerName: default-scheduler
{{- if (.Values.securityContext).fsGroup }}
{{- with .Values.podSecurityContext }}
securityContext:
fsGroup: {{ (.Values.securityContext).fsGroup }}
{{- else }}
securityContext: {}
{{ toYaml . | indent 8 }}
{{- end }}
terminationGracePeriodSeconds: 30
\ No newline at end of file
......@@ -76,7 +76,7 @@ tests:
value: 1000
- it: check fsGroup
set:
securityContext.fsGroup: 1000
podSecurityContext.fsGroup: 1000
asserts:
- equal:
path: spec.template.spec.securityContext.fsGroup
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment