From dedc97def26f4215270c22ee33ea4a719189f211 Mon Sep 17 00:00:00 2001 From: Karel Vervaeke Date: Tue, 28 Nov 2023 15:02:59 +0100 Subject: [PATCH] Allow configuring terminationGracePeriodSeconds --- helm/oauth2-proxy/templates/deployment.yaml | 3 +++ helm/oauth2-proxy/values.yaml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/helm/oauth2-proxy/templates/deployment.yaml b/helm/oauth2-proxy/templates/deployment.yaml index 4a8d32b..dd38f10 100644 --- a/helm/oauth2-proxy/templates/deployment.yaml +++ b/helm/oauth2-proxy/templates/deployment.yaml @@ -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" . }}" diff --git a/helm/oauth2-proxy/values.yaml b/helm/oauth2-proxy/values.yaml index 9c3ee0e..56aa2d3 100644 --- a/helm/oauth2-proxy/values.yaml +++ b/helm/oauth2-proxy/values.yaml @@ -349,6 +349,9 @@ redis: # Enables apiVersion deprecation checks checkDeprecation: true +# Allows graceful shutdown +# terminationGracePeriodSeconds: 65 + metrics: # Enable Prometheus metrics endpoint enabled: true