From 420aa9a126167b5987c08111f338e2ec4f913dd8 Mon Sep 17 00:00:00 2001 From: Maksym Iv <4376997+maksym-iv@users.noreply.github.com> Date: Fri, 6 May 2022 17:55:58 +0300 Subject: [PATCH] Add terminationGracePeriodSeconds to deployment (#2637) 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 0299fe5743..0816279dba 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 }}"