Skip to content

Commit 146023d

Browse files
author
Simon Emms
committed
todo
1 parent 516f2b4 commit 146023d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ spec:
5252
value: /run/containerd/io.containerd.runtime.v2.task/k8s.io
5353
- name: CONTAINERD_SOCKET_AL
5454
value: /run/containerd/containerd.sock
55-
- name: CUSTOM_LABELS_FILES
56-
value: /custom-labels/customization.yaml
5755
- name: GITPOD_OBJECTS
5856
value: /tmp/gitpod
5957
command:
@@ -292,7 +290,7 @@ spec:
292290
fi
293291
294292
echo "Gitpod: Apply the backup labels"
295-
yq e -i ".customization += $(yq '.' -o json "${CUSTOM_LABELS_FILES}")" "${CONFIG_FILE}"
293+
yq e -i '.customization += load("/custom-labels/customization.yaml")' "${CONFIG_FILE}"
296294
297295
echo "Gitpod: Update platform telemetry value"
298296
yq eval-all --inplace '.experimental.telemetry.data.platform = "{{repl Distribution }}"' "${CONFIG_FILE}"
@@ -303,6 +301,9 @@ spec:
303301
echo "Gitpod: ${CONFIG_PATCH_FILE}=${config_patch}"
304302
yq eval-all --inplace 'select(fileIndex == 0) * select(fileIndex == 1)' "${CONFIG_FILE}" /tmp/patch.yaml
305303
304+
echo "Gitpod: Escape all keys - this avoids any collisions in the customizations/patch"
305+
yq e -i '.' -o json -I 0 "${CONFIG_FILE}"
306+
306307
echo "Gitpod: Generate the Kubernetes objects"
307308
config=$(cat "${CONFIG_FILE}")
308309
echo "Gitpod: ${CONFIG_FILE}=${config}"

0 commit comments

Comments
 (0)