13 lines
346 B
Bash
13 lines
346 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
|
||
|
if [ -z "${ENV}" ]; then \
|
||
|
echo "Error: ENV variable is not defined. Please set to one of development|staging|production"; exit 1; \
|
||
|
fi
|
||
|
|
||
|
if [ "${ENV}" == "production" ]; then \
|
||
|
echo "chisel is not used in production environment. Skipping."
|
||
|
exit 0
|
||
|
fi
|
||
|
|
||
|
kubectl apply -k 'https://github.com/FyraLabs/chisel-operator?ref=stable'
|