vmware sample does not work without disableComponents and 'cloudController' #227
Labels
kind/bug
Something isn't working
needs-priority
Indicates an issue or PR needs a priority assigning to it
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
priority/awaiting-more-evidence
Lowest priority. Possibly useful, but not yet enough support to actually get it done.
What happened:
When using https://github.com/rancher-sandbox/cluster-api-provider-rke2/tree/main/samples/vmware, the first control plane Node would never pass the preflight checks due to the Node
ProviderID
not matching the vsphere ProviderID (see kubernetes-sigs/cluster-api-provider-vsphere#2400).This is because the RKE cloud controller starts before the vsphere CPI is installed and sets the ProviderID to the RKE value, which won't be overwritten by the vsphere CPI once it's running.
Adding the following to https://github.com/rancher-sandbox/cluster-api-provider-rke2/blob/main/samples/vmware/rke2controlplane.yaml disabled the RKE cloud controller and allowed the vsphere CPI to set the ProviderID properly:
What did you expect to happen:
The first control plane Node to pass the preflight checks.
How to reproduce it:
Use the vpshere example as-is.
Anything else you would like to add:
If this is not expected, the sample should be updated to disable the
cloudController
.Environment:
v0.2.2
v1.26.11+rke2r1
The text was updated successfully, but these errors were encountered: