mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 15:05:20 +00:00
Add kubectl rollout undo
This commit is contained in:
@@ -24,8 +24,9 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
rollout_long = `rollout manages a deployment using subcommands`
|
||||
rollout_example = ``
|
||||
rollout_long = `rollout manages a deployment using subcommands like "kubectl rollout undo deployment/abc"`
|
||||
rollout_example = `# Rollback to the previous deployment
|
||||
$ kubectl rollout undo deployment/abc`
|
||||
rollout_valid_resources = `Valid resource types include:
|
||||
* deployments
|
||||
`
|
||||
@@ -43,9 +44,11 @@ func NewCmdRollout(f *cmdutil.Factory, out io.Writer) *cobra.Command {
|
||||
},
|
||||
}
|
||||
|
||||
// subcommands
|
||||
cmd.AddCommand(NewCmdRolloutHistory(f, out))
|
||||
cmd.AddCommand(NewCmdRolloutPause(f, out))
|
||||
cmd.AddCommand(NewCmdRolloutResume(f, out))
|
||||
cmd.AddCommand(NewCmdRolloutUndo(f, out))
|
||||
|
||||
return cmd
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user