Skip to content

Commit

Permalink
Merge branch 'main' into add_additional_env_var
Browse files Browse the repository at this point in the history
  • Loading branch information
mkanoor authored Nov 16, 2023
2 parents 31dd7fd + c584233 commit 9fd1cb5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions scripts/eda_kube.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ PROJECT_DIR="${SCRIPTS_DIR}/.."

CMD=${1:-help}
VERSION=${2:-'latest'}
PORT=${2:-''}

# dev environment variables
export EDA_DEV_UI_GIT_REPO=${EDA_DEV_UI_GIT_REPO:-'[email protected]:ansible/ansible-ui.git'}
Expand Down Expand Up @@ -188,7 +189,7 @@ port-forward() {
}

port-forward-ui() {
local _local_port=${1}
local _local_port=${PORT:-"8080"}
local _svc_name=eda-ui
local _svc_port=8080

Expand All @@ -197,7 +198,7 @@ port-forward-ui() {
}

port-forward-api() {
local _local_port=${1}
local _local_port=${PORT:-"8000"}
local _svc_name=eda-api
local _svc_port=8000

Expand Down Expand Up @@ -227,8 +228,8 @@ case ${CMD} in
"build") build-all "${VERSION}" ;;
"clean") clean-deployment "${VERSION}";;
"deploy") deploy "${VERSION}" ;;
"port-forward-api") port-forward-api 8000 ;;
"port-forward-ui") port-forward-ui 8080 ;;
"port-forward-api") port-forward-api ${PORT} ;;
"port-forward-ui") port-forward-ui ${PORT} ;;
"port-forward-pg") port-forward-pg 5432 ;;
"eda-logs") get-eda-logs ;;
"help") usage ;;
Expand Down

0 comments on commit 9fd1cb5

Please sign in to comment.