spectrocloud / cluster-api-provider-maas

Cluster API Provider for MAAS (https://maas.io/)
Apache License 2.0
88 stars 24 forks source link

chore: Make workers replicas configurable #121

Open imusmanmalik opened 9 months ago

imusmanmalik commented 9 months ago

Replicas for worker machines are not configurable, hence when generating using:

clusterctl generate cluster t-cluster --infrastructure=maas:v0.5.0 --kubernetes-version v1.26.4 --control-plane-machine-count=1 --worker-machine-count=2  > maas-cluster-api.yaml

--worker-machine-count=2 is not reflected in the generated MachineDeployment spec.replicas as its hardcoded and not templated.

Tested by providing overrides:

├── overrides
│   └── infrastructure-maas
│       └── v0.5.0
│           └── cluster-template.yaml