@@ -112,15 +112,7 @@ metadata:
112112 annotations :
113113 " helm.sh/hook " : pre-delete
114114 " helm.sh/hook-weight " : " 0"
115- # Matches the Job's policy deliberately. The Job carries no hook-succeeded:
116- # it outlives the run so the degraded path leaves a readable record, and
117- # ttlSecondsAfterFinished reclaims it. Reaping the ServiceAccount, Role or
118- # RoleBinding on hook-succeeded or hook-failed would leave that Job able to
119- # start a pod whose ServiceAccount no longer exists: kubelet then mounts the
120- # projected volume without a token, kubectl finds no in-cluster config and
121- # falls back to localhost:8080, and the pre-delete hook fails every uninstall
122- # from then on.
123- " helm.sh/hook-delete-policy " : before-hook-creation
115+ " helm.sh/hook-delete-policy " : before-hook-creation,hook-succeeded
124116---
125117apiVersion : rbac.authorization.k8s.io/v1
126118kind : Role
@@ -131,15 +123,7 @@ metadata:
131123 annotations :
132124 " helm.sh/hook " : pre-delete
133125 " helm.sh/hook-weight " : " 5"
134- # Matches the Job's policy deliberately. The Job carries no hook-succeeded:
135- # it outlives the run so the degraded path leaves a readable record, and
136- # ttlSecondsAfterFinished reclaims it. Reaping the ServiceAccount, Role or
137- # RoleBinding on hook-succeeded or hook-failed would leave that Job able to
138- # start a pod whose ServiceAccount no longer exists: kubelet then mounts the
139- # projected volume without a token, kubectl finds no in-cluster config and
140- # falls back to localhost:8080, and the pre-delete hook fails every uninstall
141- # from then on.
142- " helm.sh/hook-delete-policy " : before-hook-creation
126+ " helm.sh/hook-delete-policy " : before-hook-creation,hook-succeeded
143127rules :
144128 - apiGroups : ["kafka.strimzi.io"]
145129 resources : ["kafkatopics"]
@@ -154,15 +138,7 @@ metadata:
154138 annotations :
155139 " helm.sh/hook " : pre-delete
156140 " helm.sh/hook-weight " : " 5"
157- # Matches the Job's policy deliberately. The Job carries no hook-succeeded:
158- # it outlives the run so the degraded path leaves a readable record, and
159- # ttlSecondsAfterFinished reclaims it. Reaping the ServiceAccount, Role or
160- # RoleBinding on hook-succeeded or hook-failed would leave that Job able to
161- # start a pod whose ServiceAccount no longer exists: kubelet then mounts the
162- # projected volume without a token, kubectl finds no in-cluster config and
163- # falls back to localhost:8080, and the pre-delete hook fails every uninstall
164- # from then on.
165- " helm.sh/hook-delete-policy " : before-hook-creation
141+ " helm.sh/hook-delete-policy " : before-hook-creation,hook-succeeded
166142roleRef :
167143 apiGroup : rbac.authorization.k8s.io
168144 kind : Role
0 commit comments