File tree 3 files changed +29
-2
lines changed 3 files changed +29
-2
lines changed Original file line number Diff line number Diff line change 30
30
containers :
31
31
- name : installation-status
32
32
# This will normally be the release tag
33
- image : " eu.gcr.io/gitpod-core-dev/build/installer:sje-azure-minio-gateway.0 "
33
+ image : " eu.gcr.io/gitpod-core-dev/build/installer:sje-kots-customization.1 "
34
34
command :
35
35
- /bin/sh
36
36
- -c
Original file line number Diff line number Diff line change 28
28
containers :
29
29
- name : installer
30
30
# This will normally be the release tag
31
- image : " eu.gcr.io/gitpod-core-dev/build/installer:sje-azure-minio-gateway.0 "
31
+ image : " eu.gcr.io/gitpod-core-dev/build/installer:sje-kots-customization.1 "
32
32
volumeMounts :
33
33
- mountPath : /config-patch
34
34
name : config-patch
@@ -261,6 +261,18 @@ spec:
261
261
done
262
262
fi
263
263
264
+ if [ '{{repl ConfigOptionEquals "advanced_mode_enabled" "1" }}' = "true" ];
265
+ then
266
+ if [ '{{repl ConfigOptionNotEquals "customization_patch" "" }}' = "true" ];
267
+ then
268
+ CUSTOMIZATION='{{repl ConfigOptionData "customization_patch" | Base64Encode }}'
269
+ echo "Gitpod: Applying customization patch ${CUSTOMIZATION}"
270
+
271
+ # Apply the customization property - if something else is set, this will be ignored
272
+ yq e -i ".customization = $(echo "${CUSTOMIZATION}" | base64 -d | yq e -o json '.customization' - | jq -rc) // []" "${CONFIG_FILE}"
273
+ fi
274
+ fi
275
+
264
276
echo "Gitpod: Patch Gitpod config"
265
277
base64 -d "${CONFIG_PATCH_FILE}" > /tmp/patch.yaml
266
278
config_patch=$(cat /tmp/patch.yaml)
Original file line number Diff line number Diff line change @@ -379,6 +379,21 @@ spec:
379
379
default : " 0"
380
380
help_text : Enables additional customization options. Enable only when you know what you are doing!
381
381
382
+ - name : customization_patch
383
+ title : Gitpod customization patch (YAML file)
384
+ type : file
385
+ required : false
386
+ when : ' {{repl ConfigOptionEquals "advanced_mode_enabled" "1" }}'
387
+ help_text : |
388
+ A file configured to override annotations, labels and environment variables in components. See our
389
+ [advanced documentation](https://www.gitpod.io/docs/self-hosted/latest/advanced/customization) for
390
+ more details and the format.
391
+
392
+ Labels are an immutable property in Kubernetes, so you may need to uninstall your Gitpod instance
393
+ before applying - run `helm uninstall -n {{repl Namespace }} gitpod`.
394
+
395
+ **WARNING** this should not be run if using in-cluster database and/or object storage.
396
+
382
397
- name : config_patch
383
398
title : Gitpod config patch (YAML file)
384
399
type : file
You can’t perform that action at this time.
0 commit comments