Skip to content

Commit

Permalink
[kots]: add s3 endpoint/region to container registry config
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Emms authored and roboquat committed Jun 13, 2022
1 parent e709308 commit 3c10cc0
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
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-airgap-openssh.0"
image: "eu.gcr.io/gitpod-core-dev/build/installer:sje-registry-s3-fork.3"
command:
- /bin/sh
- -c
Expand Down
4 changes: 3 additions & 1 deletion install/kots/manifests/gitpod-installer-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ spec:
containers:
- name: installer
# This will normally be the release tag
image: "eu.gcr.io/gitpod-core-dev/build/installer:sje-airgap-openssh.0"
image: "eu.gcr.io/gitpod-core-dev/build/installer:sje-registry-s3-fork.3"
volumeMounts:
- mountPath: /config-patch
name: config-patch
Expand Down Expand Up @@ -167,6 +167,8 @@ spec:
then
echo "Gitpod: configuring container registry S3 backend"
yq e -i ".containerRegistry.s3storage.region = \"{{repl ConfigOption "reg_incluster_storage_s3_region" }}\"" "${CONFIG_FILE}"
yq e -i ".containerRegistry.s3storage.endpoint = \"{{repl ConfigOption "reg_incluster_storage_s3_endpoint" }}\"" "${CONFIG_FILE}"
yq e -i ".containerRegistry.s3storage.bucket = \"{{repl ConfigOption "reg_incluster_storage_s3_bucketname" }}\"" "${CONFIG_FILE}"
yq e -i ".containerRegistry.s3storage.certificate.kind = \"secret\"" "${CONFIG_FILE}"
yq e -i ".containerRegistry.s3storage.certificate.name = \"container-registry-s3-backend\"" "${CONFIG_FILE}"
Expand Down
16 changes: 16 additions & 0 deletions install/kots/manifests/kots-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,22 @@ spec:
- name: s3
title: S3

# S3 help_text
- name: reg_incluster_storage_s3_region
title: Storage region
type: text
required: true
when: '{{repl (ConfigOptionEquals "reg_incluster_storage" "s3") }}'
help_text: ID of the region where your storage exists, such as `eu-west-2`.

- name: reg_incluster_storage_s3_endpoint
title: Endpoint
type: text
required: true
value: s3.amazonaws.com
when: '{{repl (ConfigOptionEquals "reg_incluster_storage" "s3") }}'
help_text: The endpoint used to connect to the S3 storage.

- name: reg_incluster_storage_s3_bucketname
title: S3 bucket name
type: text
Expand Down

0 comments on commit 3c10cc0

Please sign in to comment.