Fix kubelet-csr-approver deployment failes if kube_network_plugin=cni(generic) (#11704)

* Make Helm's 'atomic' parameter configurable from role variables

* Configure Helm with 'atomic' and 'wait' set to false for generic CNI to prevent kubelet-csr-approver installation failures
pull/11720/head
Javad 2024-11-16 18:24:54 +03:30 committed by GitHub
parent c4b53ff01a
commit e8bdd47ecc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 1 deletions

View File

@ -46,6 +46,9 @@ argument_specs:
default: true default: true
wait_timeout: wait_timeout:
type: str type: str
atomic:
type: bool
default: true
repositories: repositories:
type: list type: list
@ -91,3 +94,6 @@ argument_specs:
wait_timeout: wait_timeout:
type: str type: str
default: "5m" default: "5m"
atomic:
type: bool
default: true

View File

@ -13,7 +13,8 @@ dependencies:
namespace: "{{ kubelet_csr_approver_namespace }}" namespace: "{{ kubelet_csr_approver_namespace }}"
chart_ref: "{{ kubelet_csr_approver_chart_ref }}" chart_ref: "{{ kubelet_csr_approver_chart_ref }}"
chart_version: "{{ kubelet_csr_approver_chart_version }}" chart_version: "{{ kubelet_csr_approver_chart_version }}"
wait: true wait: "{{ kube_network_plugin != 'cni' }}"
atomic: "{{ kube_network_plugin != 'cni' }}"
values: "{{ kubelet_csr_approver_values }}" values: "{{ kubelet_csr_approver_values }}"
repositories: repositories:
- name: "{{ kubelet_csr_approver_repository_name }}" - name: "{{ kubelet_csr_approver_repository_name }}"