From 0ac364dfae69954477140f88f24c7ce6e4815d54 Mon Sep 17 00:00:00 2001 From: Cristian Calin <6627509+cristicalin@users.noreply.github.com> Date: Sat, 21 Aug 2021 00:30:48 +0300 Subject: [PATCH] Calico: use --allow-version-mismatch in calicoctl.sh to allow upgrades (#7873) --- roles/network_plugin/calico/templates/calicoctl.etcd.sh.j2 | 2 +- roles/network_plugin/calico/templates/calicoctl.kdd.sh.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/network_plugin/calico/templates/calicoctl.etcd.sh.j2 b/roles/network_plugin/calico/templates/calicoctl.etcd.sh.j2 index 8343ef8f8..2dbdfa124 100644 --- a/roles/network_plugin/calico/templates/calicoctl.etcd.sh.j2 +++ b/roles/network_plugin/calico/templates/calicoctl.etcd.sh.j2 @@ -3,4 +3,4 @@ ETCD_ENDPOINTS={{ etcd_access_addresses }} \ ETCD_CA_CERT_FILE={{ calico_cert_dir }}/ca_cert.crt \ ETCD_CERT_FILE={{ calico_cert_dir }}/cert.crt \ ETCD_KEY_FILE={{ calico_cert_dir }}/key.pem \ -{{ bin_dir }}/calicoctl "$@" +{{ bin_dir }}/calicoctl {% if calico_version is version('v3.20.0', '>=') %}--allow-version-mismatch{% endif %} "$@" diff --git a/roles/network_plugin/calico/templates/calicoctl.kdd.sh.j2 b/roles/network_plugin/calico/templates/calicoctl.kdd.sh.j2 index a6c080cf4..3af5bed1a 100644 --- a/roles/network_plugin/calico/templates/calicoctl.kdd.sh.j2 +++ b/roles/network_plugin/calico/templates/calicoctl.kdd.sh.j2 @@ -5,4 +5,4 @@ KUBECONFIG=/etc/kubernetes/admin.conf \ {% else %} KUBECONFIG=/etc/cni/net.d/calico-kubeconfig \ {% endif %} -{{ bin_dir }}/calicoctl "$@" +{{ bin_dir }}/calicoctl {% if calico_version is version('v3.20.0', '>=') %}--allow-version-mismatch{% endif %} "$@"