Files
code-server/deploy-k8s/init.sh
2021-11-16 23:19:38 -06:00

24 lines
573 B
Bash
Executable File

#!/bin/sh
# This will create a namespace on your cluster
# and ensure you have the proper commands.
# It will also clone code server so that you
# can use the helmchart :)
NAMESPACE=${NAMESPACE:-dev-envs}
git clone https://github.com/cdr/code-server
kubectl create namespace $NAMESPACE
./set-namespace.sh $NAMESPACE
if ! command -v helm &> /dev/null; then
echo "! Please install the helm: https://helm.sh/docs/intro/install/"
exit
fi
if ! command -v jq &> /dev/null; then
echo "! Please install the yq command: https://stedolan.github.io/jq/"
exit
fi