Deprecate kubectl stop command
Added deprecation warning for stop.
This commit is contained in:
@@ -27,7 +27,10 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
stop_long = `Gracefully shut down a resource by name or filename.
|
||||
stop_long = `Deprecated: Gracefully shut down a resource by name or filename.
|
||||
|
||||
stop command is deprecated, all its functionalities are covered by delete command.
|
||||
See 'kubectl delete --help' for more details.
|
||||
|
||||
Attempts to shut down and delete a resource that supports graceful termination.
|
||||
If the resource is scalable it will be scaled to 0 before deletion.`
|
||||
@@ -50,7 +53,7 @@ func NewCmdStop(f *cmdutil.Factory, out io.Writer) *cobra.Command {
|
||||
}{}
|
||||
cmd := &cobra.Command{
|
||||
Use: "stop (-f FILENAME | RESOURCE (NAME | -l label | --all))",
|
||||
Short: "Gracefully shut down a resource by name or filename.",
|
||||
Short: "Deprecated: Gracefully shut down a resource by name or filename.",
|
||||
Long: stop_long,
|
||||
Example: stop_example,
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
|
Reference in New Issue
Block a user