Skip to content

Commit 9450993

Browse files
committed
[local-preview] honour DO_NOT_TRACK env variable
Currently, There is no way to disable telemetry for `local-preview` as we run the cronjob manaully during init, when Gitpod is ready. This fixes that by honouring [`DO_NOT_TRACK` envrionment variable](https://consoledonottrack.com/) , which when set prevent the script from triggering the cronjob manually. Signed-off-by: Tarun Pothulapati <[email protected]>
1 parent ef13986 commit 9450993

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

install/preview/entrypoint.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,10 @@ run_telemetry(){
147147
kubectl create job gitpod-telemetry-init --from=cronjob/gitpod-telemetry
148148
}
149149

150+
# honour DO_NOT_TRACK if set
151+
if [ -z "${DO_NOT_TRACK}" ]; then
150152
run_telemetry 2>&1 &
153+
fi
151154

152155
/bin/k3s server --disable traefik \
153156
--node-label gitpod.io/workload_meta=true \

0 commit comments

Comments
 (0)