Skip to content

Commit

Permalink
Update Helm chart RBAC and security context
Browse files Browse the repository at this point in the history
  • Loading branch information
fhielpos committed Oct 3, 2023
1 parent 08e16b8 commit 4c30c48
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion helm/kyverno-policy-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ spec:
timeoutSeconds: 1
resources:
{{ toYaml .Values.resources | indent 10 }}
{{- with .Values.securityContext }}
{{- with .Values.containerSecurityContext }}
securityContext:
{{- . | toYaml | nindent 10 }}
{{- end }}
2 changes: 1 addition & 1 deletion helm/kyverno-policy-operator/templates/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ rules:
- apiGroups:
- policy.giantswarm.io
resources:
- policyexceptiondrafts
- policyexceptions
verbs:
- get
- list
Expand Down
2 changes: 1 addition & 1 deletion helm/kyverno-policy-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ podSecurityContext:
type: RuntimeDefault

# Container securityContext
securityContext:
containerSecurityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
Expand Down

0 comments on commit 4c30c48

Please sign in to comment.