From feb58922fb8649de4d229d8483d428b4eb1bc520 Mon Sep 17 00:00:00 2001 From: Stavros kois Date: Wed, 25 Jan 2023 19:32:30 +0200 Subject: [PATCH] fix jobPod --- library/common-test/tests/jobs/jobTemplate_test.yaml | 2 +- library/common/1.0.0/templates/lib/job/_jobPod.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/library/common-test/tests/jobs/jobTemplate_test.yaml b/library/common-test/tests/jobs/jobTemplate_test.yaml index a935a1a39b..d50228e73f 100644 --- a/library/common-test/tests/jobs/jobTemplate_test.yaml +++ b/library/common-test/tests/jobs/jobTemplate_test.yaml @@ -510,7 +510,7 @@ tests: job-name: enabled: true podSpec: - terminationGracePeriodSeconds: 50 + terminationGracePeriodSeconds: "{{ .Values.key }}" containers: main: imageSelector: image diff --git a/library/common/1.0.0/templates/lib/job/_jobPod.tpl b/library/common/1.0.0/templates/lib/job/_jobPod.tpl index 4d587573c8..29d0d70989 100644 --- a/library/common/1.0.0/templates/lib/job/_jobPod.tpl +++ b/library/common/1.0.0/templates/lib/job/_jobPod.tpl @@ -155,7 +155,7 @@ {{- end -}} {{- $termSeconds := "" -}} -{{- with $values.termination -}} +{{- with $values.terminationGracePeriodSeconds -}} {{- if eq (toString .) $inherit -}} {{- with $root.Values.terminationGracePeriodSeconds -}} {{- $termSeconds = . -}}