Skip to content

Commit

Permalink
fix would violate PodSecurity restricted:latest: unrestricted capabil…
Browse files Browse the repository at this point in the history
…ities, add securityContext in values.yaml

Signed-off-by: yanhu.cheng <[email protected]>
  • Loading branch information
yanhu-cheng-20230331 committed Sep 6, 2022
1 parent e31c1d7 commit da1e6fc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ spec:
mountPath: /tmp/gatekeeper
readOnly: true
{{- end }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}

restartPolicy: Always
nodeSelector:
kubernetes.io/os: linux
Expand Down
9 changes: 9 additions & 0 deletions charts/external-data-provider/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,12 @@ provider:
enabled: true
caBundle: ""
skipVerify: false

securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault

0 comments on commit da1e6fc

Please sign in to comment.