diff --git a/README.md b/README.md index 5df62ed..485d9db 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ ``` python -m pip install --upgrade pip pipenv pipenv install - pipenv run python setup.py -e prod -f config.json + pipenv run python setup.py -e {{environment-option}} -f config.json ``` - Running Kubernetes Application: @@ -22,4 +22,6 @@ ./deploy.sh {{environmet-flag}} ``` - `{{environment-flag}}`: `--test`, `--staging`, `--prod` + `{{environment-flag}}` : `--local`, `--staging`, `--prod` + + `{{environment-option}` : `local`, `staging`, `prod` diff --git a/deploy.sh b/deploy.sh index 7097ef0..9c8eb9a 100755 --- a/deploy.sh +++ b/deploy.sh @@ -67,7 +67,7 @@ function application_deploy() { function main() { - if [[ $1 == "--test" || $1 == "-t" ]]; then + if [[ $1 == "--local" || $1 == "-l" ]]; then function kubectl { minikube kubectl -- $@ diff --git a/setup.py b/setup.py index c93cdc5..d9466b7 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ def write_template(template: str, output: str): output.write(envsubst(template.read())) def configure_templates(environment: str): - if not environment in ("prod", "staging", "local", "dev"): + if not environment in ("prod", "staging", "local"): raise ValueError("Invalid Environment Selected") match environment: