Skip to content

Commit

Permalink
Add sleep preStop hook to zitadel helm chart for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-aleksejuk-telia committed Sep 24, 2024
1 parent 7550dcb commit e7b363b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions charts/zitadel/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ spec:
enableServiceLinks: false
containers:
- name: {{ .Chart.Name }}
lifecycle:
{{- toYaml .Values.lifecycle | nindent 14 }}
securityContext:
{{- toYaml .Values.securityContext | nindent 14 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
Expand Down
6 changes: 6 additions & 0 deletions charts/zitadel/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,12 @@ podSecurityContext:
runAsUser: 1000
fsGroup: 1000

lifecycle:
preStop:
exec:
command:
- "sleep"
- "30"
securityContext:
runAsNonRoot: true
runAsUser: 1000
Expand Down

0 comments on commit e7b363b

Please sign in to comment.