Skip to content

Commit

Permalink
Allow configuring terminationGracePeriodSeconds
Browse files Browse the repository at this point in the history
  • Loading branch information
Karel Vervaeke committed Nov 28, 2023
1 parent 7c56c9b commit dedc97d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions helm/oauth2-proxy/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ spec:
{{- toYaml $securityContext | nindent 10 }}
{{- end }}
{{- end }}
{{- if .Values.terminationGracePeriodSeconds }}
terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:v{{ include "oauth2-proxy.version" . }}"
Expand Down
3 changes: 3 additions & 0 deletions helm/oauth2-proxy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,9 @@ redis:
# Enables apiVersion deprecation checks
checkDeprecation: true

# Allows graceful shutdown
# terminationGracePeriodSeconds: 65

metrics:
# Enable Prometheus metrics endpoint
enabled: true
Expand Down

0 comments on commit dedc97d

Please sign in to comment.