mirror of
https://gitlab.opencode.de/bmi/opendesk/deployment/opendesk.git
synced 2025-12-06 07:21:36 +01:00
fix(dev-tooling): Fix path names when refencing local Helm chart copies in helmfile-child.yaml.gotmpl files
This commit is contained in:
committed by
Thorsten Roßner
parent
c4e4258162
commit
60f5e36b7c
@@ -98,6 +98,8 @@ def clone_charts_locally(branch, charts):
|
|||||||
if os.path.isdir(chart_local_path):
|
if os.path.isdir(chart_local_path):
|
||||||
logging.debug(f"Found pre-existing {chart_local_path} skipping clone/pull, but will still reference chart in Helmfile...")
|
logging.debug(f"Found pre-existing {chart_local_path} skipping clone/pull, but will still reference chart in Helmfile...")
|
||||||
charts_dict[chart] = chart_local_path
|
charts_dict[chart] = chart_local_path
|
||||||
|
git_url = options.git_hostname+':'+repository
|
||||||
|
doublette_dict[git_url] = chart_local_path
|
||||||
continue
|
continue
|
||||||
elif 'opendesk/components/platform-development/charts' in repository:
|
elif 'opendesk/components/platform-development/charts' in repository:
|
||||||
logging.info("Cloning the charts repo")
|
logging.info("Cloning the charts repo")
|
||||||
@@ -153,7 +155,7 @@ def process_the_helmfiles(charts_dict, charts):
|
|||||||
if '.Values.charts.'+chart_ident+'.name' in line:
|
if '.Values.charts.'+chart_ident+'.name' in line:
|
||||||
logging.debug(f"found match with {chart_ident} in {line.strip()}")
|
logging.debug(f"found match with {chart_ident} in {line.strip()}")
|
||||||
line = charts_dict[chart_ident]
|
line = charts_dict[chart_ident]
|
||||||
if os.path.isdir(line+'/charts/'+chart_ident):
|
if os.path.isdir(line+'/charts/'+charts['charts'][chart_ident]['name']):
|
||||||
line += '/charts/'+charts['charts'][chart_ident]['name']
|
line += '/charts/'+charts['charts'][chart_ident]['name']
|
||||||
elif not os.path.isdir(line):
|
elif not os.path.isdir(line):
|
||||||
sys.exit(f"! Did not find directory to reference in Helmfile: '{line}'")
|
sys.exit(f"! Did not find directory to reference in Helmfile: '{line}'")
|
||||||
|
|||||||
Reference in New Issue
Block a user