Commit 92ab92a
authored
fix(KONFLUX-12922): set namespace via kustomize namespace transformer (#335)
kubectl auth reconcile, used by ArgoCD for RBAC resources, requires
an explicit namespace on ServiceAccount subjects in ClusterRoleBindings.
Rather than hardcoding the namespace in the raw YAML files (which would
be overwritten by the update-internal-services automation task), use
kustomize's namespace transformer. This injects the namespace into
ServiceAccount subjects within ClusterRoleBindings at build time and
is resilient to upstream RBAC file updates.
Assisted-by: Cursor
Signed-off-by: Lubomir Gallovic <lgallovi@redhat.com>1 parent 97b0b69 commit 92ab92a
2 files changed
Lines changed: 2 additions & 0 deletions
File tree
- components/internal-services
- internal-production
- internal-staging
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
0 commit comments