Skip to content

Commit

Permalink
fix: ensuring single reconciliation for Capsule RoleBinding resources
Browse files Browse the repository at this point in the history
  • Loading branch information
prometherion committed Jul 1, 2021
1 parent 0d4201a commit b1a9603
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions controllers/tenant_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
}

Expand Down

0 comments on commit b1a9603

Please sign in to comment.