From 06e2ac2d4113dcb7920d7f1a4297e33efdbc7403 Mon Sep 17 00:00:00 2001 From: Inteon <42113979+inteon@users.noreply.github.com> Date: Fri, 30 Jul 2021 17:31:25 +0200 Subject: [PATCH] change weight of hook resources and only delete after all hooks have finished Signed-off-by: Inteon <42113979+inteon@users.noreply.github.com> --- deploy/charts/cert-manager/values.yaml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/deploy/charts/cert-manager/values.yaml b/deploy/charts/cert-manager/values.yaml index a00e5d358..e8dfa1424 100644 --- a/deploy/charts/cert-manager/values.yaml +++ b/deploy/charts/cert-manager/values.yaml @@ -416,7 +416,8 @@ startupapicheck: # Optional additional annotations to add to the startupapicheck Job jobAnnotations: helm.sh/hook: post-install - helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded + helm.sh/hook-weight: "1" + helm.sh/hook-delete-policy: hook-succeeded # Optional additional annotations to add to the startupapicheck Pods # podAnnotations: {} @@ -456,7 +457,8 @@ startupapicheck: rbac: annotations: helm.sh/hook: post-install - helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded + helm.sh/hook-weight: "-5" + helm.sh/hook-delete-policy: hook-succeeded serviceAccount: # Specifies whether a service account should be created @@ -469,7 +471,8 @@ startupapicheck: # Optional additional annotations to add to the Job's ServiceAccount annotations: helm.sh/hook: post-install - helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded + helm.sh/hook-weight: "-5" + helm.sh/hook-delete-policy: hook-succeeded # Automount API credentials for a Service Account. automountServiceAccountToken: true