You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: keps/sig-storage/1682-csi-driver-skip-permission/README.md
+26-26Lines changed: 26 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,7 +51,7 @@ such as presence of fsType on the PVC to determine if the volume supports fsGrou
51
51
permission change. These heuristics are known to be fragile, and cause problems with different
52
52
storage types.
53
53
54
-
To solve this issue we will add a new field called `CSIDriver.Spec.SupportsFSGroup`
54
+
To solve this issue we will add a new field called `CSIDriver.Spec.FSGroupPolicy`
55
55
that allows the driver to define if it supports volume ownership modifications via
56
56
fsGroup.
57
57
@@ -75,12 +75,12 @@ support these operations.
75
75
76
76
We propose that the `CSIDriver` type include a field that defines if the volume
77
77
provided by the driver supports changing volume ownership. This will be enabled
78
-
with a new feature gate, `CSIVolumeSupportFSGroup`.
78
+
with a new feature gate, `CSIVolumeFSGroupPolicy`.
79
79
80
80
### Risks and Mitigations
81
81
82
82
- The CSIDriver objects will need to be redeployed after this field is introduced if the desired behavior is modified.
83
-
- If a cluster enables the `CSIVolumeSupportFSGroup` feature gate and then this feature gate is disabled,
83
+
- If a cluster enables the `CSIVolumeFSGroupPolicy` feature gate and then this feature gate is disabled,
84
84
such as due to an upgrade or downgrade, then the cluster will revert to the current behavior of examining
85
85
volumes and attempting to apply volume ownerships and permissions based on the defined `fsGroup`.
86
86
@@ -92,65 +92,64 @@ attempt to modify the volume ownership and permissions.
92
92
93
93
As part of this proposal we will change the algorithm that modifies volume ownership and permissions
94
94
for CSIDrivers to check the new field, and skip volume ownership modifications if it is found to be
95
-
`Never`.
95
+
`None`.
96
96
97
97
When defining a `CSIDriver`, we propose that `CSIDriver.Spec` be expanded to include a new field entitled
98
-
`SupportsFSGroup` which can have following possible values:
98
+
`CSIVolumeFSGroupPolicy` which can have following possible values:
99
99
100
-
-`OnlyRWO` --> Current behavior. Attempt to modify the volume ownership and permissions to the defined `fsGroup` when the volume is
101
-
mounted if accessModes is RWO.
102
-
-`Never` --> New behavior. Attach the volume without attempting to modify volume ownership or permissions.
103
-
-`Always` --> New behavior. Always attempt to apply the defined fsGroup to modify volume ownership and permissions.
100
+
-`ReadWriteOnceWithFSType` --> Current behavior. Attempt to modify the volume ownership and permissions to the defined `fsGroup` when the volume is mounted if accessModes is RWO.
101
+
-`None` --> New behavior. Attach the volume without attempting to modify volume ownership or permissions.
102
+
-`File` --> New behavior. Always attempt to apply the defined fsGroup to modify volume ownership and permissions regardless of fstype or access mode.
0 commit comments