@@ -1266,13 +1266,15 @@ message NodeStageVolumeRequest {
1266
1266
map <string , string > volume_context = 6 ;
1267
1267
1268
1268
// If SP has VOLUME_MOUNT_GROUP node capability and CO provides
1269
- // this field then SP MUST ensure that volume is mounted with
1270
- // provided volume_mount_group and all files and directories
1271
- // within the volume are readable and writable by the provided
1272
- // volume_mount_group.
1273
- // The value of volume_mount_group should be group
1274
- // identifier (as determined by underlying operating system)
1275
- // which would be associated with workload that uses the volume.
1269
+ // this field then SP MUST ensure that the volume_mount_group
1270
+ // parameter is passed as the group identifier to the underlying
1271
+ // operating system mount system call, with the understanding
1272
+ // that the set of available mount call parameters and/or
1273
+ // mount implementations may vary across operating systems.
1274
+ // Additionally, new file and/or directory entries written to
1275
+ // the underlying filesystem SHOULD be permission-labeled in such a
1276
+ // manner, unless otherwise modified by a workload, that they are
1277
+ // both readable and writable by said mount group identifier.
1276
1278
// This is an OPTIONAL field.
1277
1279
string volume_mount_group = 7 ;
1278
1280
}
@@ -1359,23 +1361,24 @@ message NodePublishVolumeRequest {
1359
1361
// volume identified by `volume_id`.
1360
1362
map <string , string > volume_context = 8 ;
1361
1363
1364
+
1362
1365
// If SP has VOLUME_MOUNT_GROUP node capability and CO provides
1363
- // this field then SP MUST ensure that volume is mounted with
1364
- // provided volume_mount_group and all files and directories
1365
- // within the volume are readable and writable by the provided
1366
- // volume_mount_group.
1367
- // If NodeStageVolume was previously called with volume_mount_group
1368
- // CO MUST ensure that NodePublishVolume uses the same
1369
- // volume_mount_group for the same volume_id.
1370
- // If Plugin does not have `STAGE_UNSTAGE_VOLUME` capability the CO
1371
- // MAY call NodePublishVolume with different volume_mount_group and
1372
- // target_path for same volume_id.
1373
- // If a Plugin does not support multiple calls of NodePublishVolume
1374
- // with different volume_mount_group and target_path for same volume
1375
- // on same node - it MAY return FAILED_PRECONDITION error.
1376
- // The value of volume_mount_group should be group
1377
- // identifier (as determined by underlying operating system)
1378
- // which would be associated with workload that uses the volume .
1366
+ // this field then SP MUST ensure that the volume_mount_group
1367
+ // parameter is passed as the group identifier to the underlying
1368
+ // operating system mount system call, with the understanding
1369
+ // that the set of available mount call parameters and/or
1370
+ // mount implementations may vary across operating systems.
1371
+ // Additionally, new file and/or directory entries written to
1372
+ // the underlying filesystem SHOULD be permission-labeled in such a
1373
+ // manner, unless otherwise modified by a workload, that they are
1374
+ // both readable and writable by said mount group identifier.
1375
+ //
1376
+ // If Plugin does not support NodePublishVolume with different
1377
+ // volume_mount_group than the one used during NodeStageVolume
1378
+ // then Plugin MAY return FAILED_PRECONDITION error.
1379
+ // Similarly if SP does not support NodePublishVolume of same volume
1380
+ // on same node but with different volume_mount_group it MAY return
1381
+ // FAILED_PRECONDITION error .
1379
1382
// This is an OPTIONAL field.
1380
1383
string volume_mount_group = 9 ;
1381
1384
}
@@ -1510,11 +1513,6 @@ message NodeServiceCapability {
1510
1513
// Indicates that Node service supports mounting volumes
1511
1514
// with provided volume group identifier during node stage
1512
1515
// or node publish RPC calls.
1513
- // SP MUST use provided volume_mount_group for mounting the
1514
- // volume and volume MUST remain readable and writable by
1515
- // workloads associated with volume_mount_group until
1516
- // corresponding NodeUnstageVolume or NodeUnpublishVolume is
1517
- // called.
1518
1516
VOLUME_MOUNT_GROUP = 5 [(alpha_enum_value) = true ];
1519
1517
}
1520
1518
0 commit comments