Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add --high-availability flag for cluster create and update #319

Merged
merged 5 commits into from
Sep 26, 2024

Conversation

qrnvttrl
Copy link
Collaborator

@qrnvttrl qrnvttrl commented Sep 24, 2024

This is for toggling the HA control plane feature.

@Gerrit91 Gerrit91 changed the title toggle ha Add --highavailability flag for cluster create and update Sep 24, 2024
@Gerrit91 Gerrit91 changed the title Add --highavailability flag for cluster create and update Add --high-availability flag for cluster create and update Sep 24, 2024
@mwennrich
Copy link
Contributor

mwennrich commented Sep 24, 2024

maybe use flag --high-availability-control-plane instead? It's more clear and leaves us the option to add later other HA flags like --high-availability-firewall or so?

cmd/cluster.go Outdated
@@ -673,6 +676,17 @@ WARNING: You are going to create a cluster that has no default internet access w
}
}

if viper.IsSet("high-availability-control-plane") {
scr.ClusterFeatures.HighAvailability = &highAvailability
if err := genericcli.PromptCustom(&genericcli.PromptConfig{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check is missing if it the flag is set to true.

@Gerrit91 Gerrit91 merged commit f24f4bc into master Sep 26, 2024
5 checks passed
@Gerrit91 Gerrit91 deleted the toggle-ha-cluster branch September 26, 2024 11:33
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants