Skip to content

Commit

Permalink
calico: stop recording calico_kubelet_name (#11770)
Browse files Browse the repository at this point in the history
The variable is not used anymore since 29ea790.
Besides, this tasks fails on dual stack installation.
  • Loading branch information
VannTen authored Dec 6, 2024
1 parent 2705cfb commit 70c73f1
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions roles/network_plugin/calico/tasks/pre.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,6 @@
- "'plugins' in calico_cni_config"
- "'etcd_endpoints' in calico_cni_config.plugins.0"

- name: Calico | Get kubelet hostname
shell: >-
set -o pipefail && {{ kubectl }} get node -o custom-columns='NAME:.metadata.name,INTERNAL-IP:.status.addresses[?(@.type=="InternalIP")].address'
| egrep "{{ ansible_all_ipv4_addresses | join('$|') }}$" | cut -d" " -f1
args:
executable: /bin/bash
register: calico_kubelet_name
delegate_to: "{{ groups['kube_control_plane'][0] }}"
when:
- cloud_provider

- name: Calico | Gather os specific variables
include_vars: "{{ item }}"
with_first_found:
Expand Down

0 comments on commit 70c73f1

Please sign in to comment.