Skip to content
This repository was archived by the owner on Jul 30, 2021. It is now read-only.

Commit 4d7ced1

Browse files
committed
Fix machine ref matching
Signed-off-by: Chuck Ha <[email protected]>
1 parent b60ec53 commit 4d7ced1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controllers/kubeadmconfig_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ func (r *KubeadmConfigReconciler) Reconcile(req ctrl.Request) (ctrl.Result, erro
7777
// Find the owner reference
7878
var machineRef *v1.OwnerReference
7979
for _, ref := range config.OwnerReferences {
80-
if ref.Kind == machineKind.Kind && ref.APIVersion == machineKind.Version {
80+
if ref.Kind == machineKind.Kind && ref.APIVersion == machineKind.GroupVersion().String() {
8181
machineRef = &ref
8282
break
8383
}

0 commit comments

Comments
 (0)