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

Commit 4f4b926

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

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
@@ -66,7 +66,7 @@ func (r *KubeadmConfigReconciler) Reconcile(req ctrl.Request) (ctrl.Result, erro
6666
// Find the owner reference
6767
var machineRef *v1.OwnerReference
6868
for _, ref := range config.OwnerReferences {
69-
if ref.Kind == machineKind.Kind && ref.APIVersion == machineKind.Version {
69+
if ref.Kind == machineKind.Kind && ref.APIVersion == machineKind.GroupVersion().String() {
7070
machineRef = &ref
7171
break
7272
}

0 commit comments

Comments
 (0)