Skip to content

Commit 69375ac

Browse files
committed
Add s3 bucket name to kots
1 parent b053dae commit 69375ac

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ spec:
202202
echo "Gitpod: configuring storage for S3"
203203
204204
yq e -i ".objectStorage.s3.endpoint = \"{{repl ConfigOption "store_s3_endpoint" }}\"" "${CONFIG_FILE}"
205+
yq e -i ".objectStorage.s3.bucket = \"{{repl ConfigOption "store_s3_bucket" }}\"" "${CONFIG_FILE}"
205206
yq e -i ".objectStorage.s3.credentials.kind = \"secret\"" "${CONFIG_FILE}"
206207
yq e -i ".objectStorage.s3.credentials.name = \"storage-s3\"" "${CONFIG_FILE}"
207208
fi

install/kots/manifests/kots-config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,13 @@ spec:
241241
when: '{{repl (ConfigOptionEquals "store_provider" "s3") }}'
242242
help_text: The endpoint used to connect to the S3 storage.
243243

244+
- name: store_s3_bucket
245+
title: S3 bucket name
246+
type: text
247+
required: false
248+
when: '{{repl (ConfigOptionEquals "store_provider" "s3") }}'
249+
help_text: Name of the S3 bucket to be used as storage. If left empty, buckets will be created by Gitpod using the provided credentials.
250+
244251
- name: store_s3_access_key_id
245252
title: Access Key
246253
type: text

0 commit comments

Comments
 (0)