Merge pull request #11973 from hurf/deprecate_stop

Deprecate kubectl stop command
This commit is contained in:
Mike Danese
2015-07-29 15:47:59 -07:00
4 changed files with 19 additions and 9 deletions

View File

@@ -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) {