Skip to content

Commit 163e8ce

Browse files
fix(accessrequest): use LocalObjectReference in status.secretRef
1 parent 3036dcf commit 163e8ce

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

internal/controller/accessrequest_controller.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,8 @@ func (r *AccessRequestReconciler) handleCreateOrUpdate(ctx context.Context, ar *
129129
}
130130

131131
ar.Status.Phase = clustersv1alpha1.AccessRequestGranted
132-
ar.Status.SecretRef = &commonapi.ObjectReference{
133-
Name: secret.Name,
134-
Namespace: secret.Namespace,
132+
ar.Status.SecretRef = &commonapi.LocalObjectReference{
133+
Name: secret.Name,
135134
}
136135

137136
return ctrl.Result{}, nil

0 commit comments

Comments
 (0)