Skip to content

Commit

Permalink
fix: updated params and data paths
Browse files Browse the repository at this point in the history
  • Loading branch information
tlawrie committed Aug 7, 2024
1 parent 8f75cb2 commit e7aa02a
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,16 +202,15 @@ public TaskRun createTaskRun(
*
* Create volumes and Volume Mounts
* - /props for mounting config_maps @deprecated
* - /data for task storage (optional - needed if using in memory storage) @deprecated
* - /flow/params for mounting taskrun params as files
* - /flow/data for task storage (optional - needed if using in memory storage)
* - /params for mounting taskrun params as files
* - /data for task storage (optional - needed if using in memory storage)
*/
List<VolumeMount> volumeMounts = new ArrayList<>();
List<Volume> volumes = new ArrayList<>();

VolumeMount dataVolumeMount = new VolumeMount();
dataVolumeMount.setName(helperKubeService.getPrefixVol() + "-data");
dataVolumeMount.setMountPath("/flow/data");
dataVolumeMount.setMountPath("/data");
volumeMounts.add(dataVolumeMount);

Volume dataVolume = new Volume();
Expand All @@ -236,7 +235,7 @@ public TaskRun createTaskRun(
*/
VolumeMount propsVolumeMount = new VolumeMount();
propsVolumeMount.setName(helperKubeService.getPrefixVol() + "-params");
propsVolumeMount.setMountPath("/flow/params");
propsVolumeMount.setMountPath("/params");
volumeMounts.add(propsVolumeMount);

Volume propsVolume = new Volume();
Expand Down

0 comments on commit e7aa02a

Please sign in to comment.