From 1d869198833e2bca7724a7b1d28c8a59deceb945 Mon Sep 17 00:00:00 2001
From: yun <yckaolalala@users.noreply.github.com>
Date: Wed, 5 Jul 2023 23:16:57 +0800
Subject: [PATCH] Clean up calicoctl_alternate_download_url (#10271)

---
 inventory/sample/group_vars/all/offline.yml | 1 -
 roles/download/defaults/main/main.yml       | 2 --
 2 files changed, 3 deletions(-)

diff --git a/inventory/sample/group_vars/all/offline.yml b/inventory/sample/group_vars/all/offline.yml
index 6907f2ffe..7fba57e0d 100644
--- a/inventory/sample/group_vars/all/offline.yml
+++ b/inventory/sample/group_vars/all/offline.yml
@@ -33,7 +33,6 @@
 
 # [Optional] Calico: If using Calico network plugin
 # calicoctl_download_url: "{{ files_repo }}/github.com/projectcalico/calico/releases/download/{{ calico_ctl_version }}/calicoctl-linux-{{ image_arch }}"
-# calicoctl_alternate_download_url: "{{ files_repo }}/github.com/projectcalico/calicoctl/releases/download/{{ calico_ctl_version }}/calicoctl-linux-{{ image_arch }}"
 # [Optional] Calico with kdd: If using Calico network plugin with kdd datastore
 # calico_crds_download_url: "{{ files_repo }}/github.com/projectcalico/calico/archive/{{ calico_version }}.tar.gz"
 
diff --git a/roles/download/defaults/main/main.yml b/roles/download/defaults/main/main.yml
index fdb98877c..2c1f2ac4b 100644
--- a/roles/download/defaults/main/main.yml
+++ b/roles/download/defaults/main/main.yml
@@ -740,8 +740,6 @@ downloads:
     dest: "{{ local_release_dir }}/calicoctl-{{ calico_ctl_version }}-{{ image_arch }}"
     sha256: "{{ calicoctl_binary_checksum }}"
     url: "{{ calicoctl_download_url }}"
-    mirrors:
-    - "{{ calicoctl_download_url }}"
     unarchive: false
     owner: "root"
     mode: "0755"
-- 
GitLab