Skip to content

Commit 6c6ced2

Browse files
authored
Merge pull request #46785 from AndrewSirenko/patch-1
KEP-3751 VolumeAttributeClass Beta Promotion
2 parents a8f156b + 8c25433 commit 6c6ced2

File tree

2 files changed

+19
-9
lines changed

2 files changed

+19
-9
lines changed

content/en/docs/concepts/storage/volume-attributes-classes.md

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ weight: 40
88
---
99
<!-- overview -->
1010

11-
{{< feature-state for_k8s_version="v1.29" state="alpha" >}}
11+
{{< feature-state feature_gate_name="VolumeAttributesClass" >}}
1212

1313
This page assumes that you are familiar with [StorageClasses](/docs/concepts/storage/storage-classes/),
1414
[volumes](/docs/concepts/storage/volumes/) and [PersistentVolumes](/docs/concepts/storage/persistent-volumes/)
@@ -18,17 +18,23 @@ in Kubernetes.
1818

1919
A VolumeAttributesClass provides a way for administrators to describe the mutable
2020
"classes" of storage they offer. Different classes might map to different quality-of-service levels.
21-
Kubernetes itself is unopinionated about what these classes represent.
21+
Kubernetes itself is un-opinionated about what these classes represent.
2222

23-
This is an alpha feature and disabled by default.
23+
This is a beta feature and disabled by default.
2424

25-
If you want to test the feature whilst it's alpha, you need to enable the `VolumeAttributesClass`
25+
If you want to test the feature whilst it's beta, you need to enable the `VolumeAttributesClass`
2626
[feature gate](/docs/reference/command-line-tools-reference/feature-gates/) for the kube-controller-manager and the kube-apiserver. You use the `--feature-gates` command line argument:
2727

2828
```
2929
--feature-gates="...,VolumeAttributesClass=true"
3030
```
3131

32+
You will also have to enable the `storage.k8s.io/v1beta1` API group through the `kube-apiserver` [runtime-config](https://kubernetes.io/docs/tasks/administer-cluster/enable-disable-api/). You use the following command line argument:
33+
34+
```
35+
--runtime-config=storage.k8s.io/v1beta1=true
36+
```
37+
3238
You can also only use VolumeAttributesClasses with storage backed by
3339
{{< glossary_tooltip text="Container Storage Interface" term_id="csi" >}}, and only where the
3440
relevant CSI driver implements the `ModifyVolume` API.
@@ -45,7 +51,7 @@ While the name of a VolumeAttributesClass object in a `PersistentVolumeClaim` is
4551

4652

4753
```yaml
48-
apiVersion: storage.k8s.io/v1alpha1
54+
apiVersion: storage.k8s.io/v1beta1
4955
kind: VolumeAttributesClass
5056
metadata:
5157
name: silver
@@ -74,7 +80,7 @@ Each VolumeAttributesClass has a resizer that determines what volume plugin is u
7480

7581
The modifying volume feature support for VolumeAttributesClass is implemented in [kubernetes-csi/external-resizer](https://github.com/kubernetes-csi/external-resizer).
7682

77-
For example, a existing PersistentVolumeClaim is using a VolumeAttributesClass named silver:
83+
For example, an existing PersistentVolumeClaim is using a VolumeAttributesClass named silver:
7884

7985
```yaml
8086
apiVersion: v1
@@ -91,7 +97,7 @@ A new VolumeAttributesClass gold is available in the cluster:
9197

9298

9399
```yaml
94-
apiVersion: storage.k8s.io/v1alpha1
100+
apiVersion: storage.k8s.io/v1beta1
95101
kind: VolumeAttributesClass
96102
metadata:
97103
name: gold
@@ -128,4 +134,4 @@ the parameters may be used depends on the CSI driver implementation.
128134
Please refer to the related CSI driver documentation for more details.
129135

130136
There can be at most 512 parameters defined for a VolumeAttributesClass.
131-
The total length of the parameters object including its keys and values cannot exceed 256 KiB.
137+
The total length of the parameters object including its keys and values cannot exceed 256 KiB.

content/en/docs/reference/command-line-tools-reference/feature-gates/volume-attributes-class.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,13 @@ _build:
66
render: false
77

88
stages:
9-
- stage: alpha
9+
- stage: alpha
1010
defaultValue: false
1111
fromVersion: "1.29"
12+
toVersion: "1.30"
13+
- stage: beta
14+
defaultValue: false
15+
fromVersion: "1.31"
1216
---
1317
Enable support for VolumeAttributesClasses.
1418
See [Volume Attributes Classes](/docs/concepts/storage/volume-attributes-classes/)

0 commit comments

Comments
 (0)