Update kubectl help for 1.2 resources

This commit is contained in:
Janet Kuo
2016-03-21 14:00:43 -07:00
parent d124deeb2f
commit e93b855242
29 changed files with 126 additions and 112 deletions

View File

@@ -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:

View File

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

View File

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