Commit a83e9fb
fix(control-plane): use project kube client for namespace provisioner
When PROJECT_KUBE_TOKEN_FILE is set, the project kube client carries the
TSA identity (tenantaccess-ambient-control-plane) which already has
namespace-admin RoleBindings in ambient-code--config. The main in-cluster
SA does not have access to tenantnamespaces.tenant.paas.redhat.com.
Pass projectKube to buildNamespaceProvisioner when available so the MPP
TenantNamespace provisioner uses the TSA token rather than the pod SA token.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 3790b69 commit a83e9fb
1 file changed
Lines changed: 5 additions & 1 deletion
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
117 | 121 | | |
118 | 122 | | |
119 | 123 | | |
| |||
0 commit comments