VolumeAttributesClass
apiVersion: storage.k8s.io/v1
import "k8s.io/api/storage/v1"
VolumeAttributesClass
VolumeAttributesClass 表示由 CSI 驱动程序定义的、可变卷属性的规范。该类可以在 PersistentVolumeClaim 的动态配置期间指定,并且在配置后可以在 PersistentVolumeClaim 规范中更改。
apiVersion: storage.k8s.io/v1
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/v1
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/v1/volumeattributesclasses/{name}
参数
name (在路径中): string,必填
VolumeAttributesClass 的名称
pretty (在查询中): string
响应
200 (VolumeAttributesClass): 正常
401: 未授权
list
列出或监视 VolumeAttributesClass 类型的对象
HTTP 请求
GET /apis/storage.k8s.io/v1/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): 正常
401: 未授权
create
创建 VolumeAttributesClass
HTTP 请求
POST /apis/storage.k8s.io/v1/volumeattributesclasses
参数
body: VolumeAttributesClass,必需
dryRun (在查询中): string
fieldManager (在查询中): string
fieldValidation (在查询中): string
pretty (在查询中): string
响应
200 (VolumeAttributesClass): 正常
201 (VolumeAttributesClass): 已创建
202 (VolumeAttributesClass): 已接受
401: 未授权
update
替换指定的 VolumeAttributesClass
HTTP 请求
PUT /apis/storage.k8s.io/v1/volumeattributesclasses/{name}
参数
name (在路径中): string,必填
VolumeAttributesClass 的名称
body: VolumeAttributesClass,必需
dryRun (在查询中): string
fieldManager (在查询中): string
fieldValidation (在查询中): string
pretty (在查询中): string
响应
200 (VolumeAttributesClass): 正常
201 (VolumeAttributesClass): 已创建
401: 未授权
patch
部分更新指定的 VolumeAttributesClass
HTTP 请求
PATCH /apis/storage.k8s.io/v1/volumeattributesclasses/{name}
参数
name (在路径中): string,必填
VolumeAttributesClass 的名称
body: Patch,必需
dryRun (在查询中): string
fieldManager (在查询中): string
fieldValidation (在查询中): string
force (在查询中): boolean
pretty (在查询中): string
响应
200 (VolumeAttributesClass): 正常
201 (VolumeAttributesClass): 已创建
401: 未授权
delete
删除 VolumeAttributesClass
HTTP 请求
DELETE /apis/storage.k8s.io/v1/volumeattributesclasses/{name}
参数
name (在路径中): string,必填
VolumeAttributesClass 的名称
body: DeleteOptions
dryRun (在查询中): string
gracePeriodSeconds (在查询中): integer
ignoreStoreReadErrorWithClusterBreakingPotential (在查询中): boolean
pretty (在查询中): string
propagationPolicy (在查询中): string
响应
200 (VolumeAttributesClass): 正常
202 (VolumeAttributesClass): 已接受
401: 未授权
deletecollection
删除 VolumeAttributesClass 集合
HTTP 请求
DELETE /apis/storage.k8s.io/v1/volumeattributesclasses
参数
body: DeleteOptions
continue (在查询中): string
dryRun (在查询中): string
fieldSelector (在查询中): string
gracePeriodSeconds (在查询中): integer
ignoreStoreReadErrorWithClusterBreakingPotential (在查询中): boolean
labelSelector (在查询中): string
limit (在查询中): integer
pretty (在查询中): string
propagationPolicy (在查询中): string
resourceVersion (在查询中): string
resourceVersionMatch (在查询中): string
sendInitialEvents (在查询中): boolean
timeoutSeconds (在查询中): integer
响应
200 (Status): OK
401: 未授权
本页面是自动生成的。
如果你打算报告此页面存在的问题,请在问题描述中提及此页面是自动生成的。修复可能需要在 Kubernetes 项目的其他地方进行。