Skip to content

Commit d115207

Browse files
committed
feat(k8s): change image pull secrets for jobcontroller
1 parent 4db9268 commit d115207

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

reana_workflow_controller/workflow_run_manager.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -874,14 +874,9 @@ def _create_job_spec(
874874
volumes += kerberos.volumes
875875
spec.template.spec.init_containers.append(kerberos.init_container)
876876

877-
image_pull_secrets = []
878-
for secret_name in REANA_JOB_CONTROLLER_SECRET:
879-
if secret_name:
880-
self.image_pull_secrets.append({"name": secret_name})
881-
882-
if image_pull_secrets:
877+
if REANA_JOB_CONTROLLER_SECRET:
883878
spec.template.spec.image_pull_secrets = [
884-
client.V1LocalObjectReference(name=self.image_pull_secrets)
879+
client.V1LocalObjectReference(name= REANA_JOB_CONTROLLER_SECRET)
885880
]
886881

887882
# filter out volumes with the same name

0 commit comments

Comments
 (0)