diff --git a/charts/cluster-api-runtime-extensions-nutanix/defaultclusterclasses/nutanix-cluster-class.yaml b/charts/cluster-api-runtime-extensions-nutanix/defaultclusterclasses/nutanix-cluster-class.yaml index 6bc9d2f6d..41966e73c 100644 --- a/charts/cluster-api-runtime-extensions-nutanix/defaultclusterclasses/nutanix-cluster-class.yaml +++ b/charts/cluster-api-runtime-extensions-nutanix/defaultclusterclasses/nutanix-cluster-class.yaml @@ -75,7 +75,7 @@ spec: name: worker-config workers: machineDeployments: - - class: nutanix-quick-start-worker + - class: default-worker machineHealthCheck: maxUnhealthy: 40% nodeStartupTimeout: 10m diff --git a/examples/capi-quick-start/nutanix-cluster-calico-crs.yaml b/examples/capi-quick-start/nutanix-cluster-calico-crs.yaml index da302a77c..4ec6e0913 100644 --- a/examples/capi-quick-start/nutanix-cluster-calico-crs.yaml +++ b/examples/capi-quick-start/nutanix-cluster-calico-crs.yaml @@ -140,7 +140,7 @@ spec: version: ${KUBERNETES_VERSION} workers: machineDeployments: - - class: nutanix-quick-start-worker + - class: default-worker metadata: annotations: cluster.x-k8s.io/cluster-api-autoscaler-node-group-max-size: "${WORKER_MACHINE_COUNT}" diff --git a/examples/capi-quick-start/nutanix-cluster-calico-helm-addon.yaml b/examples/capi-quick-start/nutanix-cluster-calico-helm-addon.yaml index be7a6ab65..1253f562b 100644 --- a/examples/capi-quick-start/nutanix-cluster-calico-helm-addon.yaml +++ b/examples/capi-quick-start/nutanix-cluster-calico-helm-addon.yaml @@ -140,7 +140,7 @@ spec: version: ${KUBERNETES_VERSION} workers: machineDeployments: - - class: nutanix-quick-start-worker + - class: default-worker metadata: annotations: cluster.x-k8s.io/cluster-api-autoscaler-node-group-max-size: "${WORKER_MACHINE_COUNT}" diff --git a/examples/capi-quick-start/nutanix-cluster-cilium-crs.yaml b/examples/capi-quick-start/nutanix-cluster-cilium-crs.yaml index 26851f032..128c84f9c 100644 --- a/examples/capi-quick-start/nutanix-cluster-cilium-crs.yaml +++ b/examples/capi-quick-start/nutanix-cluster-cilium-crs.yaml @@ -140,7 +140,7 @@ spec: version: ${KUBERNETES_VERSION} workers: machineDeployments: - - class: nutanix-quick-start-worker + - class: default-worker metadata: annotations: cluster.x-k8s.io/cluster-api-autoscaler-node-group-max-size: "${WORKER_MACHINE_COUNT}" diff --git a/examples/capi-quick-start/nutanix-cluster-cilium-helm-addon.yaml b/examples/capi-quick-start/nutanix-cluster-cilium-helm-addon.yaml index f50018bf1..80c973cad 100644 --- a/examples/capi-quick-start/nutanix-cluster-cilium-helm-addon.yaml +++ b/examples/capi-quick-start/nutanix-cluster-cilium-helm-addon.yaml @@ -140,7 +140,7 @@ spec: version: ${KUBERNETES_VERSION} workers: machineDeployments: - - class: nutanix-quick-start-worker + - class: default-worker metadata: annotations: cluster.x-k8s.io/cluster-api-autoscaler-node-group-max-size: "${WORKER_MACHINE_COUNT}" diff --git a/hack/examples/bases/nutanix/cluster/kustomization.yaml.tmpl b/hack/examples/bases/nutanix/cluster/kustomization.yaml.tmpl index 994a19441..d82b70c6c 100644 --- a/hack/examples/bases/nutanix/cluster/kustomization.yaml.tmpl +++ b/hack/examples/bases/nutanix/cluster/kustomization.yaml.tmpl @@ -66,3 +66,11 @@ patches: - target: kind: Cluster path: ../../../patches/dockerhub-image-registry.yaml + +# Change the machineDeployments Class to match the other examples. +- target: + kind: Cluster + patch: |- + - op: "replace" + path: "/spec/topology/workers/machineDeployments/0/class" + value: default-worker diff --git a/hack/examples/bases/nutanix/clusterclass/kustomization.yaml.tmpl b/hack/examples/bases/nutanix/clusterclass/kustomization.yaml.tmpl index 32333961b..5e265c008 100644 --- a/hack/examples/bases/nutanix/clusterclass/kustomization.yaml.tmpl +++ b/hack/examples/bases/nutanix/clusterclass/kustomization.yaml.tmpl @@ -30,6 +30,14 @@ patches: - op: "remove" path: "/spec/variables" +# Change the machineDeployments Class to match the other examples. +- target: + kind: ClusterClass + patch: |- + - op: "replace" + path: "/spec/workers/machineDeployments/0/class" + value: default-worker + # Delete the certSANs from the template # They will be added by the handler. - target: