@@ -138,17 +138,23 @@ type VolumeAttributesClass struct {
138
138
// +optional
139
139
metav1.ObjectMeta
140
140
141
- // Spec defines the behavior of a VolumeAttributesClass.
142
- // +optional
143
- Spec VolumeAttributesClassSpec
144
- }
145
-
146
- type VolumeAttributesClassSpec struct {
147
- // Name of the driver
141
+ // Name of the CSI driver
142
+ // This field is immutable.
148
143
DriverName string
149
- // This field is OPTIONAL.This allows the CO to specify the
150
- // volume attributes class parameters to apply.
151
- // These parameters are immutable
144
+
145
+ // parameters hold volume attributes defined by the CSI driver. These values
146
+ // are opaque to the Kubernetes and are passed directly to the CSI driver.
147
+ // The underlying storage provider supports changing these attributes on an
148
+ // existing volume, however the parameters field itself is immutable. To
149
+ // invoke a volume update, a new VolumeAttributesClass should be created with
150
+ // new parameters, and the PersistentVolumeClaim should be updated to reference
151
+ // the new VolumeAttributesClass.
152
+ //
153
+ // This field is required and must contain at least one key/value pair.
154
+ // The keys cannot be empty, and the maximum number of parameters is 512, with
155
+ // a cumulative max size of 256K. If the CSI driver rejects invalid parameters,
156
+ // the target PersistentVolumeClaim will be set to an "Infeasible" state in the
157
+ // modifyVolumeStatus field.
152
158
Parameters map[string]string
153
159
}
154
160
@@ -1276,4 +1282,4 @@ More details in Google doc [CSI Spec for ModifyVolume](https://docs.google.com/d
1276
1282
1277
1283
## Infrastructure Needed (Optional)
1278
1284
1279
- Not needed.
1285
+ Not needed.
0 commit comments