hscloud/cluster/tools/calicoctl.sh
Bartosz Stebel 4d98cf5ca8 calico: move from etcd to crd
Leaving the CRD definitions as YAML, extracted without modifications
from the original install file - this should make upgrades simpler.

Change-Id: I7211d2711e2af014b36dd887a951abb9e1032eb9
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1179
Reviewed-by: q3k <q3k@hackerspace.pl>
2022-11-19 21:40:34 +00:00

14 lines
342 B
Bash
Executable file

#!/usr/bin/env bash
# A wrapper around the real calicoctl to configure etcd access.
source tools/hscloud/lib.sh || exit 1
function main() {
local ws=$(hscloud::workspace_location)
export DATASTORE_TYPE=kubernetes
export KUBECONFIG=~/.kube/config
"$(hscloud::must_rlocation calicoctl_3_15/file/calicoctl)" "$@"
}
main "$@"