Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion pkg/machine/convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,9 @@ func providerSpecToMachineSpec(ps *openstackconfigv1.OpenstackProviderSpec, apiV
portList = append(portList, ports...)
}

machineSpec.Ports = append(machineSpec.Ports, portList...)
// The order of the networks is important, first network is the one that will be used for kubelet when
// the legacy cloud provider is used. Once we switch to using CCM by default, the order won't matter.
machineSpec.Ports = append(portList, machineSpec.Ports...)

return machineSpec, nil
}