Fix invalid var name
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Danny Bessems 2022-07-11 13:21:49 +02:00
parent 9a0a33816c
commit 93e7d4dc9b
2 changed files with 2 additions and 2 deletions

View File

@ -150,7 +150,7 @@
create_namespace: yes
wait: yes
kubeconfig: "{{ kubeconfig.path }}"
values: "{{ components.argo-cd.chart_values }}"
values: "{{ components.argocd.chart_values }}"
# server:
# extraArgs:
# - --insecure

View File

@ -25,7 +25,7 @@
- name: Aggregate chart_values into dict
ansible.builtin.set_fact:
chart_values: "{{ chart_values | default({}) | combine({ item.key: { 'chart_values': (item.value.helm.chart_values | from_yaml) } }) }}"
chart_values: "{{ chart_values | default({}) | combine({ (item.key | regex_replace('[^A-Za-z0-9]', ''): { 'chart_values': (item.value.helm.chart_values | from_yaml) } }) }}"
when: item.value.helm.chart_values is defined
loop: "{{ lookup('ansible.builtin.dict', components) }}"
loop_control: