Skip to content

Commit

Permalink
set the provider ID correctly for linode-CCM to read (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
AshleyDumaine authored Feb 13, 2024
1 parent 23fe2df commit 5d89038
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controller/linodemachine_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 5d89038

Please sign in to comment.