Skip to content

Commit

Permalink
fix: uses env vars for busybox internally (#45)
Browse files Browse the repository at this point in the history
Co-authored-by: bdemirci <[email protected]>
  • Loading branch information
baranbartu and bdemirci authored Sep 27, 2024
1 parent 750d085 commit 8b3207a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cli/cli/scripts/deploy-ray-and-syntho-stack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ POSTGRES_IMG_REPO="$POSTGRES_IMG_REPO"
POSTGRES_IMG_TAG="$POSTGRES_IMG_TAG"
REDIS_IMG_REPO="$REDIS_IMG_REPO"
REDIS_IMG_TAG="$REDIS_IMG_TAG"
BUSYBOX_IMG_REPO="$BUSYBOX_IMG_REPO"
BUSYBOX_IMG_TAG="$BUSYBOX_IMG_TAG"
INGRESS_CONTROLLER="$INGRESS_CONTROLLER"
TLS_ENABLED="$TLS_ENABLED"
STORAGE_CLASS_NAME="$STORAGE_CLASS_NAME"
Expand Down Expand Up @@ -274,7 +276,7 @@ wait_local_nginx() {
local INGRESS_CONTROLLER_NAMESPACE="syntho"
local DOMAIN="$DOMAIN"

kubectl run -i --tty --rm busybox-2 --image=busybox --restart=Never --namespace syntho -- /bin/sh -c "wget -O- \
kubectl run -i --tty --rm busybox-2 --image=$BUSYBOX_IMG_REPO:$BUSYBOX_IMG_TAG --restart=Never --namespace syntho -- /bin/sh -c "wget -O- \
--header=\"Host: $DOMAIN\" --server-response \
http://$INGRESS_CONTROLLER_SERVICE_NAME.$INGRESS_CONTROLLER_NAMESPACE.svc.cluster.local/login/ \
2>&1 | grep 'HTTP/' | awk '{print \$2}'" | grep -q 200
Expand Down

0 comments on commit 8b3207a

Please sign in to comment.