Skip to content

Commit 5a66366

Browse files
authored
Update controllers/utils/utils.go
1 parent 61e1fb8 commit 5a66366

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controllers/utils/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ func GetManagementOwnerRef(capiMachine *clusterv1.Machine) *meta.OwnerReference
135135
}
136136

137137
// GetOwnerOfKind returns the Cluster object owning the current resource of passed kind.
138-
var GetOwnerOfKind = func(ctx context.Context, c clientPkg.Client, owned clientPkg.Object, owner clientPkg.Object) error {
138+
func GetOwnerOfKind(ctx context.Context, c clientPkg.Client, owned clientPkg.Object, owner clientPkg.Object) error {
139139
gvks, _, err := c.Scheme().ObjectKinds(owner)
140140
if err != nil {
141141
return errors.Wrapf(err, "finding owner kind for %s/%s", owned.GetName(), owned.GetNamespace())

0 commit comments

Comments
 (0)