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 ad6c36f commit 6ef2ec0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ def main():
config.load_incluster_config()
namespace = os.getenv('NAMESPACE', 'default')
configmap_name = os.getenv('JOB_CONFIGMAP')
job_name_env = os.getenv('JOB_NAME')
job_name_env = "job"

if not job_name_env:
job_name_env = "job"
if os.getenv('JOB_NAME'):
job_name_env = os.getenv('JOB_NAME')

v1 = client.CoreV1Api()

Expand Down

0 comments on commit 6ef2ec0

Please sign in to comment.