shorten flag name to --cancel-scheduled
parent
b7eaaf8c75
commit
70cb886a39
|
|
@ -61,7 +61,7 @@ func init() {
|
|||
stopCmd.Flags().BoolVar(&stopAll, "all", false, "Set flag to stop all profiles (clusters)")
|
||||
stopCmd.Flags().BoolVar(&keepActive, "keep-context-active", false, "keep the kube-context active after cluster is stopped. Defaults to false.")
|
||||
stopCmd.Flags().DurationVar(&scheduledStopDuration, "schedule", 0*time.Second, "Set flag to stop cluster after a set amount of time (e.g. --schedule=5m)")
|
||||
stopCmd.Flags().BoolVar(&cancelScheduledStop, "cancel-scheduled-stop", false, "cancel any existing scheduled stop requests")
|
||||
stopCmd.Flags().BoolVar(&cancelScheduledStop, "cancel-scheduled", false, "cancel any existing scheduled stop requests")
|
||||
|
||||
if err := stopCmd.Flags().MarkHidden("schedule"); err != nil {
|
||||
klog.Info("unable to mark --schedule flag as hidden")
|
||||
|
|
|
|||
|
|
@ -20,10 +20,10 @@ minikube stop [flags]
|
|||
### Options
|
||||
|
||||
```
|
||||
--all Set flag to stop all profiles (clusters)
|
||||
--cancel-scheduled-stop cancel any existing scheduled stop requests
|
||||
--keep-context-active keep the kube-context active after cluster is stopped. Defaults to false.
|
||||
-o, --output string Format to print stdout in. Options include: [text,json] (default "text")
|
||||
--all Set flag to stop all profiles (clusters)
|
||||
--cancel-scheduled cancel any existing scheduled stop requests
|
||||
--keep-context-active keep the kube-context active after cluster is stopped. Defaults to false.
|
||||
-o, --output string Format to print stdout in. Options include: [text,json] (default "text")
|
||||
```
|
||||
|
||||
### Options inherited from parent commands
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@ func TestScheduledStopUnix(t *testing.T) {
|
|||
|
||||
// cancel the shutdown and make sure minikube is still running after 8 seconds
|
||||
// sleep 12 just to be safe
|
||||
stopMinikube(ctx, t, profile, []string{"--cancel-scheduled-stop"})
|
||||
stopMinikube(ctx, t, profile, []string{"--cancel-scheduled"})
|
||||
time.Sleep(12 * time.Second)
|
||||
ensureMinikubeStatus(ctx, t, profile, state.Running.String())
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue