feat: move vcluster charts to charts/

This commit is contained in:
Jonas Juselius
2024-06-04 15:04:12 +02:00
parent 351fce65f5
commit c0f9f38207
14 changed files with 1 additions and 6 deletions
+1 -6
View File
@@ -5,11 +5,6 @@ if [ ! $# -ge 1 ]; then
exit 1
fi
if [ ! -d chart ]; then
echo "error: must be run from toplevel directory"
exit 1
fi
k='kubectl --context oceanbox'
name=$1
@@ -20,7 +15,7 @@ yq ".clusters[]|select(.name|contains(\"$name-vcluster\")).name" ~/.kube/config
if [ $? = 0 ]; then
$k get ns $ns >/dev/null 2>&1 || $k create ns $ns
helm template -n $ns $@ $name ./chart | $k apply -f -
helm template -n $ns $@ $name oceanbox/vcluster | $k apply -f -
echo "waiting for vcluster $name to appear... "
while true; do