Skip to content

Commit

Permalink
Update app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Deltachaos authored Jul 21, 2024
1 parent b198b89 commit ad6c36f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ def main():
logging.info(f"Creating result configmap: {result_configmap_name}")
create_configmap(namespace, result_configmap_name, data={})

if 'env' not in job_definition['spec']['template']['spec']['containers'][0]:
job_definition['spec']['template']['spec']['containers'][0]['env'] = {}

# Modify job definition to include the result configmap
job_definition['spec']['template']['spec']['containers'][0]['env'].append(
client.V1EnvVar(name='JOBSEQUENCE_RESULT_CONFIGMAP', value=result_configmap_name)
Expand Down

0 comments on commit ad6c36f

Please sign in to comment.