From 70c73f153b0acda2eae69dee7c5ba50fd54dd7a7 Mon Sep 17 00:00:00 2001
From: Max Gautier <mg@max.gautier.name>
Date: Fri, 6 Dec 2024 03:09:59 +0100
Subject: [PATCH] calico: stop recording calico_kubelet_name (#11770)

The variable is not used anymore since 29ea790c30.
Besides, this tasks fails on dual stack installation.
---
 roles/network_plugin/calico/tasks/pre.yml | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/roles/network_plugin/calico/tasks/pre.yml b/roles/network_plugin/calico/tasks/pre.yml
index ab236155e..f3f7797cb 100644
--- a/roles/network_plugin/calico/tasks/pre.yml
+++ b/roles/network_plugin/calico/tasks/pre.yml
@@ -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:
-- 
GitLab