feat: move vcluster charts to charts/
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user