Add helm repo;Add prereq
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
Danny Bessems 2022-04-26 14:12:57 +02:00
parent 49f567dc98
commit 27e6fb0b92
2 changed files with 13 additions and 5 deletions

View File

@ -202,6 +202,7 @@
kubernetes.core.helm_repository: kubernetes.core.helm_repository:
name: "{{ item.name }}" name: "{{ item.name }}"
repo_url: "{{ item.url }}" repo_url: "{{ item.url }}"
no_log: true
loop: "{{ helm.repositories }}" loop: "{{ helm.repositories }}"
- block: - block:
@ -212,17 +213,22 @@
return_content: yes return_content: yes
register: latest_release register: latest_release
- name: Rancher Fleet -- Install Helm chart - name: Rancher Fleet -- Install Helm chart w/ prereqs
kubernetes.core.helm: kubernetes.core.helm:
name: "{{ item.name }}" name: "{{ item.name }}"
chart_ref: "{{ item.url }}" chart_ref: "{{ item.ref }}"
namespace: fleet-system namespace: fleet-system
create_namespace: yes create_namespace: yes
wait: yes wait: yes
kubeconfig: "{{ kubeconfig.path }}" kubeconfig: "{{ kubeconfig.path }}"
values: "{{ item.values | default('omit', true) }}"
loop: loop:
- name: cert-manager
ref: jetstack/cert-manager
values:
installCRDs: true
- name: fleet-crd - name: fleet-crd
url: "https://github.com/rancher/fleet/releases/download/{{ latest_release.json.tag_name }}/fleet-crd-{{ latest_release.json.tag_name[1:] }}.tgz" ref: "https://github.com/rancher/fleet/releases/download/{{ latest_release.json.tag_name }}/fleet-crd-{{ latest_release.json.tag_name[1:] }}.tgz"
- name: fleet - name: fleet
url: "https://github.com/rancher/fleet/releases/download/{{ latest_release.json.tag_name }}/fleet-{{ latest_release.json.tag_name[1:] }}.tgz" ref: "https://github.com/rancher/fleet/releases/download/{{ latest_release.json.tag_name }}/fleet-{{ latest_release.json.tag_name[1:] }}.tgz"

View File

@ -1,4 +1,6 @@
helm: helm:
repositories: repositories:
- name: rancher-stable - name: rancher-stable
url: https://releases.rancher.com/server-charts/stable url: https://releases.rancher.com/server-charts/stable
- name: jetstack
url: https://charts.jetstack.io