You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

8 lines
325 B

  1. #!/bin/bash
  2. DATASTORE_TYPE=kubernetes \
  3. {% if inventory_hostname in groups['kube_control_plane'] %}
  4. KUBECONFIG=/etc/kubernetes/admin.conf \
  5. {% else %}
  6. KUBECONFIG=/etc/cni/net.d/calico-kubeconfig \
  7. {% endif %}
  8. {{ bin_dir }}/calicoctl {% if calico_version is version('v3.20.0', '>=') %}--allow-version-mismatch{% endif %} "$@"