Skip to content
Snippets Groups Projects
Commit 164a68b0 authored by Lukas Jelonek's avatar Lukas Jelonek
Browse files

Add configuration of k8s default image to repository config

parent 37cf6230
Branches
Tags
No related merge requests found
......@@ -85,6 +85,8 @@ def generate_execution(config, args):
execution = {}
execution['debug'] = args.debug
execution['use_k8s'] = args.k8s
if args.k8s and 'k8s' in config and 'defaultimage' in config['k8s']:
execution['k8s_default_image'] = config['k8s']['defaultimage']
execution['use_cluster'] = args.use_cluster
execution['fetch_dbxrefs'] = args.fetch_dbxrefs
execution['mode'] = 'live' if args.live else 'complete'
......
......@@ -440,7 +440,9 @@ def generate_nextflow_config(execution):
return nextflow_config
def generate_k8s_config(execution) :
image = 'psos-registry2.kenolej.de/psos/psot:dev'
image = ''
if "k8s_default_image" in execution:
image = execution["k8s_default_image"]
modules = [
{ 'id' : 'normalize_fasta' },
{ 'id' : 'join_documents' },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment