mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-06-06 23:46:14 -02:30
fix: skip kube-proxy-only tasks when kube_proxy_remove is true (#13228)
* fix: skip kube-proxy-only tasks when kube_proxy_remove is true Signed-off-by: Sumit Solanki <sumit.solanki@ibm.com> * refactor: use where defaults already define the var Signed-off-by: Sumit Solanki <sumit.solanki@ibm.com> --------- Signed-off-by: Sumit Solanki <sumit.solanki@ibm.com>
This commit is contained in:
@@ -114,7 +114,9 @@
|
||||
state: present
|
||||
persistent: present
|
||||
loop: "{{ kube_proxy_ipvs_modules }}"
|
||||
when: kube_proxy_mode == 'ipvs'
|
||||
when:
|
||||
- kube_proxy_mode == 'ipvs'
|
||||
- not kube_proxy_remove
|
||||
tags:
|
||||
- kube-proxy
|
||||
|
||||
@@ -130,6 +132,7 @@
|
||||
- nf_conntrack_ipv4
|
||||
when:
|
||||
- kube_proxy_mode == 'ipvs'
|
||||
- not kube_proxy_remove
|
||||
- modprobe_conntrack_module is not defined or modprobe_conntrack_module is ansible.builtin.failed # loop until first success
|
||||
tags:
|
||||
- kube-proxy
|
||||
@@ -139,7 +142,9 @@
|
||||
name: "nf_tables"
|
||||
state: present
|
||||
persistent: present
|
||||
when: kube_proxy_mode == 'nftables'
|
||||
when:
|
||||
- kube_proxy_mode == 'nftables'
|
||||
- not kube_proxy_remove
|
||||
tags:
|
||||
- kube-proxy
|
||||
|
||||
|
||||
Reference in New Issue
Block a user