Remove unnecessary condition check when updating server field in kube-proxy kubeconfig (#7145)

This commit is contained in:
Wang Zhen 2021-01-14 01:50:37 +08:00 committed by GitHub
parent b59035df06
commit 387df0ee1f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -120,7 +120,6 @@
delegate_to: "{{ groups['kube-master']|first }}" delegate_to: "{{ groups['kube-master']|first }}"
delegate_facts: false delegate_facts: false
when: when:
- inventory_hostname in groups['kube-master']
- kubeadm_config_api_fqdn is not defined - kubeadm_config_api_fqdn is not defined
- kubeadm_discovery_address != kube_apiserver_endpoint | replace("https://", "") - kubeadm_discovery_address != kube_apiserver_endpoint | replace("https://", "")
- kube_proxy_deployed - kube_proxy_deployed
@ -141,7 +140,6 @@
delegate_to: "{{ groups['kube-master']|first }}" delegate_to: "{{ groups['kube-master']|first }}"
delegate_facts: false delegate_facts: false
when: when:
- inventory_hostname in groups['kube-master']
- kubeadm_config_api_fqdn is not defined - kubeadm_config_api_fqdn is not defined
- kubeadm_discovery_address != kube_apiserver_endpoint | replace("https://", "") - kubeadm_discovery_address != kube_apiserver_endpoint | replace("https://", "")
- kube_proxy_deployed - kube_proxy_deployed