Skip to content

Commit

Permalink
[kots]: allow configuration the installer timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Emms committed Nov 9, 2022
1 parent ced679a commit ecf24dc
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 2 deletions.
3 changes: 3 additions & 0 deletions install/installer/scripts/kots-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,9 @@ EOF
# If certificate secret already exists, set the timeout to 5m
CERT_SECRET=$(kubectl get secrets -n "${NAMESPACE}" https-certificates -o jsonpath='{.metadata.name}' || echo '')
HELM_TIMEOUT="5m"
if [ "${ADVANCED_MODE_ENABLED}" = "1" ]; then
HELM_TIMEOUT="${INSTALLER_TIMEOUT}"
fi
if [ "${CERT_SECRET}" = "" ]; then
HELM_TIMEOUT="1h"
fi
Expand Down
2 changes: 1 addition & 1 deletion install/kots/manifests/gitpod-installation-status.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ spec:
containers:
- name: installation-status
# This will normally be the release tag
image: "eu.gcr.io/gitpod-core-dev/build/installer:sje-installer-version-script.2"
image: "eu.gcr.io/gitpod-core-dev/build/installer:sje-installer-fixes.0"
envFrom:
- configMapRef:
name: gitpod-kots-config
Expand Down
2 changes: 1 addition & 1 deletion install/kots/manifests/gitpod-installer-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ spec:
containers:
- name: installer
# This will normally be the release tag
image: "eu.gcr.io/gitpod-core-dev/build/installer:sje-installer-version-script.2"
image: "eu.gcr.io/gitpod-core-dev/build/installer:sje-installer-fixes.0"
volumeMounts:
- mountPath: /mnt/node0
name: node-fs0
Expand Down
1 change: 1 addition & 0 deletions install/kots/manifests/gitpod-kots-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ data:
ADVANCED_MODE_ENABLED: repl{{ ConfigOption "advanced_mode_enabled" | quote }}
COMPONENT_PROXY_SERVICE_TYPE: repl{{ ConfigOption "component_proxy_service_serviceType" | quote }}
CUSTOMIZATION_PATCH_ENABLED: repl{{ ConfigOptionNotEquals "customization_patch" "" | quote }} # Use comparison not value
INSTALLER_TIMEOUT: repl{{ ConfigOption "installer_timeout" | quote }}

# Customizations
CONFIG_PATCH: repl{{ ConfigOptionData "config_patch" | default "" | quote }}
Expand Down
20 changes: 20 additions & 0 deletions install/kots/manifests/kots-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,26 @@ spec:
default: "0"
help_text: Enables advanced customization options. Enable only when you know what you are doing!

- name: installer_timeout
title: Installer timeout
type: select_one
default: 5m
when: '{{repl ConfigOptionEquals "advanced_mode_enabled" "1" }}'
help_text: Override the timeout for the Installer.
items:
- name: 5m
title: 5 minutes
- name: 10m
title: 10 minutes
- name: 30m
title: 30 minutes
- name: 1h
title: 1 hour
- name: 90m
title: 90 minutes
- name: 2h
title: 2 hours

- name: customization_patch
title: Gitpod customization patch (YAML file)
type: file
Expand Down

0 comments on commit ecf24dc

Please sign in to comment.