File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -305,7 +305,7 @@ spec:
305
305
306
306
echo "Gitpod: Update GITPOD_INSTALLATION_PLATFORM telemetry value"
307
307
yq eval-all --inplace \
308
- '(select(.kind == "CronJob" and .metadata.name == "gitpod-telemetry") | .spec.jobTemplate.spec.spec.containers[].env[] | ( select(.name=="GITPOD_INSTALLATION_PLATFORM") | .value |= sub("installer"; " repl{{ Distribution }}")) '
308
+ '(select(.kind == "CronJob" and .metadata.name == "gitpod-telemetry") | ( .spec.jobTemplate.spec.template. spec.containers[0 ].env[] | select(.name=="GITPOD_INSTALLATION_PLATFORM")) .value |= " repl{{ Distribution }}"'
309
309
"${GITPOD_OBJECTS}/templates/gitpod.yaml"
310
310
311
311
if [ '{{repl ConfigOptionEquals "reg_incluster" "1" }}' = "true" ];
Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ yq eval-all -i ". as \$item ireduce ({}; . *+ \$item)" /var/lib/rancher/k3s/serv
125
125
for f in /var/lib/rancher/k3s/server/manifests/gitpod/* StatefulSet* .yaml; do yq e -i ' .spec.volumeClaimTemplates[0].spec.storageClassName="local-path"' " $f " ; done
126
126
127
127
# set the GITPOD_INSTALLATION_PLATFORM
128
- yq eval-all -i ' .spec.jobTemplate.spec.spec.containers[].env[] | ( select(.name=="GITPOD_INSTALLATION_PLATFORM") | .value |= sub("installer"; " local-preview")) ' /var/lib/rancher/k3s/server/manifests/gitpod/* _CronJob_gitpod-telemetry.yaml
128
+ yq eval-all -i ' ( .spec.jobTemplate.spec.template. spec.containers[0 ].env[] | select(.name=="GITPOD_INSTALLATION_PLATFORM")) .value |= " local-preview"' /var/lib/rancher/k3s/server/manifests/gitpod/* _CronJob_gitpod-telemetry.yaml
129
129
130
130
# removing init container from ws-daemon (systemd and Ubuntu)
131
131
yq eval-all -i ' del(.spec.template.spec.initContainers[0])' /var/lib/rancher/k3s/server/manifests/gitpod/* _DaemonSet_ws-daemon.yaml
You can’t perform that action at this time.
0 commit comments