fix: remove namespace from rbac Application destination

- RBAC kustomization contains cluster-scoped (ClusterRoleBinding) and
  namespace-scoped (Role/RoleBinding) resources
- Each resource has explicit metadata.namespace, so Application shouldn't
  force a default namespace
- Fixes: ClusterRoleBinding gets namespace=default, causing sync failure
  with 'unsupported role reference kind: ""'
This commit is contained in:
2026-09-05 14:53:59 -07:00
parent c183978d6d
commit f740076694
+2 -1
View File
@@ -286,7 +286,8 @@ spec:
path: k8s/infra/rbac path: k8s/infra/rbac
destination: destination:
server: https://kubernetes.default.svc server: https://kubernetes.default.svc
namespace: default # No namespace: cluster-scoped resources (ClusterRoleBinding, etc.)
# Namespace is set per-resource in kustomization
syncPolicy: syncPolicy:
automated: automated:
prune: true prune: true