Skip to content

Commit

Permalink
add prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
qrnvttrl committed Sep 26, 2024
1 parent ce2c45a commit 5887454
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions cmd/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,13 @@ 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{
Message: "Enabling the HA control plane feature gate is still a beta feature. You cannot use it in combination with the cluster forwarding backend of the audit extension. Please be aware that you cannot revert this feature gate after it was enabled.",
ShowAnswers: true,
Out: c.out,
}); err != nil {
return err
}
}

egressRules := makeEgressRules(egress)
Expand Down Expand Up @@ -975,6 +982,17 @@ func (c *config) updateCluster(args []string) error {
}
if viper.IsSet("high-availability-control-plane") {
clusterFeatures.HighAvailability = &highAvailability
if v, _ := strconv.ParseBool(highAvailability); v {
if v, _ := strconv.ParseBool(highAvailability); v {
if err := genericcli.PromptCustom(&genericcli.PromptConfig{
Message: "Enabling the HA control plane feature gate is still a beta feature. You cannot use it in combination with the cluster forwarding backend of the audit extension. Please be aware that you cannot revert this feature gate after it was enabled.",
ShowAnswers: true,
Out: c.out,
}); err != nil {
return err
}
}
}
}

workergroupKubernetesVersion := viper.GetString("workerversion")
Expand Down

0 comments on commit 5887454

Please sign in to comment.