Skip to content

Commit

Permalink
feat(config): allow customisation of runtime group name (reanahub#440)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonadoni committed Feb 13, 2024
1 parent 36ce4e0 commit 5cec305
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion reana_commons/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,11 +303,18 @@ def kubernetes_node_label_to_dict(node_label):
WORKFLOW_RUNTIME_USER_NAME = os.getenv("WORKFLOW_RUNTIME_USER_NAME", "reana")
"""Default OS user name for running job controller."""

WORKFLOW_RUNTIME_GROUP_NAME = os.getenv("WORKFLOW_RUNTIME_GROUP_NAME", "root")
"""Default OS group name for running job controller."""

WORKFLOW_RUNTIME_USER_UID = os.getenv("WORKFLOW_RUNTIME_USER_UID", 1000)
"""Default user id for running job controller/workflow engine apps & jobs."""

WORKFLOW_RUNTIME_USER_GID = os.getenv("WORKFLOW_RUNTIME_USER_GID", 0)
"""Default group id for running job controller/workflow engine apps & jobs."""
"""Default group id for running job controller/workflow engine apps & jobs.
If the group id is changed to a value different than zero, then also the
`WORKFLOW_RUNTIME_GROUP_NAME` needs to be changed to a value different than `root`.
"""

REANA_USER_SECRET_MOUNT_PATH = os.getenv(
"REANA_USER_SECRET_MOUNT_PATH", "/etc/reana/secrets"
Expand Down

0 comments on commit 5cec305

Please sign in to comment.