mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-05-10 10:57:37 -02:30
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>
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
---
|
||||
- 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"
|
||||
@@ -15,5 +17,6 @@
|
||||
- helm_update
|
||||
|
||||
- name: Install Helm Applications
|
||||
environment: "{{ proxy_env }}"
|
||||
kubernetes.core.helm: "{{ helm_defaults | combine(release_common_opts, item) }}" # noqa args[module]
|
||||
loop: "{{ releases }}"
|
||||
|
||||
@@ -4,9 +4,7 @@ dependencies:
|
||||
when:
|
||||
- inventory_hostname == groups['kube_control_plane'][0]
|
||||
- kubelet_csr_approver_enabled
|
||||
environment:
|
||||
http_proxy: "{{ http_proxy | default('') }}"
|
||||
https_proxy: "{{ https_proxy | default('') }}"
|
||||
environment: "{{ proxy_env }}"
|
||||
release_common_opts: {}
|
||||
releases:
|
||||
- name: kubelet-csr-approver
|
||||
|
||||
@@ -4,9 +4,7 @@ dependencies:
|
||||
when:
|
||||
- inventory_hostname == groups['kube_control_plane'][0]
|
||||
- custom_cni_chart_release_name | length > 0
|
||||
environment:
|
||||
http_proxy: "{{ http_proxy | default('') }}"
|
||||
https_proxy: "{{ https_proxy | default('') }}"
|
||||
environment: "{{ proxy_env }}"
|
||||
release_common_opts: {}
|
||||
releases:
|
||||
- name: "{{ custom_cni_chart_release_name }}"
|
||||
|
||||
Reference in New Issue
Block a user