Skip to content

Commit

Permalink
Calico: use --allow-version-mismatch in calicoctl.sh to allow upgrades (
Browse files Browse the repository at this point in the history
  • Loading branch information
cristicalin authored and sakuraiyuta committed Apr 16, 2022
1 parent 72c6793 commit 2863481
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion roles/network_plugin/calico/templates/calicoctl.etcd.sh.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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 %} "$@"
2 changes: 1 addition & 1 deletion roles/network_plugin/calico/templates/calicoctl.kdd.sh.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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 %} "$@"

0 comments on commit 2863481

Please sign in to comment.