fossasia/susi_telegrambot

View on GitHub
kubernetes/deploy.sh

Summary

Maintainability
Test Coverage
#!/bin/bash
export DIR=${BASH_SOURCE%/*}

if [ "$1" = "delete" ]; then
    echo "Clearing the cluster."
    kubectl delete -f ${DIR}/yamls/generator
    echo "Done. The project was removed from the cluster."
elif [ "$1" = "create" ]; then
    echo "Deploying the project to kubernetes cluster"
    kubectl create -f ${DIR}/yamls/generator
    echo "Done. The project was deployed to kubernetes. :)"
fi