Skip to content

Commit cc566d3

Browse files
authored
Print cluster down confirmation message if skip prompt (#1394)
1 parent 1ff333f commit cc566d3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cli/cmd/cluster.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,9 @@ var _downCmd = &cobra.Command{
465465
"cortex.dev/load-balancer": "operator",
466466
})
467467

468-
if !_flagClusterDisallowPrompt {
468+
if _flagClusterDisallowPrompt {
469+
fmt.Printf("your cluster named \"%s\" in %s will be spun down and all apis will be deleted\n\n", *accessConfig.ClusterName, *accessConfig.Region)
470+
} else {
469471
prompt.YesOrExit(fmt.Sprintf("your cluster named \"%s\" in %s will be spun down and all apis will be deleted, are you sure you want to continue?", *accessConfig.ClusterName, *accessConfig.Region), "", "")
470472
}
471473

0 commit comments

Comments
 (0)