Skip to content

Commit

Permalink
Rename Flag
Browse files Browse the repository at this point in the history
  • Loading branch information
iamjanr committed Jun 1, 2023
1 parent 0f2db47 commit 4fee981
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/cluster/internal/create/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func Cluster(logger log.Logger, p providers.Provider, opts *ClusterOptions) erro
_ = delete.Cluster(nil, p, opts.Config.Name, "")
} else {
return errors.Errorf("A cluster with the name %q already exists \n"+
"Please use a different cluster name or delete the current container with --force flag", opts.Config.Name)
"Please use a different cluster name or delete the current container with --delete-previous flag", opts.Config.Name)
}
}

Expand Down
3 changes: 1 addition & 2 deletions pkg/cmd/kind/create/cluster/createcluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,9 @@ func NewCommand(logger log.Logger, streams cmd.IOStreams) *cobra.Command {
false,
"by setting this flag the worker cluster won't be created",
)
// Shortcut "-f" for "--force
cmd.Flags().BoolVar(
&flags.ForceDelete,
"force",
"delete-previous",
false,
"by setting this flag the local cluster will be deleted",
)
Expand Down

0 comments on commit 4fee981

Please sign in to comment.