Skip to content

Commit

Permalink
feat: add podSecurityContext to unleash chart (#174)
Browse files Browse the repository at this point in the history
* feat: add podSecurityContext to unleash chart

* chore: bump Unleash chart version to 5.3.3

---------

Co-authored-by: Domingos Nunes <domingos.nunes@mercedes-benz.io>
  • Loading branch information
mingosnunes and Domingos Nunes authored Oct 25, 2024
1 parent 31fe33e commit d3788f5
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/unleash/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ icon: https://docs.getunleash.io/img/logo.svg

type: application

version: 5.3.2
version: 5.3.3

appVersion: "6.3.0"

Expand Down
2 changes: 2 additions & 0 deletions charts/unleash/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ include "unleash.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
containers:
- name: {{ include "unleash.name" . }}
env:
Expand Down
10 changes: 10 additions & 0 deletions charts/unleash/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,17 @@ postgresql:
password: unleash
database: unleash

podSecurityContext: {}
# fsGroup: 2000

securityContext: {}
# capabilities:
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000

# Autoscaling
# https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/
# Allows Unleash to setup HPA
Expand Down

0 comments on commit d3788f5

Please sign in to comment.