| ... | ... |
@@ -5220,6 +5220,7 @@ _oc_autoscale() |
| 5220 | 5220 |
must_have_one_flag+=("--max=")
|
| 5221 | 5221 |
must_have_one_noun=() |
| 5222 | 5222 |
must_have_one_noun+=("deployment")
|
| 5223 |
+ must_have_one_noun+=("deploymentconfig")
|
|
| 5223 | 5224 |
must_have_one_noun+=("replicaset")
|
| 5224 | 5225 |
must_have_one_noun+=("replicationcontroller")
|
| 5225 | 5226 |
noun_aliases=() |
| ... | ... |
@@ -11488,6 +11489,7 @@ _oc_rollout_history() |
| 11488 | 11488 |
must_have_one_flag=() |
| 11489 | 11489 |
must_have_one_noun=() |
| 11490 | 11490 |
must_have_one_noun+=("deployment")
|
| 11491 |
+ must_have_one_noun+=("deploymentconfig")
|
|
| 11491 | 11492 |
noun_aliases=() |
| 11492 | 11493 |
noun_aliases+=("deploy")
|
| 11493 | 11494 |
noun_aliases+=("deployments")
|
| ... | ... |
@@ -11535,6 +11537,7 @@ _oc_rollout_latest() |
| 11535 | 11535 |
|
| 11536 | 11536 |
must_have_one_flag=() |
| 11537 | 11537 |
must_have_one_noun=() |
| 11538 |
+ must_have_one_noun+=("deploymentconfig")
|
|
| 11538 | 11539 |
noun_aliases=() |
| 11539 | 11540 |
} |
| 11540 | 11541 |
|
| ... | ... |
@@ -11588,6 +11591,7 @@ _oc_rollout_pause() |
| 11588 | 11588 |
must_have_one_flag=() |
| 11589 | 11589 |
must_have_one_noun=() |
| 11590 | 11590 |
must_have_one_noun+=("deployment")
|
| 11591 |
+ must_have_one_noun+=("deploymentconfig")
|
|
| 11591 | 11592 |
noun_aliases=() |
| 11592 | 11593 |
noun_aliases+=("deploy")
|
| 11593 | 11594 |
noun_aliases+=("deployments")
|
| ... | ... |
@@ -11643,6 +11647,7 @@ _oc_rollout_resume() |
| 11643 | 11643 |
must_have_one_flag=() |
| 11644 | 11644 |
must_have_one_noun=() |
| 11645 | 11645 |
must_have_one_noun+=("deployment")
|
| 11646 |
+ must_have_one_noun+=("deploymentconfig")
|
|
| 11646 | 11647 |
noun_aliases=() |
| 11647 | 11648 |
noun_aliases+=("deploy")
|
| 11648 | 11649 |
noun_aliases+=("deployments")
|
| ... | ... |
@@ -11700,6 +11705,7 @@ _oc_rollout_undo() |
| 11700 | 11700 |
must_have_one_flag=() |
| 11701 | 11701 |
must_have_one_noun=() |
| 11702 | 11702 |
must_have_one_noun+=("deployment")
|
| 11703 |
+ must_have_one_noun+=("deploymentconfig")
|
|
| 11703 | 11704 |
noun_aliases=() |
| 11704 | 11705 |
noun_aliases+=("deploy")
|
| 11705 | 11706 |
noun_aliases+=("deployments")
|
| ... | ... |
@@ -12054,8 +12060,10 @@ _oc_scale() |
| 12054 | 12054 |
must_have_one_flag=() |
| 12055 | 12055 |
must_have_one_flag+=("--replicas=")
|
| 12056 | 12056 |
must_have_one_noun=() |
| 12057 |
+ must_have_one_noun+=("deployment")
|
|
| 12057 | 12058 |
must_have_one_noun+=("deploymentconfig")
|
| 12058 | 12059 |
must_have_one_noun+=("job")
|
| 12060 |
+ must_have_one_noun+=("replicaset")
|
|
| 12059 | 12061 |
must_have_one_noun+=("replicationcontroller")
|
| 12060 | 12062 |
noun_aliases=() |
| 12061 | 12063 |
noun_aliases+=("deploy")
|
| ... | ... |
@@ -9691,6 +9691,7 @@ _openshift_cli_autoscale() |
| 9691 | 9691 |
must_have_one_flag+=("--max=")
|
| 9692 | 9692 |
must_have_one_noun=() |
| 9693 | 9693 |
must_have_one_noun+=("deployment")
|
| 9694 |
+ must_have_one_noun+=("deploymentconfig")
|
|
| 9694 | 9695 |
must_have_one_noun+=("replicaset")
|
| 9695 | 9696 |
must_have_one_noun+=("replicationcontroller")
|
| 9696 | 9697 |
noun_aliases=() |
| ... | ... |
@@ -16049,6 +16050,7 @@ _openshift_cli_rollout_history() |
| 16049 | 16049 |
must_have_one_flag=() |
| 16050 | 16050 |
must_have_one_noun=() |
| 16051 | 16051 |
must_have_one_noun+=("deployment")
|
| 16052 |
+ must_have_one_noun+=("deploymentconfig")
|
|
| 16052 | 16053 |
noun_aliases=() |
| 16053 | 16054 |
noun_aliases+=("deploy")
|
| 16054 | 16055 |
noun_aliases+=("deployments")
|
| ... | ... |
@@ -16097,6 +16099,7 @@ _openshift_cli_rollout_latest() |
| 16097 | 16097 |
|
| 16098 | 16098 |
must_have_one_flag=() |
| 16099 | 16099 |
must_have_one_noun=() |
| 16100 |
+ must_have_one_noun+=("deploymentconfig")
|
|
| 16100 | 16101 |
noun_aliases=() |
| 16101 | 16102 |
} |
| 16102 | 16103 |
|
| ... | ... |
@@ -16151,6 +16154,7 @@ _openshift_cli_rollout_pause() |
| 16151 | 16151 |
must_have_one_flag=() |
| 16152 | 16152 |
must_have_one_noun=() |
| 16153 | 16153 |
must_have_one_noun+=("deployment")
|
| 16154 |
+ must_have_one_noun+=("deploymentconfig")
|
|
| 16154 | 16155 |
noun_aliases=() |
| 16155 | 16156 |
noun_aliases+=("deploy")
|
| 16156 | 16157 |
noun_aliases+=("deployments")
|
| ... | ... |
@@ -16207,6 +16211,7 @@ _openshift_cli_rollout_resume() |
| 16207 | 16207 |
must_have_one_flag=() |
| 16208 | 16208 |
must_have_one_noun=() |
| 16209 | 16209 |
must_have_one_noun+=("deployment")
|
| 16210 |
+ must_have_one_noun+=("deploymentconfig")
|
|
| 16210 | 16211 |
noun_aliases=() |
| 16211 | 16212 |
noun_aliases+=("deploy")
|
| 16212 | 16213 |
noun_aliases+=("deployments")
|
| ... | ... |
@@ -16265,6 +16270,7 @@ _openshift_cli_rollout_undo() |
| 16265 | 16265 |
must_have_one_flag=() |
| 16266 | 16266 |
must_have_one_noun=() |
| 16267 | 16267 |
must_have_one_noun+=("deployment")
|
| 16268 |
+ must_have_one_noun+=("deploymentconfig")
|
|
| 16268 | 16269 |
noun_aliases=() |
| 16269 | 16270 |
noun_aliases+=("deploy")
|
| 16270 | 16271 |
noun_aliases+=("deployments")
|
| ... | ... |
@@ -16624,8 +16630,10 @@ _openshift_cli_scale() |
| 16624 | 16624 |
must_have_one_flag=() |
| 16625 | 16625 |
must_have_one_flag+=("--replicas=")
|
| 16626 | 16626 |
must_have_one_noun=() |
| 16627 |
+ must_have_one_noun+=("deployment")
|
|
| 16627 | 16628 |
must_have_one_noun+=("deploymentconfig")
|
| 16628 | 16629 |
must_have_one_noun+=("job")
|
| 16630 |
+ must_have_one_noun+=("replicaset")
|
|
| 16629 | 16631 |
must_have_one_noun+=("replicationcontroller")
|
| 16630 | 16632 |
noun_aliases=() |
| 16631 | 16633 |
noun_aliases+=("deploy")
|
| ... | ... |
@@ -5381,6 +5381,7 @@ _oc_autoscale() |
| 5381 | 5381 |
must_have_one_flag+=("--max=")
|
| 5382 | 5382 |
must_have_one_noun=() |
| 5383 | 5383 |
must_have_one_noun+=("deployment")
|
| 5384 |
+ must_have_one_noun+=("deploymentconfig")
|
|
| 5384 | 5385 |
must_have_one_noun+=("replicaset")
|
| 5385 | 5386 |
must_have_one_noun+=("replicationcontroller")
|
| 5386 | 5387 |
noun_aliases=() |
| ... | ... |
@@ -11649,6 +11650,7 @@ _oc_rollout_history() |
| 11649 | 11649 |
must_have_one_flag=() |
| 11650 | 11650 |
must_have_one_noun=() |
| 11651 | 11651 |
must_have_one_noun+=("deployment")
|
| 11652 |
+ must_have_one_noun+=("deploymentconfig")
|
|
| 11652 | 11653 |
noun_aliases=() |
| 11653 | 11654 |
noun_aliases+=("deploy")
|
| 11654 | 11655 |
noun_aliases+=("deployments")
|
| ... | ... |
@@ -11696,6 +11698,7 @@ _oc_rollout_latest() |
| 11696 | 11696 |
|
| 11697 | 11697 |
must_have_one_flag=() |
| 11698 | 11698 |
must_have_one_noun=() |
| 11699 |
+ must_have_one_noun+=("deploymentconfig")
|
|
| 11699 | 11700 |
noun_aliases=() |
| 11700 | 11701 |
} |
| 11701 | 11702 |
|
| ... | ... |
@@ -11749,6 +11752,7 @@ _oc_rollout_pause() |
| 11749 | 11749 |
must_have_one_flag=() |
| 11750 | 11750 |
must_have_one_noun=() |
| 11751 | 11751 |
must_have_one_noun+=("deployment")
|
| 11752 |
+ must_have_one_noun+=("deploymentconfig")
|
|
| 11752 | 11753 |
noun_aliases=() |
| 11753 | 11754 |
noun_aliases+=("deploy")
|
| 11754 | 11755 |
noun_aliases+=("deployments")
|
| ... | ... |
@@ -11804,6 +11808,7 @@ _oc_rollout_resume() |
| 11804 | 11804 |
must_have_one_flag=() |
| 11805 | 11805 |
must_have_one_noun=() |
| 11806 | 11806 |
must_have_one_noun+=("deployment")
|
| 11807 |
+ must_have_one_noun+=("deploymentconfig")
|
|
| 11807 | 11808 |
noun_aliases=() |
| 11808 | 11809 |
noun_aliases+=("deploy")
|
| 11809 | 11810 |
noun_aliases+=("deployments")
|
| ... | ... |
@@ -11861,6 +11866,7 @@ _oc_rollout_undo() |
| 11861 | 11861 |
must_have_one_flag=() |
| 11862 | 11862 |
must_have_one_noun=() |
| 11863 | 11863 |
must_have_one_noun+=("deployment")
|
| 11864 |
+ must_have_one_noun+=("deploymentconfig")
|
|
| 11864 | 11865 |
noun_aliases=() |
| 11865 | 11866 |
noun_aliases+=("deploy")
|
| 11866 | 11867 |
noun_aliases+=("deployments")
|
| ... | ... |
@@ -12215,8 +12221,10 @@ _oc_scale() |
| 12215 | 12215 |
must_have_one_flag=() |
| 12216 | 12216 |
must_have_one_flag+=("--replicas=")
|
| 12217 | 12217 |
must_have_one_noun=() |
| 12218 |
+ must_have_one_noun+=("deployment")
|
|
| 12218 | 12219 |
must_have_one_noun+=("deploymentconfig")
|
| 12219 | 12220 |
must_have_one_noun+=("job")
|
| 12221 |
+ must_have_one_noun+=("replicaset")
|
|
| 12220 | 12222 |
must_have_one_noun+=("replicationcontroller")
|
| 12221 | 12223 |
noun_aliases=() |
| 12222 | 12224 |
noun_aliases+=("deploy")
|
| ... | ... |
@@ -9852,6 +9852,7 @@ _openshift_cli_autoscale() |
| 9852 | 9852 |
must_have_one_flag+=("--max=")
|
| 9853 | 9853 |
must_have_one_noun=() |
| 9854 | 9854 |
must_have_one_noun+=("deployment")
|
| 9855 |
+ must_have_one_noun+=("deploymentconfig")
|
|
| 9855 | 9856 |
must_have_one_noun+=("replicaset")
|
| 9856 | 9857 |
must_have_one_noun+=("replicationcontroller")
|
| 9857 | 9858 |
noun_aliases=() |
| ... | ... |
@@ -16210,6 +16211,7 @@ _openshift_cli_rollout_history() |
| 16210 | 16210 |
must_have_one_flag=() |
| 16211 | 16211 |
must_have_one_noun=() |
| 16212 | 16212 |
must_have_one_noun+=("deployment")
|
| 16213 |
+ must_have_one_noun+=("deploymentconfig")
|
|
| 16213 | 16214 |
noun_aliases=() |
| 16214 | 16215 |
noun_aliases+=("deploy")
|
| 16215 | 16216 |
noun_aliases+=("deployments")
|
| ... | ... |
@@ -16258,6 +16260,7 @@ _openshift_cli_rollout_latest() |
| 16258 | 16258 |
|
| 16259 | 16259 |
must_have_one_flag=() |
| 16260 | 16260 |
must_have_one_noun=() |
| 16261 |
+ must_have_one_noun+=("deploymentconfig")
|
|
| 16261 | 16262 |
noun_aliases=() |
| 16262 | 16263 |
} |
| 16263 | 16264 |
|
| ... | ... |
@@ -16312,6 +16315,7 @@ _openshift_cli_rollout_pause() |
| 16312 | 16312 |
must_have_one_flag=() |
| 16313 | 16313 |
must_have_one_noun=() |
| 16314 | 16314 |
must_have_one_noun+=("deployment")
|
| 16315 |
+ must_have_one_noun+=("deploymentconfig")
|
|
| 16315 | 16316 |
noun_aliases=() |
| 16316 | 16317 |
noun_aliases+=("deploy")
|
| 16317 | 16318 |
noun_aliases+=("deployments")
|
| ... | ... |
@@ -16368,6 +16372,7 @@ _openshift_cli_rollout_resume() |
| 16368 | 16368 |
must_have_one_flag=() |
| 16369 | 16369 |
must_have_one_noun=() |
| 16370 | 16370 |
must_have_one_noun+=("deployment")
|
| 16371 |
+ must_have_one_noun+=("deploymentconfig")
|
|
| 16371 | 16372 |
noun_aliases=() |
| 16372 | 16373 |
noun_aliases+=("deploy")
|
| 16373 | 16374 |
noun_aliases+=("deployments")
|
| ... | ... |
@@ -16426,6 +16431,7 @@ _openshift_cli_rollout_undo() |
| 16426 | 16426 |
must_have_one_flag=() |
| 16427 | 16427 |
must_have_one_noun=() |
| 16428 | 16428 |
must_have_one_noun+=("deployment")
|
| 16429 |
+ must_have_one_noun+=("deploymentconfig")
|
|
| 16429 | 16430 |
noun_aliases=() |
| 16430 | 16431 |
noun_aliases+=("deploy")
|
| 16431 | 16432 |
noun_aliases+=("deployments")
|
| ... | ... |
@@ -16785,8 +16791,10 @@ _openshift_cli_scale() |
| 16785 | 16785 |
must_have_one_flag=() |
| 16786 | 16786 |
must_have_one_flag+=("--replicas=")
|
| 16787 | 16787 |
must_have_one_noun=() |
| 16788 |
+ must_have_one_noun+=("deployment")
|
|
| 16788 | 16789 |
must_have_one_noun+=("deploymentconfig")
|
| 16789 | 16790 |
must_have_one_noun+=("job")
|
| 16791 |
+ must_have_one_noun+=("replicaset")
|
|
| 16790 | 16792 |
must_have_one_noun+=("replicationcontroller")
|
| 16791 | 16793 |
noun_aliases=() |
| 16792 | 16794 |
noun_aliases+=("deploy")
|
| ... | ... |
@@ -72,6 +72,7 @@ func NewCmdRolloutHistory(fullName string, f *clientcmd.Factory, out io.Writer) |
| 72 | 72 |
cmd := rollout.NewCmdRolloutHistory(f.Factory, out) |
| 73 | 73 |
cmd.Long = rolloutHistoryLong |
| 74 | 74 |
cmd.Example = fmt.Sprintf(rolloutHistoryExample, fullName) |
| 75 |
+ cmd.ValidArgs = append(cmd.ValidArgs, "deploymentconfig") |
|
| 75 | 76 |
return cmd |
| 76 | 77 |
} |
| 77 | 78 |
|
| ... | ... |
@@ -93,6 +94,7 @@ func NewCmdRolloutPause(fullName string, f *clientcmd.Factory, out io.Writer) *c |
| 93 | 93 |
cmd := rollout.NewCmdRolloutPause(f.Factory, out) |
| 94 | 94 |
cmd.Long = rolloutPauseLong |
| 95 | 95 |
cmd.Example = fmt.Sprintf(rolloutPauseExample, fullName) |
| 96 |
+ cmd.ValidArgs = append(cmd.ValidArgs, "deploymentconfig") |
|
| 96 | 97 |
return cmd |
| 97 | 98 |
} |
| 98 | 99 |
|
| ... | ... |
@@ -112,6 +114,7 @@ func NewCmdRolloutResume(fullName string, f *clientcmd.Factory, out io.Writer) * |
| 112 | 112 |
cmd := rollout.NewCmdRolloutResume(f.Factory, out) |
| 113 | 113 |
cmd.Long = rolloutResumeLong |
| 114 | 114 |
cmd.Example = fmt.Sprintf(rolloutResumeExample, fullName) |
| 115 |
+ cmd.ValidArgs = append(cmd.ValidArgs, "deploymentconfig") |
|
| 115 | 116 |
return cmd |
| 116 | 117 |
} |
| 117 | 118 |
|
| ... | ... |
@@ -148,5 +151,6 @@ func NewCmdRolloutUndo(fullName string, f *clientcmd.Factory, out io.Writer) *co |
| 148 | 148 |
cmd := rollout.NewCmdRolloutUndo(f.Factory, out) |
| 149 | 149 |
cmd.Long = rolloutUndoLong |
| 150 | 150 |
cmd.Example = fmt.Sprintf(rolloutUndoExample, fullName) |
| 151 |
+ cmd.ValidArgs = append(cmd.ValidArgs, "deploymentconfig") |
|
| 151 | 152 |
return cmd |
| 152 | 153 |
} |
| ... | ... |
@@ -337,7 +337,7 @@ func NewCmdScale(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Co |
| 337 | 337 |
cmd.Short = "Change the number of pods in a deployment" |
| 338 | 338 |
cmd.Long = scaleLong |
| 339 | 339 |
cmd.Example = fmt.Sprintf(scaleExample, fullName) |
| 340 |
- cmd.ValidArgs = []string{"deploymentconfig", "job", "replicationcontroller"}
|
|
| 340 |
+ cmd.ValidArgs = append(cmd.ValidArgs, "deploymentconfig") |
|
| 341 | 341 |
return cmd |
| 342 | 342 |
} |
| 343 | 343 |
|
| ... | ... |
@@ -358,9 +358,10 @@ increase or decrease number of pods deployed within the system as needed.` |
| 358 | 358 |
// NewCmdAutoscale is a wrapper for the Kubernetes cli autoscale command |
| 359 | 359 |
func NewCmdAutoscale(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command {
|
| 360 | 360 |
cmd := kcmd.NewCmdAutoscale(f.Factory, out) |
| 361 |
- cmd.Short = "Autoscale a deployment config or replication controller" |
|
| 361 |
+ cmd.Short = "Autoscale a deployment config, deployment, replication controller, or replica set" |
|
| 362 | 362 |
cmd.Long = autoScaleLong |
| 363 | 363 |
cmd.Example = fmt.Sprintf(autoScaleExample, fullName) |
| 364 |
+ cmd.ValidArgs = append(cmd.ValidArgs, "deploymentconfig") |
|
| 364 | 365 |
return cmd |
| 365 | 366 |
} |
| 366 | 367 |
|