Skip to content

Commit e3085c5

Browse files
committed
chore: specify target ref
1 parent e232269 commit e3085c5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

internal/controller/resourcemanager/personal_organization_controller.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,12 @@ func (r *PersonalOrganizationController) Reconcile(ctx context.Context, req ctrl
123123
Name: r.Config.RoleName,
124124
Namespace: r.Config.RoleNamespace,
125125
},
126+
TargetRef: iamv1alpha1.TargetReference{
127+
APIGroup: resourcemanagerv1alpha1.GroupVersion.Group,
128+
Kind: "Organization",
129+
Name: personalOrg.Name,
130+
UID: string(personalOrg.UID),
131+
},
126132
Subjects: []iamv1alpha1.Subject{
127133
{
128134
Kind: "User",

0 commit comments

Comments
 (0)