-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathorc.sh
executable file
·42 lines (34 loc) · 1.09 KB
/
orc.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
set -e
tmp_dir=$(mktemp -d)
if ! command -v docker &> /dev/null
then
echo "docker could not be found, installing podman-docker"
sudo dnf install -y podman-docker
fi
if ! systemctl is-active --user --quiet podman.socket; then
systemctl --user start podman.socket
fi
if ! command -v helm &> /dev/null
then
echo "helm could not be found, installing it"
sudo dnf install -y helm
fi
for cmd in ctlptl kind envsubst clusterctl kubectl kustomize; do
if ! command -v $cmd &> /dev/null
then
echo "$cmd could not be found, please install it"
exit
fi
done
if ! grep -q "localhost:5000" /etc/containers/registries.conf; then
echo "ERROR: /etc/containers/registries.conf doesn't consider localhost:5000 as insecure, please add it"
exit
fi
ctlptl delete cluster kind-kind || true
ctlptl delete registry ctlptl-registry || true
ctlptl create registry ctlptl-registry --port=5000
ctlptl create cluster kind --registry=ctlptl-registry
cd ~/git/github.com/k-orc/openstack-resource-controller
kubectl apply -k config/crd --server-side
go run ./cmd/manager -zap-log-level 5