Skip to content

Commit

Permalink
fix ide first page 502
Browse files Browse the repository at this point in the history
  • Loading branch information
iQQBot committed Apr 24, 2024
1 parent fdde80d commit 89a06f1
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions dev/preview/workflow/preview/post-process.sh
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,21 @@ while [ "$documentIndex" -le "$DOCS" ]; do
yq m -x -i k8s.yaml -d "$documentIndex" /tmp/"$NAME"-overrides.yaml
fi

# overrides for blobserve configmap
if [[ "blobserve" == "$NAME" ]] && [[ "$KIND" == "ConfigMap" ]]; then
WORK="overrides for $NAME $KIND"
echo "$WORK"
touch /tmp/"$NAME"-overrides.yaml

yq r k8s.yaml -d "$documentIndex" data | yq prefix - data > /tmp/"$NAME"-overrides.yaml
yq r /tmp/"$NAME"-overrides.yaml 'data.[config.json]' > /tmp/"$NAME"-overrides.json

jq '.blobserve.repos["eu.gcr.io/gitpod-core-dev/build/ide/code"] = .blobserve.repos["eu.gcr.io/gitpod-dev-artifact/build/ide/code"]' /tmp/"$NAME"-overrides.json > /tmp/"$NAME"-updated-overrides.json

yq w -i /tmp/"$NAME"-overrides.yaml "data.[config.json]" -- "$(< /tmp/"$NAME"-updated-overrides.json)"
yq m -x -i k8s.yaml -d "$documentIndex" /tmp/"$NAME"-overrides.yaml
fi

# override details for Minio
if [[ "minio" == "$NAME" ]] && [[ "$KIND" == "Deployment" ]]; then
WORK="overrides for $NAME $KIND"
Expand Down

0 comments on commit 89a06f1

Please sign in to comment.