mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 15:37:24 +00:00
Update kubectl help for 1.2 resources
This commit is contained in:
@@ -24,7 +24,7 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
rollout_long = `rollout manages a deployment using subcommands like "kubectl rollout undo deployment/abc"`
|
||||
rollout_long = `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:
|
||||
|
||||
@@ -35,9 +35,12 @@ type HistoryOptions struct {
|
||||
}
|
||||
|
||||
const (
|
||||
history_long = `view previous rollout revisions and configurations.`
|
||||
history_long = `View previous rollout revisions and configurations.`
|
||||
history_example = `# View the rollout history of a deployment
|
||||
kubectl rollout history deployment/abc`
|
||||
kubectl rollout history deployment/abc
|
||||
|
||||
# View the details of deployment revision 3
|
||||
kubectl rollout history deployment/abc --revision=3`
|
||||
)
|
||||
|
||||
func NewCmdRolloutHistory(f *cmdutil.Factory, out io.Writer) *cobra.Command {
|
||||
|
||||
@@ -42,9 +42,12 @@ type UndoOptions struct {
|
||||
}
|
||||
|
||||
const (
|
||||
undo_long = `undo rolls back to a previous rollout.`
|
||||
undo_long = `Rollback to a previous rollout.`
|
||||
undo_example = `# Rollback to the previous deployment
|
||||
kubectl rollout undo deployment/abc`
|
||||
kubectl rollout undo deployment/abc
|
||||
|
||||
# Rollback to deployment revision 3
|
||||
kubectl rollout undo deployment/abc --to-revision=3`
|
||||
)
|
||||
|
||||
func NewCmdRolloutUndo(f *cmdutil.Factory, out io.Writer) *cobra.Command {
|
||||
|
||||
Reference in New Issue
Block a user