Skip to content

Commit 92ab92a

Browse files
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/kustomization.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
apiVersion: kustomize.config.k8s.io/v1beta1
33
kind: Kustomization
4+
namespace: internal-services
45
resources:
56
# Core resources now managed directly in production
67
- crds/

components/internal-services/internal-staging/kustomization.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
3+
namespace: internal-services
34

45
resources:
56
# Core resources now managed directly in staging

0 commit comments

Comments
 (0)