Skip to content

Commit 86aa543

Browse files
committed
use the right yq path
Signed-off-by: Tarun Pothulapati <[email protected]>
1 parent f1c2689 commit 86aa543

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

install/kots/manifests/gitpod-installer-job.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ spec:
305305
306306
echo "Gitpod: Update GITPOD_INSTALLATION_PLATFORM telemetry value"
307307
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 }}"'
309309
"${GITPOD_OBJECTS}/templates/gitpod.yaml"
310310
311311
if [ '{{repl ConfigOptionEquals "reg_incluster" "1" }}' = "true" ];

install/preview/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ yq eval-all -i ". as \$item ireduce ({}; . *+ \$item)" /var/lib/rancher/k3s/serv
125125
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
126126

127127
# 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
129129

130130
# removing init container from ws-daemon (systemd and Ubuntu)
131131
yq eval-all -i 'del(.spec.template.spec.initContainers[0])' /var/lib/rancher/k3s/server/manifests/gitpod/*_DaemonSet_ws-daemon.yaml

0 commit comments

Comments
 (0)