Add control plane count selection to cluster creation form#565
Open
mgrzybek wants to merge 3 commits into
Open
Add control plane count selection to cluster creation form#565mgrzybek wants to merge 3 commits into
mgrzybek wants to merge 3 commits into
Conversation
Allow users to choose between 1 (single) or 3 (HA, default) control plane nodes when creating a Kubernetes cluster. - API: add `control_plane_count` field (choices: 1 or 3, default: 3) to `CreateKubernetesClusterSerializer` and propagate it through `create_cluster()` and `_build_cluster_spec()` as `controlPlaneMachineCount` in the CRD spec - Quota calculator: accept an explicit `control_plane_count` that overrides the template value when calculating required resources - UI: add inline radio buttons (1 / 3 HA) after the control plane size selector; defaults to 3 on new clusters Requires azimuth-capi-operator with azimuth-cloud/azimuth-capi-operator#587 merged and released.
m-bull
requested changes
Apr 28, 2026
| # First, deal with the control plane | ||
| resources.add_machines(template.control_plane_count, control_plane_size) | ||
| resources.add_machines(cp_count, control_plane_size) | ||
| if template.etcd_volume_size > 0: |
Contributor
There was a problem hiding this comment.
I think we need to account for etcd_volume_size coming in from values now too, rather than just from the template.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Allow users to choose between 1 (single) or 3 (HA, default) control plane nodes when creating a Kubernetes cluster.
control_plane_countfield (choices: 1 or 3, default: 3) toCreateKubernetesClusterSerializerand propagate it throughcreate_cluster()and_build_cluster_spec()ascontrolPlaneMachineCountin the CRD speccontrol_plane_countthat overrides the template value when calculating required resourcesRequires azimuth-capi-operator with azimuth-cloud/azimuth-capi-operator#587 merged and released.