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>
diff --git a/cluster/tools/calicoctl.sh b/cluster/tools/calicoctl.sh
index 5f1390e..55e27a2 100755
--- a/cluster/tools/calicoctl.sh
+++ b/cluster/tools/calicoctl.sh
@@ -6,16 +6,8 @@
 
 function main() {
     local ws=$(hscloud::workspace_location)
-
-    export ETCD_ENDPOINTS="https://bc01n01.hswaw.net:2379,https://bc01n01.hswaw.net:2379,https://bc01n01.hswaw.net:2379"
-    export ETCD_KEY_FILE="$ws/cluster/secrets/plain/etcd-calico.key"
-    export ETCD_CERT_FILE="$ws/cluster/certs/etcd-calico.cert"
-    export ETCD_CA_CERT_FILE="$ws/cluster/certs/ca-etcd.crt"
-
-    if [ ! -f "$ETCD_KEY_FILE" ] ; then
-        $(hscloud::must_rlocation hscloud/tools/secretstore) decrypt "$ws/cluster/secrets/cipher/etcd-calico.key" "$ETCD_KEY_FILE"
-    fi
-
+    export DATASTORE_TYPE=kubernetes
+    export KUBECONFIG=~/.kube/config
     "$(hscloud::must_rlocation calicoctl_3_15/file/calicoctl)" "$@"
 }