Describe the solution you'd like
I'd like to use ClusterClasses with MachinePools. ClusterClass requires for each infrastructure type a <name>Template CRD kind. Unmanaged MachinePools don't yet have such a kind.
Running this with clusterctl alpha topology plan gives an error:
» clusterctl alpha topology plan --file test.yaml --output-directory test
Command "plan" is deprecated, it will be removed in one of the upcoming releases.
Detected a cluster with Cluster API installed. Will use it to fetch missing objects.
Error: failed defaulting and validation on input objects: failed to run defaulting and validation on ClusterClasses: failed validation of cluster.x-k8s.io/v1beta1, Kind=ClusterClass default/basic-001: ClusterClass.cluster.x-k8s.io "basic-001" is invalid: spec.workers.machinePools[0].template.infrastructure.ref.kind: Invalid value: "AzureMachinePool": template kind must be of form "<name>Template"
/kind feature
Describe the solution you'd like I'd like to use ClusterClasses with MachinePools. ClusterClass requires for each infrastructure type a
<name>Template
CRD kind. Unmanaged MachinePools don't yet have such a kind.Minimum reproducible example:
Running this with
clusterctl alpha topology plan
gives an error:Anything else you would like to add: See https://github.com/kubernetes-sigs/cluster-api/issues/10768 for some more infromation.
I might contribute this myself - not sure when I can allocate the time atm.
Environment:
kubectl version
): v1.28.5/etc/os-release
): linux/windows