Skip to content

Commit

Permalink
feat: setup of temporary dataapps URL redirector for CSAS migration
Browse files Browse the repository at this point in the history
  • Loading branch information
kauf303 committed Sep 20, 2024
1 parent c294b20 commit 5221bad
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions provisioning/apps-proxy/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ export NAMESPACE="apps-proxy"

# CSAS migration
export CSAS_MIGRATION_APPS_PROXY_REDIRECT_REPLICAS="${CSAS_MIGRATION_APPS_PROXY_REDIRECT_REPLICAS:=0}"
# FIXME: -n is useless
if [ -n "$CSAS_MIGRATION_APPS_PROXY_REDIRECT_REPLICAS" ] && [ "$CSAS_MIGRATION_APPS_PROXY_REDIRECT_REPLICAS" -gt 0 ]; then
if [ "$CSAS_MIGRATION_APPS_PROXY_REDIRECT_REPLICAS" -gt 0 ]; then
export APP="nginx"
else
export APP="apps-proxy"
Expand Down Expand Up @@ -56,7 +55,7 @@ kubectl apply -f ./kubernetes/deploy/proxy/network-policy.yaml
kubectl apply -f ./kubernetes/deploy/proxy/deployment.yaml

# CSAS migration Nginx-redir
if [ -n "$CSAS_MIGRATION_APPS_PROXY_REDIRECT_REPLICAS" ] && [ "$CSAS_MIGRATION_APPS_PROXY_REDIRECT_REPLICAS" -gt 0 ]; then
if [ "$CSAS_MIGRATION_APPS_PROXY_REDIRECT_REPLICAS" -gt 0 ]; then
kubectl apply -f ./kubernetes/deploy/nginx-redir/cm.yaml
kubectl apply -f ./kubernetes/deploy/nginx-redir/deployment.yaml
fi

0 comments on commit 5221bad

Please sign in to comment.