This commit is contained in:
parent
8f432d3353
commit
cb84a02b6f
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
- name: Parse helm charts for container images
|
- name: Parse helm charts for container images
|
||||||
ansible.builtin.shell:
|
ansible.builtin.shell:
|
||||||
cmd: helm template . | yq --no-doc eval '.. | .image? | select(.)' - | sort -u | awk '!/ /'
|
cmd: "{{ item.value.helm.parse_logic }}"
|
||||||
chdir: /opt/metacluster/helm-charts/{{ item.key }}
|
chdir: /opt/metacluster/helm-charts/{{ item.key }}
|
||||||
register: containerimages
|
register: containerimages
|
||||||
loop: "{{ lookup('ansible.builtin.dict', components) }}"
|
loop: "{{ lookup('ansible.builtin.dict', components) }}"
|
||||||
|
@ -17,16 +17,19 @@ components:
|
|||||||
helm:
|
helm:
|
||||||
version: 1.3.0
|
version: 1.3.0
|
||||||
chart: longhorn/longhorn
|
chart: longhorn/longhorn
|
||||||
|
parse_logic: cat values.yaml | yq eval '.. | select(has("repository")) | .repository + ":" + .tag'
|
||||||
|
|
||||||
harbor:
|
harbor:
|
||||||
helm:
|
helm:
|
||||||
version: 1.9.1 # (= Harbor v2.5.1)
|
version: 1.9.1 # (= Harbor v2.5.1)
|
||||||
chart: harbor/harbor
|
chart: harbor/harbor
|
||||||
|
parse_logic: helm template . | yq --no-doc eval '.. | .image? | select(.)' | sort -u | awk '!/ /'
|
||||||
|
|
||||||
argo-cd:
|
argo-cd:
|
||||||
helm:
|
helm:
|
||||||
version: 4.9.7 # (= ArgoCD v2.4.2)
|
version: 4.9.7 # (= ArgoCD v2.4.2)
|
||||||
chart: argo/argo-cd
|
chart: argo/argo-cd
|
||||||
|
parse_logic: helm template . | yq --no-doc eval '.. | .image? | select(.)' | sort -u | awk '!/ /'
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user