From ed8469edfad67c3907b29e72b05b6a82a5d95ac0 Mon Sep 17 00:00:00 2001 From: Dario Tranchitella Date: Thu, 1 Jul 2021 16:21:03 +0200 Subject: [PATCH] fix: ensuring single reconciliation for Capsule RoleBinding resources --- controllers/tenant_controller.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/controllers/tenant_controller.go b/controllers/tenant_controller.go index 96e40bf3..f256c367 100644 --- a/controllers/tenant_controller.go +++ b/controllers/tenant_controller.go @@ -614,8 +614,9 @@ func (r *TenantReconciler) ownerRoleBinding(tenant *capsulev1alpha1.Tenant) erro l := map[string]string{tl: tenant.Name} s := []rbacv1.Subject{ { - Kind: tenant.Spec.Owner.Kind.String(), - Name: tenant.Spec.Owner.Name, + APIGroup: "rbac.authorization.k8s.io", + Kind: tenant.Spec.Owner.Kind.String(), + Name: tenant.Spec.Owner.Name, }, }