Storage-level isolation in DataStage

Each PX instance can access a persistent volume that is mounted at px-storage and all instances have access to a shared volume mounted at ds-storage. You can hide these volumes from PX instances by using the command line.

To hide /ds-storage from the asset browser for all PX instances, set the flag hide_ds_volume on the DataStage custom resource by running this command. The px-runtime pods of all PX instances will restart.
oc -n ${PROJECT_CPD_INSTANCE} patch datastage datastage --type merge -p '{"spec": {"hide_ds_volume": true}}'
To hide both /ds-storage and /px-storage from the asset browser for a particular PX instance, set the flag hide_default_volumes on the PX custom resource with this command.
oc -n ${PROJECT_CPD_INSTANCE} patch pxruntime <cr-name> --type merge -p '{"spec": {"hide_default_volumes": true}}'

By default, any target files that do not use the absolute file path are written to /ds-storage. To change the default location, set the environment variable APT_WORKING_DIRECTORY.