2019-07-08 09:20:03 +00:00
|
|
|
#!/bin/bash
|
|
|
|
DATASTORE_TYPE=kubernetes \
|
2021-03-24 00:26:05 +00:00
|
|
|
{% if inventory_hostname in groups['kube_control_plane'] %}
|
2019-07-15 08:59:06 +00:00
|
|
|
KUBECONFIG=/etc/kubernetes/admin.conf \
|
|
|
|
{% else %}
|
|
|
|
KUBECONFIG=/etc/cni/net.d/calico-kubeconfig \
|
2019-07-08 09:20:03 +00:00
|
|
|
{% endif %}
|
2022-06-11 15:57:09 +00:00
|
|
|
{{ bin_dir }}/calicoctl --allow-version-mismatch "$@"
|