Skip to content

Commit

Permalink
fix helm index file existance check
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomasz Arendt committed Sep 28, 2020
1 parent 73f85ae commit 462fd18
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
---

- name: Check system index file existance
uri:
url: http://localhost/epirepo/helm-charts/system/index.yaml
method: HEAD
register: uri_index_test
# fail with error if status is unexpected
failed_when: uri_index_test.status is undefined or uri_index_test.status <= 0

- name: Deploy the "system" Helm charts
block:
- name: Check if Helm chart repo already exists
Expand Down Expand Up @@ -31,3 +39,4 @@
chart_subname: "{{ item.split('/')[1] }}"
loop: "{{ helm_charts_list_before_update.stdout_lines }}"
when: item not in helm_charts_list_after_update.stdout_lines
when: uri_index_test.status == 200

0 comments on commit 462fd18

Please sign in to comment.