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 23, 2024
1 parent fada878 commit 2fe3fb0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions provisioning/apps-proxy/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export NAMESPACE="apps-proxy"
# CSAS migration
export CSAS_MIGRATION_APPS_PROXY_REDIRECT_REPLICAS="${CSAS_MIGRATION_APPS_PROXY_REDIRECT_REPLICAS:=0}"
if [ "$CSAS_MIGRATION_APPS_PROXY_REDIRECT_REPLICAS" -gt 0 ]; then
export APP="nginx"
export APP="csas-migration-apps-proxy-redirect"
else
export APP="apps-proxy"
fi
Expand Down Expand Up @@ -56,6 +56,6 @@ kubectl apply -f ./kubernetes/deploy/proxy/deployment.yaml

# CSAS migration Nginx-redir
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/config-map.yaml
kubectl apply -f ./kubernetes/deploy/nginx-redir/deployment.yaml
fi
2 changes: 1 addition & 1 deletion provisioning/apps-proxy/kubernetes/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ envsubst < templates/proxy/network-policy.yaml > deploy/proxy/network-policy.yam
envsubst < templates/proxy/deployment.yaml > deploy/proxy/deployment.yaml

# CSAS migration, without condition because it's trashed after build
envsubst < templates/nginx-redir/cm.yaml > deploy/nginx-redir/cm.yaml
envsubst < templates/nginx-redir/config-map.yaml > deploy/nginx-redir/config-map.yaml
envsubst < templates/nginx-redir/deployment.yaml > deploy/nginx-redir/deployment.yaml

# Remove resources requests/limits to fit all pods to the CI environment
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ metadata:
name: nginx-deployment
namespace: $NAMESPACE
labels:
app: nginx
app: csas-migration-apps-proxy-redirect
spec:
replicas: $CSAS_MIGRATION_APPS_PROXY_REDIRECT_REPLICAS
selector:
matchLabels:
app: nginx
app: csas-migration-apps-proxy-redirect
template:
metadata:
labels:
app: nginx
app: csas-migration-apps-proxy-redirect
spec:
containers:
- name: nginx
Expand Down

0 comments on commit 2fe3fb0

Please sign in to comment.