Skip to content
This repository has been archived by the owner on Jan 25, 2024. It is now read-only.

Commit

Permalink
fix security context helm chart
Browse files Browse the repository at this point in the history
  • Loading branch information
eumel8 committed Oct 31, 2023
1 parent e4e715d commit ceb453c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ appVersion: 0.7.5
description: Kubernetes Operator for OTC RDS
name: otc-rds-operator
type: application
version: 0.7.5
version: 0.7.6
sources:
- https://github.com/eumel8/otc-rds-operator
icon: https://raw.githubusercontent.com/eumel8/otc-rds-operator/master/otc-rds-operator.png
Expand Down
4 changes: 4 additions & 0 deletions chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,7 @@ spec:
nodeSelector:
{{ toYaml . | nindent 8 }}
{{ end }}
{{- with .Values.podSecurityContext }}
securityContext:
{{- toYaml . | nindent 8 }}
{{- end }}
10 changes: 9 additions & 1 deletion chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,19 @@ resources:
cpu: 500m
memory: 512Mi

podSecurityContext:
fsGroup: 1000
supplementalGroups:
- 1000
securityContext:
allowPrivilegeEscalation: false
capabilities: {}
capabilities:
drop:
- ALL
privileged: false
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 1000
runAsGroup: 1000

nodeSelector: {}

0 comments on commit ceb453c

Please sign in to comment.