VolumeAttributesClass v1beta1
apiVersion: storage.k8s.io/v1beta1
import "k8s.io/api/storage/v1beta1"
VolumeAttributesClass
VolumeAttributesClass 表示由 CSI 驱动程序定义的可变卷属性的规范。该类可以在 PersistentVolumeClaim 动态创建期间指定,并且可以在创建后在 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
ignoreStoreReadErrorWithClusterBreakingPotential (在查询中): boolean
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
ignoreStoreReadErrorWithClusterBreakingPotential (在查询中): boolean
labelSelector (在查询中): string
limit (在查询中): integer
pretty (在查询中): string
propagationPolicy (在查询中): string
resourceVersion (在查询中): string
resourceVersionMatch (在查询中): string
sendInitialEvents (在查询中): boolean
timeoutSeconds (在查询中): integer
响应
200 (Status): OK
401: 未授权
此页面是自动生成的。
如果您打算报告此页面的问题,请在问题描述中提及该页面是自动生成的。修复可能需要在 Kubernetes 项目中的其他地方进行。