Skip to content

Commit

Permalink
fix: add common termination grace period to deployment templates
Browse files Browse the repository at this point in the history
On-behalf-of: @SAP angel.kafazov@sap.com
Signed-off-by: Angel Kafazov <akafazov@cst-bg.net>
  • Loading branch information
akafazov committed Nov 25, 2024
1 parent ed77a43 commit 076cd6e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
3 changes: 3 additions & 0 deletions charts/common/templates/_deploymentHelpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,7 @@ securityContext:
type: RuntimeDefault
serviceAccountName: {{ .Release.Name }}
automountServiceAccountToken: {{ not (eq (.Values.security).mountServiceAccountToken false) }}
{{- end }}
{{- define "common.terminationGracePeriodSeconds" -}}
{{ .Values.terminationGracePeriodSeconds | default 10 }}
{{- end }}
Binary file modified charts/extension-manager-operator/charts/common-0.1.5.tgz
Binary file not shown.
Binary file not shown.
5 changes: 1 addition & 4 deletions charts/extension-manager-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,4 @@ spec:
requests:
cpu: {{ .Values.deployment.resources.requests.cpu }}
memory: {{ .Values.deployment.resources.requests.memory }}
terminationGracePeriodSeconds: 10



terminationGracePeriodSeconds: {{ include "common.terminationGracePeriodSeconds" .}}

0 comments on commit 076cd6e

Please sign in to comment.