mirror of
https://github.com/projectcapsule/capsule.git
synced 2026-08-25 16:07:24 +00:00
Support Groups as Subject Kind for Tenant Namespace RoleBindings created by Capsule (#71)
Modified CRD to support Owner struct. Added Tenant name validation webhook. Rewrote owner_reference hook logic. Updated and added new e2e tests. Co-authored-by: Maksim Fedotov <m_fedotov@wargaming.net>
This commit is contained in:
co-authored by
Maksim Fedotov
parent
10dcfeab82
commit
303fc4d69c
@@ -519,8 +519,8 @@ func (r *TenantReconciler) ownerRoleBinding(tenant *capsulev1alpha1.Tenant) erro
|
||||
l := map[string]string{tl: tenant.Name}
|
||||
s := []rbacv1.Subject{
|
||||
{
|
||||
Kind: "User",
|
||||
Name: tenant.Spec.Owner,
|
||||
Kind: tenant.Spec.Owner.Kind.String(),
|
||||
Name: tenant.Spec.Owner.Name,
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user