Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

add readOnlyRootFilesystem security context to pass trivy plugin 0.18… #33

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions templates/application/deployment.toolbox.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ spec:
command:
- sleep
- "2147483648" # 2^31
securityContext:
readOnlyRootFilesystem: true
terminationGracePeriodSeconds: 0
{{- if .Values.tls.enabled }}
volumes:
Expand Down
4 changes: 4 additions & 0 deletions templates/application/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ spec:
mountPath: /cockroach-certs/
- name: certs-secret
mountPath: /certs/
securityContext:
readOnlyRootFilesystem: true
{{- end }}
{{- end }}
{{- if or .Values.statefulset.nodeAffinity .Values.statefulset.podAffinity .Values.statefulset.podAntiAffinity }}
Expand Down Expand Up @@ -277,6 +279,8 @@ spec:
{{- with .Values.statefulset.resources }}
resources: {{- toYaml . | nindent 12 }}
{{- end }}
securityContext:
readOnlyRootFilesystem: true
volumes:
- name: datadir
{{- if .Values.storage.persistentVolume.enabled }}
Expand Down
Loading