Skip to content

Commit

Permalink
added security context
Browse files Browse the repository at this point in the history
  • Loading branch information
BernhardKoschicek committed Nov 27, 2023
1 parent f5064c9 commit 21c7d7d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions chart/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -156,5 +156,9 @@ items:
volumeMounts:
{{ toYaml $jobConfig.extraVolumeMounts | nindent 16 }}
{{- end }}
{{- if $jobConfig.securityContext }}
securityContext:
{{ toYaml $jobConfig.securityContext | nindent 16 }}
{{- end }}
{{- end -}}
{{- end -}}
7 changes: 7 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,13 @@ cronjobs:
persistentVolumeClaim:
claimName: "openatlas-backup"
# storageClass: "backup"
securityContext:
runAsNonRoot: false
readOnlyRootFilesystem: false
capabilities: { }
privileged: false
allowPrivilegeEscalation: false
runAsUser: 0

storage:
export:
Expand Down

0 comments on commit 21c7d7d

Please sign in to comment.