Skip to content

Commit 3bd44f7

Browse files
added default option of cilium configuration
Signed-off-by: Dipankar Das <65275144+dipankardas011@users.noreply.github.com>
1 parent fda0844 commit 3bd44f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/handle_meta.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ func (k *KsctlCommand) handleCNI(metaClient *controllerMeta.Controller, managedC
304304

305305
// Get the Cilium Specific options
306306
// where 2 modes are there one if guided and another is advance
307-
ciliumMode, err := k.menuDriven.DropDownList("Select the cilium mode", []string{"guided", "advanced"}, cli.WithDefaultValue("guided"))
307+
ciliumMode, err := k.menuDriven.DropDownList("Select the cilium mode", []string{"guided", "advanced", "default"}, cli.WithDefaultValue("default"))
308308
if err != nil {
309309
return nil, errors.WrapError(
310310
errors.ErrInvalidUserInput,
@@ -331,7 +331,7 @@ func (k *KsctlCommand) handleCNI(metaClient *controllerMeta.Controller, managedC
331331
k.l.Debug(k.Ctx, "Selected cilium guided setup", "Setup", selectedOption)
332332
config[string(cni.CiliumComponentID)]["guidedConfig"] = selectedOption
333333

334-
} else {
334+
} else if ciliumMode == "advanced" {
335335
editor := os.Getenv("EDITOR")
336336
if editor == "" {
337337
editor = "vim"

0 commit comments

Comments
 (0)