From 002381cc64a4565c27839c5cc507565d736c2edd Mon Sep 17 00:00:00 2001 From: Marius Svechla Date: Wed, 21 Aug 2024 16:36:53 +0200 Subject: [PATCH] fix: set post-install-hook ttlSecondsAfterFinished to 60 (#6765) Fixes an argocd issue where helm hooks never finish syncing when they have ttlSecondsAfterFinished set to 0. See related argocd issue: https://github.com/argoproj/argo-cd/issues/6880 Suggested workaround as implemented by argocd team: https://github.com/argoproj/argo-helm/pull/2861 --- charts/karpenter/templates/post-install-hook.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/karpenter/templates/post-install-hook.yaml b/charts/karpenter/templates/post-install-hook.yaml index 8110fb38d018..bd83ff156362 100644 --- a/charts/karpenter/templates/post-install-hook.yaml +++ b/charts/karpenter/templates/post-install-hook.yaml @@ -12,7 +12,7 @@ metadata: {{- toYaml . | nindent 4 }} {{- end }} spec: - ttlSecondsAfterFinished: 0 + ttlSecondsAfterFinished: 60 template: spec: serviceAccountName: {{ include "karpenter.serviceAccountName" . }}