Commit 8f79356
fix(infrastructure): grant the runtime SA delete on templates + CRDs
The infraprovider e2e suite's first run (serving with the init-minted
SA kubeconfig instead of the hub-minted cluster-admin one) exposed a
real RBAC gap: the runtime ClusterRole granted no delete verb anywhere,
so the retired-template sweep (controller deletes Templates on sight)
and the finalize chain's per-template CRD deletion both 403 — the
features work only under the cluster-admin hub-minted kubeconfig.
Grant delete on templates and customresourcedefinitions; the role is
idempotently overwritten on init, so existing deployments pick this up
on their next init run.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent e90f239 commit 8f79356
1 file changed
Lines changed: 10 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
200 | | - | |
201 | | - | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
202 | 205 | | |
203 | 206 | | |
204 | 207 | | |
205 | | - | |
| 208 | + | |
206 | 209 | | |
207 | 210 | | |
208 | 211 | | |
| |||
250 | 253 | | |
251 | 254 | | |
252 | 255 | | |
253 | | - | |
254 | | - | |
255 | | - | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
256 | 259 | | |
257 | 260 | | |
258 | 261 | | |
259 | | - | |
| 262 | + | |
260 | 263 | | |
261 | 264 | | |
262 | 265 | | |
| |||
0 commit comments