fp/scripts/k8s-chisel.sh

13 lines
346 B
Bash
Raw Normal View History

2024-08-13 21:18:01 +00:00
#!/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'