mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-30 04:06:34 +09:00
The RoleBinding subject was built as tenant-<namespace> in namespace tenant-<namespace>, but the release namespace already starts with tenant-, so the binding did not name the tenant's own ServiceAccount. The name it did form is one another tenant can claim: a child named root of a tenant named tenant owns the ServiceAccount tenant-tenant-root, which would then be granted the token Secret of tenant-root. Bind the tenant's own ServiceAccount instead. Assisted-by: LLM Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com> Signed-off-by: Andrei Kvapil <kvapss@gmail.com>