Also reword the documentation help
| ... | ... |
@@ -13768,6 +13768,8 @@ _oc_set_volumes() |
| 13768 | 13768 |
local_nonpersistent_flags+=("--add")
|
| 13769 | 13769 |
flags+=("--all")
|
| 13770 | 13770 |
local_nonpersistent_flags+=("--all")
|
| 13771 |
+ flags+=("--claim-class=")
|
|
| 13772 |
+ local_nonpersistent_flags+=("--claim-class=")
|
|
| 13771 | 13773 |
flags+=("--claim-mode=")
|
| 13772 | 13774 |
local_nonpersistent_flags+=("--claim-mode=")
|
| 13773 | 13775 |
flags+=("--claim-name=")
|
| ... | ... |
@@ -14181,6 +14183,8 @@ _oc_volumes() |
| 14181 | 14181 |
local_nonpersistent_flags+=("--add")
|
| 14182 | 14182 |
flags+=("--all")
|
| 14183 | 14183 |
local_nonpersistent_flags+=("--all")
|
| 14184 |
+ flags+=("--claim-class=")
|
|
| 14185 |
+ local_nonpersistent_flags+=("--claim-class=")
|
|
| 14184 | 14186 |
flags+=("--claim-mode=")
|
| 14185 | 14187 |
local_nonpersistent_flags+=("--claim-mode=")
|
| 14186 | 14188 |
flags+=("--claim-name=")
|
| ... | ... |
@@ -18443,6 +18443,8 @@ _openshift_cli_set_volumes() |
| 18443 | 18443 |
local_nonpersistent_flags+=("--add")
|
| 18444 | 18444 |
flags+=("--all")
|
| 18445 | 18445 |
local_nonpersistent_flags+=("--all")
|
| 18446 |
+ flags+=("--claim-class=")
|
|
| 18447 |
+ local_nonpersistent_flags+=("--claim-class=")
|
|
| 18446 | 18448 |
flags+=("--claim-mode=")
|
| 18447 | 18449 |
local_nonpersistent_flags+=("--claim-mode=")
|
| 18448 | 18450 |
flags+=("--claim-name=")
|
| ... | ... |
@@ -18819,6 +18821,8 @@ _openshift_cli_volumes() |
| 18819 | 18819 |
local_nonpersistent_flags+=("--add")
|
| 18820 | 18820 |
flags+=("--all")
|
| 18821 | 18821 |
local_nonpersistent_flags+=("--all")
|
| 18822 |
+ flags+=("--claim-class=")
|
|
| 18823 |
+ local_nonpersistent_flags+=("--claim-class=")
|
|
| 18822 | 18824 |
flags+=("--claim-mode=")
|
| 18823 | 18825 |
local_nonpersistent_flags+=("--claim-mode=")
|
| 18824 | 18826 |
flags+=("--claim-name=")
|
| ... | ... |
@@ -13929,6 +13929,8 @@ _oc_set_volumes() |
| 13929 | 13929 |
local_nonpersistent_flags+=("--add")
|
| 13930 | 13930 |
flags+=("--all")
|
| 13931 | 13931 |
local_nonpersistent_flags+=("--all")
|
| 13932 |
+ flags+=("--claim-class=")
|
|
| 13933 |
+ local_nonpersistent_flags+=("--claim-class=")
|
|
| 13932 | 13934 |
flags+=("--claim-mode=")
|
| 13933 | 13935 |
local_nonpersistent_flags+=("--claim-mode=")
|
| 13934 | 13936 |
flags+=("--claim-name=")
|
| ... | ... |
@@ -14342,6 +14344,8 @@ _oc_volumes() |
| 14342 | 14342 |
local_nonpersistent_flags+=("--add")
|
| 14343 | 14343 |
flags+=("--all")
|
| 14344 | 14344 |
local_nonpersistent_flags+=("--all")
|
| 14345 |
+ flags+=("--claim-class=")
|
|
| 14346 |
+ local_nonpersistent_flags+=("--claim-class=")
|
|
| 14345 | 14347 |
flags+=("--claim-mode=")
|
| 14346 | 14348 |
local_nonpersistent_flags+=("--claim-mode=")
|
| 14347 | 14349 |
flags+=("--claim-name=")
|
| ... | ... |
@@ -18604,6 +18604,8 @@ _openshift_cli_set_volumes() |
| 18604 | 18604 |
local_nonpersistent_flags+=("--add")
|
| 18605 | 18605 |
flags+=("--all")
|
| 18606 | 18606 |
local_nonpersistent_flags+=("--all")
|
| 18607 |
+ flags+=("--claim-class=")
|
|
| 18608 |
+ local_nonpersistent_flags+=("--claim-class=")
|
|
| 18607 | 18609 |
flags+=("--claim-mode=")
|
| 18608 | 18610 |
local_nonpersistent_flags+=("--claim-mode=")
|
| 18609 | 18611 |
flags+=("--claim-name=")
|
| ... | ... |
@@ -18980,6 +18982,8 @@ _openshift_cli_volumes() |
| 18980 | 18980 |
local_nonpersistent_flags+=("--add")
|
| 18981 | 18981 |
flags+=("--all")
|
| 18982 | 18982 |
local_nonpersistent_flags+=("--all")
|
| 18983 |
+ flags+=("--claim-class=")
|
|
| 18984 |
+ local_nonpersistent_flags+=("--claim-class=")
|
|
| 18983 | 18985 |
flags+=("--claim-mode=")
|
| 18984 | 18986 |
local_nonpersistent_flags+=("--claim-mode=")
|
| 18985 | 18987 |
flags+=("--claim-name=")
|
| ... | ... |
@@ -52,6 +52,10 @@ For descriptions on other volume types, see |
| 52 | 52 |
select all resources in the namespace of the specified resource types |
| 53 | 53 |
|
| 54 | 54 |
.PP |
| 55 |
+\fB\-\-claim\-class\fP="" |
|
| 56 |
+ StorageClass to use for the persistent volume claim |
|
| 57 |
+ |
|
| 58 |
+.PP |
|
| 55 | 59 |
\fB\-\-claim\-mode\fP="ReadWriteOnce" |
| 56 | 60 |
Set the access mode of the claim to be created. Valid values are ReadWriteOnce (rwo), ReadWriteMany (rwm), or ReadOnlyMany (rom) |
| 57 | 61 |
|
| ... | ... |
@@ -26,6 +26,10 @@ DEPRECATED: This command has been moved to "oc set volume" |
| 26 | 26 |
select all resources in the namespace of the specified resource types |
| 27 | 27 |
|
| 28 | 28 |
.PP |
| 29 |
+\fB\-\-claim\-class\fP="" |
|
| 30 |
+ StorageClass to use for the persistent volume claim |
|
| 31 |
+ |
|
| 32 |
+.PP |
|
| 29 | 33 |
\fB\-\-claim\-mode\fP="ReadWriteOnce" |
| 30 | 34 |
Set the access mode of the claim to be created. Valid values are ReadWriteOnce (rwo), ReadWriteMany (rwm), or ReadOnlyMany (rom) |
| 31 | 35 |
|
| ... | ... |
@@ -52,6 +52,10 @@ For descriptions on other volume types, see |
| 52 | 52 |
select all resources in the namespace of the specified resource types |
| 53 | 53 |
|
| 54 | 54 |
.PP |
| 55 |
+\fB\-\-claim\-class\fP="" |
|
| 56 |
+ StorageClass to use for the persistent volume claim |
|
| 57 |
+ |
|
| 58 |
+.PP |
|
| 55 | 59 |
\fB\-\-claim\-mode\fP="ReadWriteOnce" |
| 56 | 60 |
Set the access mode of the claim to be created. Valid values are ReadWriteOnce (rwo), ReadWriteMany (rwm), or ReadOnlyMany (rom) |
| 57 | 61 |
|
| ... | ... |
@@ -26,6 +26,10 @@ DEPRECATED: This command has been moved to "openshift cli set volume" |
| 26 | 26 |
select all resources in the namespace of the specified resource types |
| 27 | 27 |
|
| 28 | 28 |
.PP |
| 29 |
+\fB\-\-claim\-class\fP="" |
|
| 30 |
+ StorageClass to use for the persistent volume claim |
|
| 31 |
+ |
|
| 32 |
+.PP |
|
| 29 | 33 |
\fB\-\-claim\-mode\fP="ReadWriteOnce" |
| 30 | 34 |
Set the access mode of the claim to be created. Valid values are ReadWriteOnce (rwo), ReadWriteMany (rwm), or ReadOnlyMany (rom) |
| 31 | 35 |
|
| ... | ... |
@@ -190,7 +190,7 @@ func NewCmdVolume(fullName string, f *clientcmd.Factory, out, errOut io.Writer) |
| 190 | 190 |
cmd.Flags().StringVar(&addOpts.ConfigMapName, "configmap-name", "", "Name of the persisted config map. Must be provided for configmap volume type") |
| 191 | 191 |
cmd.Flags().StringVar(&addOpts.SecretName, "secret-name", "", "Name of the persisted secret. Must be provided for secret volume type") |
| 192 | 192 |
cmd.Flags().StringVar(&addOpts.ClaimName, "claim-name", "", "Persistent volume claim name. Must be provided for persistentVolumeClaim volume type") |
| 193 |
- cmd.Flags().StringVar(&addOpts.ClaimClass, "claim-class", "", "StorageClass to use for provisioning the persistent volume.") |
|
| 193 |
+ cmd.Flags().StringVar(&addOpts.ClaimClass, "claim-class", "", "StorageClass to use for the persistent volume claim") |
|
| 194 | 194 |
cmd.Flags().StringVar(&addOpts.ClaimSize, "claim-size", "", "If specified along with a persistent volume type, create a new claim with the given size in bytes. Accepts SI notation: 10, 10G, 10Gi") |
| 195 | 195 |
cmd.Flags().StringVar(&addOpts.ClaimMode, "claim-mode", "ReadWriteOnce", "Set the access mode of the claim to be created. Valid values are ReadWriteOnce (rwo), ReadWriteMany (rwm), or ReadOnlyMany (rom)") |
| 196 | 196 |
cmd.Flags().StringVar(&addOpts.Source, "source", "", "Details of volume source as json string. This can be used if the required volume type is not supported by --type option. (e.g.: '{\"gitRepo\": {\"repository\": <git-url>, \"revision\": <commit-hash>}}')")
|