From 2fa64f9fd6658a4bfd14226d6cd1e1e346ae79f7 Mon Sep 17 00:00:00 2001 From: Pat Riehecky <3534830+jcpunk@users.noreply.github.com> Date: Fri, 23 Jun 2023 08:03:23 -0500 Subject: [PATCH] Add flag to prevent running helm update (#10169) Signed-off-by: Pat Riehecky --- roles/helm-apps/tasks/main.yml | 4 +++- roles/helm-apps/vars/main.yml | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/roles/helm-apps/tasks/main.yml b/roles/helm-apps/tasks/main.yml index ed55c5ae8..2dc2485bd 100644 --- a/roles/helm-apps/tasks/main.yml +++ b/roles/helm-apps/tasks/main.yml @@ -10,7 +10,9 @@ release_name: dummy # trick needed to refresh in separate step release_namespace: kube-system update_repo_cache: true - when: repositories != [] + when: + - repositories != [] + - helm_update - name: Install Helm Applications kubernetes.core.helm: "{{ helm_defaults | combine(release_common_opts, item) }}" diff --git a/roles/helm-apps/vars/main.yml b/roles/helm-apps/vars/main.yml index a7baa66bd..bcce54a8f 100644 --- a/roles/helm-apps/vars/main.yml +++ b/roles/helm-apps/vars/main.yml @@ -1,4 +1,6 @@ --- +helm_update: true + helm_defaults: atomic: true binary_path: "{{ bin_dir }}/helm"