diff --git a/charts/karpenter/templates/post-install-hook.yaml b/charts/karpenter/templates/post-install-hook.yaml index 9151688a315c..b0c19c230939 100644 --- a/charts/karpenter/templates/post-install-hook.yaml +++ b/charts/karpenter/templates/post-install-hook.yaml @@ -5,13 +5,13 @@ metadata: namespace: {{ .Release.Namespace }} labels: {{- include "karpenter.labels" . | nindent 4 }} - {{- with .Values.additionalAnnotations }} annotations: - {{- toYaml . | nindent 4 }} - {{- end }} "helm.sh/hook": post-install "helm.sh/hook-delete-policy": hook-succeeded "helm.sh/hook-delete-policy": hook-failed + {{- with .Values.additionalAnnotations }} + {{- toYaml . | nindent 4 }} + {{- end }} spec: ttlSecondsAfterFinished: 0 template: diff --git a/test/hack/e2e_scripts/diff_karpenter.sh b/test/hack/e2e_scripts/diff_karpenter.sh index 42d6e5274a0f..185b3288a962 100755 --- a/test/hack/e2e_scripts/diff_karpenter.sh +++ b/test/hack/e2e_scripts/diff_karpenter.sh @@ -6,4 +6,4 @@ fi helm diff upgrade --namespace kube-system \ karpenter "${CHART}" \ --version 0-$(git rev-parse HEAD) \ ---reuse-values --three-way-merge --detailed-exitcode +--reuse-values --three-way-merge --detailed-exitcode --no-hooks