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: ...@@ -237,10 +237,8 @@ spec:
{{ toYaml . | indent 8 }} {{ toYaml . | indent 8 }}
{{- end }} {{- end }}
schedulerName: default-scheduler schedulerName: default-scheduler
{{- if (.Values.securityContext).fsGroup }} {{- with .Values.podSecurityContext }}
securityContext: securityContext:
fsGroup: {{ (.Values.securityContext).fsGroup }} {{ toYaml . | indent 8 }}
{{- else }}
securityContext: {}
{{- end }} {{- end }}
terminationGracePeriodSeconds: 30 terminationGracePeriodSeconds: 30
\ No newline at end of file
...@@ -76,7 +76,7 @@ tests: ...@@ -76,7 +76,7 @@ tests:
value: 1000 value: 1000
- it: check fsGroup - it: check fsGroup
set: set:
securityContext.fsGroup: 1000 podSecurityContext.fsGroup: 1000
asserts: asserts:
- equal: - equal:
path: spec.template.spec.securityContext.fsGroup 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