From 628e9992f71bb447a1005baaa66e3d8a1bf421ae Mon Sep 17 00:00:00 2001 From: York Chen Date: Wed, 4 Oct 2023 17:31:42 -0400 Subject: [PATCH] chore: add patch & update for post install job --- .../templates/post_install_kommandercore_hook.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/charts/kommander-operator/templates/post_install_kommandercore_hook.yaml b/charts/kommander-operator/templates/post_install_kommandercore_hook.yaml index 3363b5561..0308741e0 100644 --- a/charts/kommander-operator/templates/post_install_kommandercore_hook.yaml +++ b/charts/kommander-operator/templates/post_install_kommandercore_hook.yaml @@ -7,7 +7,7 @@ metadata: annotations: "helm.sh/hook": post-install "helm.sh/hook-weight": "-5" - "helm.sh/hook-delete-policy": before-hook-creation + "helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole @@ -27,6 +27,8 @@ rules: - list - watch - create + - patch + - update --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding @@ -35,7 +37,7 @@ metadata: annotations: "helm.sh/hook": post-install "helm.sh/hook-weight": "-5" - "helm.sh/hook-delete-policy": before-hook-creation + "helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole