Files
kubespray/roles/helm-apps/tasks/main.yml
Justin Lamp 6bb1e2f290 Set http proxy environments for helm app installations (#13234)
* Set http proxy environments for helm app installations

Signed-off-by: Justin Lamp <justin.lamp@netways.de>

* Change http_proxy env variables from legacy static entries to new proxy_env variable

Signed-off-by: Justin Lamp <justin.lamp@netways.de>

---------

Signed-off-by: Justin Lamp <justin.lamp@netways.de>
2026-05-10 08:49:45 +05:30

23 lines
727 B
YAML

---
- name: Add Helm repositories
environment: "{{ proxy_env }}"
kubernetes.core.helm_repository: "{{ helm_repository_defaults | combine(item) }}" # noqa args[module]
loop: "{{ repositories }}"
- name: Update Helm repositories
environment: "{{ proxy_env }}"
kubernetes.core.helm:
state: absent
binary_path: "{{ bin_dir }}/helm"
release_name: dummy # trick needed to refresh in separate step
release_namespace: kube-system
update_repo_cache: true
when:
- repositories != []
- helm_update
- name: Install Helm Applications
environment: "{{ proxy_env }}"
kubernetes.core.helm: "{{ helm_defaults | combine(release_common_opts, item) }}" # noqa args[module]
loop: "{{ releases }}"