Skip to content

Commit 5f58b57

Browse files
author
Simon Emms
committed
stuff
1 parent d34d6a2 commit 5f58b57

5 files changed

+20
-3
lines changed

install/kots/manifests/gitpod-config-patch.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ metadata:
1010
component: gitpod-installer
1111
data:
1212
gitpod-config-patch.yaml: '{{repl if and (ConfigOptionEquals "advanced_mode_enabled" "1") (ConfigOptionNotEquals "config_patch" "") }}{{repl ConfigOption "config_patch" }}{{repl else }}{{repl printf "{}" | Base64Encode }}{{repl end }}'
13+
customization-patch.yaml: |
14+
repl{{ ConfigOptionData "customization_patch" | default "" | nindent 4 }}

install/kots/manifests/gitpod-installation-status.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ spec:
3030
containers:
3131
- name: installation-status
3232
# This will normally be the release tag
33-
image: "eu.gcr.io/gitpod-core-dev/build/installer:sje-move-kots-bash-script.3"
33+
image: "eu.gcr.io/gitpod-core-dev/build/installer:sje-move-kots-bash-script.6"
3434
command:
3535
- /bin/sh
3636
- -c

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ spec:
2828
containers:
2929
- name: installer
3030
# This will normally be the release tag
31-
image: "eu.gcr.io/gitpod-core-dev/build/installer:sje-move-kots-bash-script.3"
31+
image: "eu.gcr.io/gitpod-core-dev/build/installer:sje-move-kots-bash-script.6"
3232
volumeMounts:
3333
- mountPath: /config-patch
3434
name: config-patch
@@ -41,6 +41,8 @@ spec:
4141
value: /tmp/gitpod-config.yaml
4242
- name: CONFIG_PATCH_FILE
4343
value: /config-patch/gitpod-config-patch.yaml
44+
- name: CUSTOMIZATION_PATCH_FILE
45+
value: /config-path/customization-patch.yaml
4446
- name: CONTAINERD_DIR_K3S
4547
value: /run/k3s/containerd/io.containerd.runtime.v2.task/k8s.io
4648
- name: CONTAINERD_SOCKET_K3S

install/kots/manifests/gitpod-kots-config.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ data:
4747
# TLS certificate settings
4848
CERT_MANAGER_ENABLED: repl{{ ConfigOption "cert_manager_enabled" | quote }}
4949
TLS_SELF_SIGNED_ENABLED: repl{{ ConfigOption "tls_self_signed_enabled" | quote }}
50-
TLS_USE_CUSTOM_CA_CRT: repl{{ ConfigOptionNotEquals tls_ca_crt" "" | quote }} # Use comparison not value
50+
TLS_CUSTOM_CA_CRT_ENABLED: repl{{ ConfigOptionNotEquals "tls_ca_crt" "" | quote }} # Use comparison not value
5151

5252
# User management settings
5353
USER_MANAGEMENT_BLOCK_ENABLED: repl{{ ConfigOption "user_management_block_enabled" | quote }}
@@ -56,3 +56,4 @@ data:
5656
# Advanced settings
5757
ADVANCED_MODE_ENABLED: repl{{ ConfigOption "advanced_mode_enabled" | quote }}
5858
COMPONENT_PROXY_SERVICE_SERVICETYPE: repl{{ ConfigOption "component_proxy_service_serviceType" | quote }}
59+
CUSTOMIZATION_PATCH_ENABLED: repl{{ ConfigOptionNotEquals "customization_patch" "" | quote }} # Use comparison not value
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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: Secret
6+
metadata:
7+
name: external-container-registry
8+
annotations:
9+
kots.io/when: '{{repl ConfigOptionEquals "reg_incluster" "0" }}'
10+
type: kubernetes.io/dockerconfigjson
11+
data:
12+
.dockerconfigjson: '{{repl printf "{\"auths\": {\"%s\": {\"username\": \"%s\", \"password\": %s, \"auth\": \"%s\"}}}" (ConfigOption "reg_server" | default (ConfigOption "reg_url")) (ConfigOption "reg_username") (ConfigOption "reg_password" | toJson) (printf "%s:%s" (ConfigOption "reg_username") (ConfigOption "reg_password") | Base64Encode) | Base64Encode }}'

0 commit comments

Comments
 (0)