File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 52
52
value : /run/containerd/io.containerd.runtime.v2.task/k8s.io
53
53
- name : CONTAINERD_SOCKET_AL
54
54
value : /run/containerd/containerd.sock
55
- - name : CUSTOM_LABELS_FILES
56
- value : /custom-labels/customization.yaml
57
55
- name : GITPOD_OBJECTS
58
56
value : /tmp/gitpod
59
57
command :
@@ -292,7 +290,7 @@ spec:
292
290
fi
293
291
294
292
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}"
296
294
297
295
echo "Gitpod: Update platform telemetry value"
298
296
yq eval-all --inplace '.experimental.telemetry.data.platform = "{{repl Distribution }}"' "${CONFIG_FILE}"
@@ -303,6 +301,9 @@ spec:
303
301
echo "Gitpod: ${CONFIG_PATCH_FILE}=${config_patch}"
304
302
yq eval-all --inplace 'select(fileIndex == 0) * select(fileIndex == 1)' "${CONFIG_FILE}" /tmp/patch.yaml
305
303
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
+
306
307
echo "Gitpod: Generate the Kubernetes objects"
307
308
config=$(cat "${CONFIG_FILE}")
308
309
echo "Gitpod: ${CONFIG_FILE}=${config}"
You can’t perform that action at this time.
0 commit comments