/opt/cni/bin/install not before calico 3.16 (#6738)

This commit is contained in:
emiran-orange 2020-09-25 15:15:11 +02:00 committed by GitHub
parent 55d8ed093a
commit 081a9e7bd8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -63,7 +63,7 @@ spec:
# and CNI network config file on each node.
- name: install-cni
image: {{ calico_cni_image_repo }}:{{ calico_cni_image_tag }}
command: ["/opt/cni/bin/install"]
command: ["{{ (calico_version is version('v3.16.0', '<'))|ternary('/install-cni.sh','/opt/cni/bin/install') }}"]
env:
# Name of the CNI config file to create.
- name: CNI_CONF_NAME