File tree Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Copyright (c) 2022 Gitpod GmbH. All rights reserved.
2
+ # Licensed under the MIT License. See License-MIT.txt in the project root for license information.
3
+
4
+ apiVersion : v1
5
+ kind : ConfigMap
6
+ metadata :
7
+ name : gitpod-custom-labels
8
+ labels :
9
+ app : gitpod
10
+ component : gitpod-installer
11
+ data :
12
+ customization.yaml : |
13
+ - apiVersion: apps/v1
14
+ kind: StatefulSet
15
+ metadata:
16
+ name: db
17
+ labels:
18
+ "kots.io/app-slug": "{{repl LicenseFieldValue "appSlug" }}"
19
+ "kots.io/backup": "velero"
Original file line number Diff line number Diff line change 33
33
- mountPath : /config-patch
34
34
name : config-patch
35
35
readOnly : true
36
+ - mountPath : /custom-labels
37
+ name : custom-labels
38
+ readOnly : true
36
39
- mountPath : /mnt/node0
37
40
name : node-fs0
38
41
readOnly : true
@@ -273,6 +276,7 @@ spec:
273
276
yq e -i ".components.proxy.service.serviceType = \"{{repl ConfigOption "component_proxy_service_serviceType" }}\"" "${CONFIG_FILE}"
274
277
fi
275
278
279
+ yq e -i ".customization = []" "${CONFIG_FILE}"
276
280
if [ '{{repl ConfigOptionNotEquals "customization_patch" "" }}' = "true" ];
277
281
then
278
282
CUSTOMIZATION='{{repl ConfigOptionData "customization_patch" | Base64Encode }}'
@@ -285,6 +289,9 @@ spec:
285
289
echo "Gitpod: No advanced configuration applied"
286
290
fi
287
291
292
+ echo "Gitpod: Apply the backup labels"
293
+ yq e -i '.customization += load("/custom-labels/customization.yaml")' "${CONFIG_FILE}"
294
+
288
295
echo "Gitpod: Update platform telemetry value"
289
296
yq eval-all --inplace '.experimental.telemetry.data.platform = "{{repl Distribution }}"' "${CONFIG_FILE}"
290
297
@@ -361,6 +368,9 @@ spec:
361
368
- name : config-patch
362
369
configMap :
363
370
name : gitpod-config-patch
371
+ - name : custom-labels
372
+ configMap :
373
+ name : gitpod-custom-labels
364
374
- name : node-fs0
365
375
hostPath :
366
376
path : /
You can’t perform that action at this time.
0 commit comments