From 5d89038de3511f5e64c82cd438934b9adba2e587 Mon Sep 17 00:00:00 2001 From: Ashley Dumaine <5779804+AshleyDumaine@users.noreply.github.com> Date: Tue, 13 Feb 2024 13:05:29 -0500 Subject: [PATCH] set the provider ID correctly for linode-CCM to read (#114) --- controller/linodemachine_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/linodemachine_controller.go b/controller/linodemachine_controller.go index 15a787595..e89bb74f4 100644 --- a/controller/linodemachine_controller.go +++ b/controller/linodemachine_controller.go @@ -359,7 +359,7 @@ func (r *LinodeMachineReconciler) reconcileCreate( machineScope.LinodeMachine.Status.Ready = true machineScope.LinodeMachine.Spec.InstanceID = &linodeInstance.ID - machineScope.LinodeMachine.Spec.ProviderID = util.Pointer(fmt.Sprintf("linode:///%s/%d", linodeInstance.Region, linodeInstance.ID)) + machineScope.LinodeMachine.Spec.ProviderID = util.Pointer(fmt.Sprintf("linode://%d", linodeInstance.ID)) machineScope.LinodeMachine.Status.Addresses = []clusterv1.MachineAddress{} for _, add := range linodeInstance.IPv4 {