zuul-jobs/roles/helm-template/tasks/main.yaml
Radosław Piliszek 0f662a23d0 Drop Helm v2 support to fix v3 issue
Helm v2 is long gone and there seems to be no interest in
supporting it any longer. [1]

Dropping support for v2 allows for an easy fix to the
command used so that it names the release properly
as it was supposed to instead of trying to set the
namespace name (the -n switch changed purpose [1]).

[1] https://lists.zuul-ci.org/archives/list/zuul-discuss@lists.zuul-ci.org/thread/WUWBM5F3PXXDLKK6JNSP4UR4VTWDNPZ4/

Story: 2010783
Task: 48201
Change-Id: I00676bcc7e8b4f3ec014f2292c6c0ee4c17acd96
2023-06-20 17:06:36 +02:00

23 lines
640 B
YAML

- name: Install dependencies
command: "helm dep up {{ helm_chart }}"
args:
chdir: "{{ zuul_work_dir }}"
- name: Print templated charts
command: "helm template zuul {{ helm_chart }}"
args:
chdir: "{{ zuul_work_dir }}"
- name: Deploy templated charts
shell: |
set -o pipefail
helm template {% if helm_values_file is defined %}--values {{ helm_values_file }} {% endif %}{{ helm_release_name }} {{ helm_chart }} | kubectl apply -f-
args:
executable: /bin/bash
chdir: "{{ zuul_work_dir }}"
- name: Wait for all pods to become Ready
include_role:
name: wait-for-pods
when: helm_wait_for_pods | bool