Skip to content

Commit 481d103

Browse files
Mridul vermaMridul verma
authored andcommitted
Add subPath support for PVC mounts
- Added sub_path field to PvcMount protobuf message - Updated mount_pvc() function to accept optional sub_path parameter - Added test case for mounting PVC with subPath - Fixes #11832
1 parent 60cafb5 commit 481d103

File tree

4 files changed

+80
-46
lines changed

4 files changed

+80
-46
lines changed

kubernetes_platform/proto/kubernetes_executor_config.proto

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ message PvcMount {
9393
// Container path to which the PVC should be mounted.
9494
string mount_path = 4;
9595

96+
// Optional subPath inside the PVC to mount (instead of mounting the volume root).
97+
string sub_path = 6;
98+
9699
// Name of the PVC.
97100
ml_pipelines.TaskInputsSpec.InputParameterSpec pvc_name_parameter = 5;
98101
}

0 commit comments

Comments
 (0)