26.2. 常规 CLI 用法
oc set volume 命令使用以下通用语法:
oc set volume <object_selection> <operation> <mandatory_parameters> <optional_parameters>
$ oc set volume <object_selection> <operation> <mandatory_parameters> <optional_parameters>
本主题使用 <object_type>/<name> 的形式用于 <object_selection>。但是,您可以选择以下选项之一:
| 语法 | 描述 | 示例 |
|---|---|---|
|
|
选择类型为 |
|
|
|
选择类型为 |
|
|
|
选择与给定标签选择器匹配且类型为 |
|
|
|
选择类型为 |
|
|
| 用于编辑资源的文件名、目录或文件 URL。 |
|
<operation> 可以是 --add, --remove, 或 --list 之一。
任何 <mandatory_parameters> 或 <optional_parameters> 都特定于所选操作,并在后续小节中讨论。