Add Gitea;Allow override of helm-chart basedir
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Danny Bessems 2022-06-27 16:32:25 +02:00
parent 0c01f024e9
commit 1842a08a39
3 changed files with 15 additions and 1 deletions

View File

@ -59,3 +59,8 @@
path: /opt/metacluster/container_images
state: absent
- name: Cleanup tempfile
ansible.builtin.file:
path: "{{ kubeconfig.path }}"
state: absent
when: kubeconfig.path is defined

View File

@ -24,7 +24,7 @@
- name: Parse helm charts for container images
ansible.builtin.shell:
cmd: "{{ item.value.helm.parse_logic }}"
chdir: /opt/metacluster/helm-charts/{{ item.key }}
chdir: /opt/metacluster/helm-charts/{{ item.value.helm.basedir | default(item.key) }}
register: containerimages
loop: "{{ lookup('ansible.builtin.dict', components) }}"
loop_control:

View File

@ -8,6 +8,8 @@ platform:
url: https://charts.longhorn.io
- name: harbor
url: https://helm.goharbor.io
- name: gitea-charts
url: https://dl.gitea.io/charts/
- name: argo
url: https://argoproj.github.io/argo-helm
@ -25,6 +27,13 @@ components:
chart: harbor/harbor
parse_logic: helm template . | yq --no-doc eval '.. | .image? | select(.)' | sort -u | awk '!/ /'
gitea:
helm:
version: v5.0.9 # (= Gitea v1.16.8)
chart: gitea-charts/gitea
basedir: helm-chart
parse_logic: helm template . | yq --no-doc eval '.. | .image? | select(.)' | sort -u | awk '!/ /'
argo-cd:
helm:
version: 4.9.7 # (= ArgoCD v2.4.2)