From ef9d254e55cf27c013052a41c4ad723951968f26 Mon Sep 17 00:00:00 2001 From: Dustin Specker Date: Fri, 12 Mar 2021 15:10:40 -0600 Subject: [PATCH] fix(standard-container/functional): create namespace for Helm release Before Helm would fail to deploy the release if the namespace was missing in the cluster. Now Helm will create the namespace if missing. This isn't hit when the target cluster is the same cluster running the tekton pipelines. This issue is only hit when the kubeconfig provided via jarvis.yaml is for another cluster which might not have the namespace created. Change-Id: I3fdc6b353a2af2a667884c3250108b9f6c6b9a02 --- .../assets/playbooks/roles/functional/tasks/main.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/gate/jarvis/standard-container/assets/playbooks/roles/functional/tasks/main.yaml b/tools/gate/jarvis/standard-container/assets/playbooks/roles/functional/tasks/main.yaml index 4bb86052..c1a85f1b 100644 --- a/tools/gate/jarvis/standard-container/assets/playbooks/roles/functional/tasks/main.yaml +++ b/tools/gate/jarvis/standard-container/assets/playbooks/roles/functional/tasks/main.yaml @@ -8,7 +8,7 @@ #Deploy CNF - name: Deploy charts - shell: helm upgrade --install --kubeconfig="{{ cluster_kubeconfig_path }}/kubeconfig" "{{ chart.release_name }}" "{{ chart.project }}-staging/{{ chart.chart_name }}" --version="{{ chart.version }}" --namespace="{{ chart.namespace }}" + shell: helm upgrade --install --create-namespace --kubeconfig="{{ cluster_kubeconfig_path }}/kubeconfig" "{{ chart.release_name }}" "{{ chart.project }}-staging/{{ chart.chart_name }}" --version="{{ chart.version }}" --namespace="{{ chart.namespace }}" loop: "{{ charts }}" loop_control: loop_var: "chart"