Skip to content

Commit

Permalink
replacing "_" with "-" for k8s job names and volume mounts
Browse files Browse the repository at this point in the history
  • Loading branch information
PhillipsOwen committed Sep 20, 2023
1 parent ff449c2 commit 344de29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/supervisor/job_supervisor.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,8 +549,8 @@ def k8s_create_run_config(self, run: dict, job_type: JobType, command_line_param
config = self.get_job_configs()[run['workflow_type']][job_type]

# load the config with the info from the config file
config['JOB_NAME'] += str(run['id']).lower()
config['DATA_VOLUME_NAME'] += str(run['id']).lower()
config['JOB_NAME'] += str(run['id']).lower().replace('_', '-')
config['DATA_VOLUME_NAME'] += str(run['id']).lower().replace('_', '-')
config['COMMAND_LINE'].extend(command_line_params)

# tack on any additional paths if requested
Expand Down

0 comments on commit 344de29

Please sign in to comment.