From 811a1df1ef4757b84345911d607bdfa0d93ccbad Mon Sep 17 00:00:00 2001 From: Jean-Philippe Evrard Date: Wed, 10 Apr 2019 13:17:46 +0200 Subject: [PATCH] Allow value overrides in CI This allows to pass a new env var into shell scripts, for value overrides, with Zuul's help (value_overrides can be part of the job definition). Change-Id: Ia5dcecb73f4b872fd8fb65d3cd0bf69c19addf07 --- roles/osh-run-script/tasks/main.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/roles/osh-run-script/tasks/main.yaml b/roles/osh-run-script/tasks/main.yaml index bbecb5ad7..8211f70ba 100644 --- a/roles/osh-run-script/tasks/main.yaml +++ b/roles/osh-run-script/tasks/main.yaml @@ -19,5 +19,11 @@ environment: zuul_site_mirror_fqdn: "{{ zuul_site_mirror_fqdn }}" OSH_EXTRA_HELM_ARGS: "{{ zuul_osh_extra_helm_args_relative_path | default('') }}" + OSH_VALUES_OVERRIDES_HELM_ARGS: > + {% if values_overrides is defined %} + {% for value_override in values_overrides %} + --values={{ value_override }} + {% endfor %} + {% endif %} OSH_PATH: "{{ zuul_osh_relative_path | default('../openstack-helm/') }}" OSH_INFRA_PATH: "{{ zuul_osh_infra_relative_path | default('../openstack-helm-infra/') }}"