mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-15 06:43:54 +00:00
Deprecate kubectl rolling-update
This commit is contained in:
parent
ca06cc43f7
commit
50bbe57811
@ -81,9 +81,11 @@ func NewCmdRollingUpdate(f cmdutil.Factory, out io.Writer) *cobra.Command {
|
|||||||
cmd := &cobra.Command{
|
cmd := &cobra.Command{
|
||||||
Use: "rolling-update OLD_CONTROLLER_NAME ([NEW_CONTROLLER_NAME] --image=NEW_CONTAINER_IMAGE | -f NEW_CONTROLLER_SPEC)",
|
Use: "rolling-update OLD_CONTROLLER_NAME ([NEW_CONTROLLER_NAME] --image=NEW_CONTAINER_IMAGE | -f NEW_CONTROLLER_SPEC)",
|
||||||
DisableFlagsInUseLine: true,
|
DisableFlagsInUseLine: true,
|
||||||
Short: i18n.T("Perform a rolling update of the given ReplicationController"),
|
Short: "Perform a rolling update. This command is deprecated, use rollout instead.",
|
||||||
Long: rollingUpdateLong,
|
Long: rollingUpdateLong,
|
||||||
Example: rollingUpdateExample,
|
Example: rollingUpdateExample,
|
||||||
|
Deprecated: `use "rollout" instead`,
|
||||||
|
Hidden: true,
|
||||||
Run: func(cmd *cobra.Command, args []string) {
|
Run: func(cmd *cobra.Command, args []string) {
|
||||||
err := RunRollingUpdate(f, out, cmd, args, options)
|
err := RunRollingUpdate(f, out, cmd, args, options)
|
||||||
cmdutil.CheckErr(err)
|
cmdutil.CheckErr(err)
|
||||||
|
Loading…
Reference in New Issue
Block a user