Verified Commit 736408aa authored by Sebastian Schüpbach's avatar Sebastian Schüpbach
Browse files

stringify array used as helm command arg

parent 060ab56f
Pipeline #37685 passed with stages
in 1 minute and 27 seconds
......@@ -75,16 +75,13 @@ class DeleteService:
# We need to handle the fact that we can't use an array as argument
# value when calling helm. For details see
# https://github.com/helm/helm/issues/1987#issuecomment-682352463.
job_args = {
'jobArgs[0]': '--' + set_values['deleteObject'] + '-filter',
'jobArgs[1]': set_values['deleteId'],
}
job_args = ['--' + set_values['deleteObject'] + '-filter',
set_values['deleteId']]
if dryrun:
job_args.update({'jobArgs[2]': '--dry-run',
'jobArgs[3]': set_values['sessionId']})
job_args.extend(['--dry-run', set_values['sessionId']])
else:
job_args.update({'jobArgs[2]': set_values['sessionId']})
job_args = {'jobArgs': job_args}
job_args.append(set_values['sessionId'])
job_args = {'jobArgs': ' '.join(job_args)}
cp = self.helm.install( # noqa: F841
chart=os.path.join(self.root_path, "charts", 'dd-marker-prod'),
name=set_values['sessionId'] + '-deleter',
......
......@@ -8,7 +8,7 @@ TFV_REGISTRY="cr.gitlab.switch.ch/memoriav/memobase-2020/services/import-process
TFV_CHART_VERSION="1.3.4-chart"
IPD_REGISTRY="cr.gitlab.switch.ch/memoriav/memobase-2020/services/deletion-components/import-process-delete"
IPD_CHART_VERSION="0.3.1-chart"
IPD_CHART_VERSION="0.3.2-chart"
helm chart pull ${TFV_REGISTRY}:${TFV_CHART_VERSION}
helm chart export ${TFV_REGISTRY}:${TFV_CHART_VERSION} -d charts/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment