VolumeAttributesClass v1beta1
apiVersion: storage.k8s.io/v1beta1
import "k8s.io/api/storage/v1beta1"
VolumeAttributesClass
VolumeAttributesClass 表示 CSI 驱动程序定义的可变卷属性的规范。该类可以在 PersistentVolumeClaims 的动态配置期间指定,并在配置后在 PersistentVolumeClaim 规范中更改。
apiVersion: storage.k8s.io/v1beta1
kind: VolumeAttributesClass
metadata (ObjectMeta)
标准的对象的元数据。更多信息:https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
driverName (string), 必需
CSI 驱动程序的名称。此字段是不可变的。
parameters (map[string]string)
parameters 保存 CSI 驱动程序定义的卷属性。这些值对于 Kubernetes 是不透明的,并直接传递给 CSI 驱动程序。底层存储提供程序支持在现有卷上更改这些属性,但是 parameters 字段本身是不可变的。要调用卷更新,应使用新参数创建新的 VolumeAttributesClass,并且应更新 PersistentVolumeClaim 以引用新的 VolumeAttributesClass。
此字段是必需的,并且必须至少包含一个键/值对。键不能为空,参数的最大数量为 512,累积最大大小为 256K。如果 CSI 驱动程序拒绝无效的参数,则目标 PersistentVolumeClaim 将在 modifyVolumeStatus 字段中设置为“Infeasible”状态。
VolumeAttributesClassList
VolumeAttributesClassList 是 VolumeAttributesClass 对象的集合。
apiVersion: storage.k8s.io/v1beta1
kind: VolumeAttributesClassList
metadata (ListMeta)
标准列表元数据。更多信息:https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
items ([]VolumeAttributesClass), 必需
items 是 VolumeAttributesClass 对象的列表。
操作
get
读取指定的 VolumeAttributesClass
HTTP 请求
GET /apis/storage.k8s.io/v1beta1/volumeattributesclasses/{name}
参数
name (在路径中): string, 必需
VolumeAttributesClass 的名称
pretty (在查询中): string
响应
200 (VolumeAttributesClass): OK
401: 未授权
list
列出或监视 VolumeAttributesClass 类型的对象
HTTP 请求
GET /apis/storage.k8s.io/v1beta1/volumeattributesclasses
参数
allowWatchBookmarks (在查询中): boolean
continue (在查询中): string
fieldSelector (在查询中): string
labelSelector (在查询中): string
limit (在查询中): integer
pretty (在查询中): string
resourceVersion (在查询中): string
resourceVersionMatch (在查询中): string
sendInitialEvents (在查询中): boolean
timeoutSeconds (在查询中): integer
watch (在查询中): boolean
响应
200 (VolumeAttributesClassList): OK
401: 未授权
create
创建一个 VolumeAttributesClass
HTTP 请求
POST /apis/storage.k8s.io/v1beta1/volumeattributesclasses
参数
body: VolumeAttributesClass, 必需
dryRun (在查询中): string
fieldManager (在查询中): string
fieldValidation (在查询中): string
pretty (在查询中): string
响应
200 (VolumeAttributesClass): OK
201 (VolumeAttributesClass): 已创建
202 (VolumeAttributesClass): 已接受
401: 未授权
update
替换指定的 VolumeAttributesClass
HTTP 请求
PUT /apis/storage.k8s.io/v1beta1/volumeattributesclasses/{name}
参数
name (在路径中): string, 必需
VolumeAttributesClass 的名称
body: VolumeAttributesClass, 必需
dryRun (在查询中): string
fieldManager (在查询中): string
fieldValidation (在查询中): string
pretty (在查询中): string
响应
200 (VolumeAttributesClass): OK
201 (VolumeAttributesClass): 已创建
401: 未授权
patch
部分更新指定的 VolumeAttributesClass
HTTP 请求
PATCH /apis/storage.k8s.io/v1beta1/volumeattributesclasses/{name}
参数
name (在路径中): string, 必需
VolumeAttributesClass 的名称
body: Patch, 必需
dryRun (在查询中): string
fieldManager (在查询中): string
fieldValidation (在查询中): string
force (在查询中): boolean
pretty (在查询中): string
响应
200 (VolumeAttributesClass): OK
201 (VolumeAttributesClass): 已创建
401: 未授权
delete
删除 VolumeAttributesClass
HTTP 请求
DELETE /apis/storage.k8s.io/v1beta1/volumeattributesclasses/{name}
参数
name (在路径中): string, 必需
VolumeAttributesClass 的名称
body: DeleteOptions
dryRun (在查询中): string
gracePeriodSeconds (在查询中): integer
pretty (在查询中): string
propagationPolicy (在查询中): string
响应
200 (VolumeAttributesClass): OK
202 (VolumeAttributesClass): 已接受
401: 未授权
deletecollection
删除 VolumeAttributesClass 的集合
HTTP 请求
DELETE /apis/storage.k8s.io/v1beta1/volumeattributesclasses
参数
body: DeleteOptions
continue (在查询中): string
dryRun (在查询中): string
fieldSelector (在查询中): string
gracePeriodSeconds (在查询中): integer
labelSelector (在查询中): string
limit (在查询中): integer
pretty (在查询中): string
propagationPolicy (在查询中): string
resourceVersion (在查询中): string
resourceVersionMatch (在查询中): string
sendInitialEvents (在查询中): boolean
timeoutSeconds (在查询中): integer
响应
200 (Status): OK
401: 未授权
此页面是自动生成的。
如果您计划报告此页面的问题,请在您的问题描述中提及该页面是自动生成的。修复可能需要在 Kubernetes 项目中的其他位置进行。