From 860509d7340636c1dda67f5092aab52ec9b2cf5a Mon Sep 17 00:00:00 2001 From: Maksym Iv <4376997+maksym-iv@users.noreply.github.com> Date: Fri, 29 Apr 2022 22:27:25 +0300 Subject: [PATCH] [FIX] Add terminationGracePeriodSeconds to deployment Since `terminationGracePeriodSeconds` option is defined in the `values.yaml` and used in the `daemonset` resource, it makes sense to add it to the `deployment` resource to make this attribute customizable --- deployments/helm-chart/templates/controller-deployment.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/deployments/helm-chart/templates/controller-deployment.yaml b/deployments/helm-chart/templates/controller-deployment.yaml index 9bdbdfc4bb..2a0042b17a 100644 --- a/deployments/helm-chart/templates/controller-deployment.yaml +++ b/deployments/helm-chart/templates/controller-deployment.yaml @@ -66,6 +66,7 @@ spec: priorityClassName: {{ .Values.controller.priorityClassName }} {{- end }} serviceAccountName: {{ include "nginx-ingress.serviceAccountName" . }} + terminationGracePeriodSeconds: {{ .Values.controller.terminationGracePeriodSeconds }} hostNetwork: {{ .Values.controller.hostNetwork }} containers: - image: "{{ .Values.controller.image.repository }}:{{ .Values.controller.image.tag }}"