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
podfsGroupChangePolicystring// 'Always' or 'OnRootMismatch'
@@ -143,6 +143,7 @@ func (s *fsGroupChangePolicyTestSuite) DefineTests(driver storageframework.TestD
143
143
// * OnRootMismatch policy is not supported.
144
144
// * It may not be possible to chgrp after mounting a volume.
145
145
supportsVolumeMountGroupbool
146
+
volumeAccessMode*v1.PersistentVolumeAccessMode
146
147
}{
147
148
// Test cases for 'Always' policy
148
149
{
@@ -154,6 +155,16 @@ func (s *fsGroupChangePolicyTestSuite) DefineTests(driver storageframework.TestD
154
155
finalExpectedSubDirFileOwnership: 2000,
155
156
supportsVolumeMountGroup: true,
156
157
},
158
+
{
159
+
name: "rwop pod created with an initial fsgroup, new pod fsgroup applied to volume contents",
160
+
podfsGroupChangePolicy: "Always",
161
+
initialPodFsGroup: 1000,
162
+
secondPodFsGroup: 2000,
163
+
finalExpectedRootDirFileOwnership: 2000,
164
+
finalExpectedSubDirFileOwnership: 2000,
165
+
supportsVolumeMountGroup: true,
166
+
volumeAccessMode: &rwopAccessMode,
167
+
},
157
168
{
158
169
name: "pod created with an initial fsgroup, volume contents ownership changed via chgrp in first pod, new pod with same fsgroup applied to the volume contents",
159
170
podfsGroupChangePolicy: "Always",
@@ -218,6 +229,13 @@ func (s *fsGroupChangePolicyTestSuite) DefineTests(driver storageframework.TestD
0 commit comments