Commit ad11f7c
fix(manifests): fix RoleBinding subject namespace via Kustomize replacement
- Remove duplicated ClusterRole/ClusterRoleBinding from mpp-openshift overlay
(already covered by base/rbac/control-plane-clusterrole.yaml)
- Keep only the MPP-specific Role/RoleBinding for tenantnamespaces.tenant.paas.redhat.com
- Add Kustomize replacement to inject the overlay namespace into subjects[0].namespace
so any overlay deploying to a different namespace automatically binds the correct SA
Previously the subject was hardcoded to ambient-code--runtime-int, causing Forbidden
errors when the CP runs in a different namespace (e.g. ambient-code--ambient-s0).
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 0718d30 commit ad11f7c
2 files changed
Lines changed: 12 additions & 28 deletions
File tree
- components/manifests/overlays/mpp-openshift
Lines changed: 0 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | 2 | | |
31 | 3 | | |
32 | 4 | | |
| |||
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
18 | 30 | | |
19 | 31 | | |
20 | 32 | | |
| |||
0 commit comments