uffizzi icon indicating copy to clipboard operation
uffizzi copied to clipboard

Add preview_url as an ENV var to containers

Open moklidia opened this issue 2 years ago • 4 comments

Same as this, but for the cli

moklidia avatar Jul 19 '22 10:07 moklidia

For QA:

Each deployment container should have the UFFIZZI_URL variable with the current preview URL as a value. It should be checked in the cluster.

Find the pod name:

kubectl get pods -n deployment-1

Find a container id

kubectl describe pod/[pod_name] -n deployment-1`

SSH to the container

kubectl exec -it pod/[pod-name] -c [container_name] -n deployment-1 bash

Then echo the ENV var

echo $UFFIZZI_URL

It should be the preview url

moklidia avatar Jul 19 '22 13:07 moklidia

TESTED - OK

["UFFIZZI_URL"]=> string(51) "https://deployment-3-default.app.qa-gke.uffizzi.com"

NealArw avatar Jul 20 '22 09:07 NealArw

very cool thanks

axisofentropy avatar Jul 20 '22 18:07 axisofentropy

TESTED on prod - OK

["UFFIZZI_URL"]=> string(51) "https://deployment-1-default.app.qa-gke.uffizzi.com"

NealArw avatar Jul 21 '22 10:07 NealArw