Can not create Cluster from Cluster Class without repeating KCP's infrastructureRef #341
Labels
kind/bug
Something isn't working
lifecycle/stale
Denotes an issue or PR has remained open with no activity and has become stale.
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
Milestone
What happened:
When defining my RKE2 cluster class I configured the
RKE2ControlPlaneTemplate
as follows:In the CC definition the
spec.controlPlane.machineInfrastructure.ref
is correctly set:However RKE2 provider fails to initialize the control plane machines:
The workaround is to repeat the
infrastructureRef
in theRKE2ControlPlaneTemplate
, like this:I think this should not be necessary due to the CC definition.
What did you expect to happen:
The RKE2ControlPlaneTemplate should respect what was defined in the Cluster Class.
How to reproduce it:
See config above, or it can be reproduced with the quickstart sample by removing the
RKE2ControlPlaneTemplate.spec.template.spec.infrastructureRef
object. referenceAnything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]
Environment:
/etc/os-release
):The text was updated successfully, but these errors were encountered: