robolaunch / robot-operator

Kubernetes Robot Operator for ROS/2 Based Robots
https://robolaunch.github.io/robot-operator/
Apache License 2.0
24 stars 3 forks source link

PR: Mount Volumes from Host #201

Closed tunahanertekin closed 1 year ago

tunahanertekin commented 1 year ago

:herb: PR: Mount Volumes from Host

Description

Environments/Robots can mount volumes from the host machine using additional config with key HOST_DIR.

Closes #199

Type of change

How can it be tested?

Can be tested with a robot/an environment with this configuration:

additionalConfigs:
  "HOST_DIRS":
    configType: "Operator"
    value: "/root/tuna:/automounted,/directory/from/host:/this-is-mount-path"

Regex

Use this regular expression to mount directories from host.

^(((\/[a-z0-9./_-]+):(\/[a-z0-9./_-]+))+,)*(((\/[a-z0-9./_-]+):(\/[a-z0-9./_-]+))+)$