Skip to content

Commit fba5840

Browse files
committed
Add missing supported S3 values
Signed-off-by: jessebot <[email protected]>
1 parent ddc5afc commit fba5840

File tree

5 files changed

+43
-3
lines changed

5 files changed

+43
-3
lines changed

charts/nextcloud/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: nextcloud
3-
version: 5.4.0
3+
version: 5.5.0
44
appVersion: 29.0.4
55
description: A file sharing server that puts the control and security of your own data back into your hands.
66
keywords:

charts/nextcloud/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,13 @@ Here are all the values you can currently configure in this helm chart to config
284284
| `nextcloud.objectStore.s3.autoCreate` | auto-create the S3 bucket | `false` |
285285
| `nextcloud.objectStore.s3.storageClass` | S3 storage class to use | `STANDARD` |
286286
| `nextcloud.objectStore.s3.sse_c_key` | S3 server side encryption key. | `''` |
287+
| `nextcloud.objectStore.s3.concurrency` | S3 maximum number of concurrent multipart uploads. | `5` |
288+
| `nextcloud.objectStore.s3.proxy` | S3 proxy enabled or not. | `false` |
289+
| `nextcloud.objectStore.s3.timeout` | S3 timeout in seconds. | `15` |
290+
| `nextcloud.objectStore.s3.uploadPartSize` | S3 max upload size, in bytes. | `524288000` |
291+
| `nextcloud.objectStore.s3.putSizeLimit` | S3 max PUT size, in bytes. | `104857600` |
292+
| `nextcloud.objectStore.s3.version` | S3 version to use. | `'latest'` |
293+
| `nextcloud.objectStore.s3.verify_bucket_exists` | S3 param to check if bucket already exists on startup. | `true` |
287294
| `nextcloud.objectStore.s3.existingSecret` | Use an existing Kubernetes Secret to fetch auth credentials | `''` |
288295
| `nextcloud.objectStore.s3.secretKeys.host` | if using s3.existingSecret, secret key to use for the host | `''` |
289296
| `nextcloud.objectStore.s3.secretKeys.accessKey` | if using s3.existingSecret, secret key to use for the accessKeyID | `''` |

charts/nextcloud/files/defaultConfigs/s3.config.php.tpl

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,14 @@ if (getenv('OBJECTSTORE_S3_BUCKET')) {
1919
// required for some non Amazon S3 implementations
2020
'use_path_style' => $use_path == true && strtolower($use_path) !== 'false',
2121
// required for older protocol versions
22-
'legacy_auth' => $use_legacyauth == true && strtolower($use_legacyauth) !== 'false'
22+
'legacy_auth' => $use_legacyauth == true && strtolower($use_legacyauth) !== 'false',
23+
'concurrency' => getenv('OBJECTSTORE_S3_CONCURRENCY') ?: 5,
24+
'proxy' => getenv('OBJECTSTORE_S3_PROXY') ?: false,
25+
'timeout' => getenv('OBJECTSTORE_S3_TIMEOUT') ?: 15,
26+
'uploadPartSize' => getenv('OBJECTSTORE_S3_UPLOADPARTSIZE') ?: 524288000,
27+
'putSizeLimit' => getenv('OBJECTSTORE_S3_PUTSIZELIMIT') ?: 104857600,
28+
'version' => getenv('OBJECTSTORE_S3_VERSION') ?: "latest",
29+
'verify_bucket_exists' => getenv('OBJECTSTORE_S3_VERIFY_BUCKET_EXISTS') ?: true
2330
)
2431
)
2532
);

charts/nextcloud/templates/_helpers.tpl

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,24 @@ S3 as primary object store env vars
247247
value: {{ .Values.nextcloud.objectStore.s3.usePathStyle | quote }}
248248
{{- with .Values.nextcloud.objectStore.s3.legacyAuth }}
249249
- name: OBJECTSTORE_S3_LEGACYAUTH
250-
value: {{ . }}
250+
value: {{ . | quote }}
251+
{{- end }}
252+
- name: OBJECTSTORE_S3_CONCURRENCY
253+
value: {{ .Values.nextcloud.objectStore.s3.concurrency | quote }}
254+
{{- with .Values.nextcloud.objectStore.s3.proxy }}
255+
- name: OBJECTSTORE_S3_PROXY
256+
value: {{ . | quote }}
251257
{{- end }}
258+
- name: OBJECTSTORE_S3_TIMEOUT
259+
value: {{ .Values.nextcloud.objectStore.s3.timeout | quote }}
260+
- name: OBJECTSTORE_S3_UPLOADPARTSIZE
261+
value: {{ .Values.nextcloud.objectStore.s3.uploadPartSize | quote }}
262+
- name: OBJECTSTORE_S3_PUTSIZELIMIT
263+
value: {{ .Values.nextcloud.objectStore.s3.putSizeLimit | quote }}
264+
- name: OBJECTSTORE_S3_VERSION
265+
value: {{ .Values.nextcloud.objectStore.s3.version | quote }}
266+
- name: OBJECTSTORE_S3_VERIFY_BUCKET_EXISTS
267+
value: {{ .Values.nextcloud.objectStore.s3.verify_bucket_exists | quote }}
252268
- name: OBJECTSTORE_S3_AUTOCREATE
253269
value: {{ .Values.nextcloud.objectStore.s3.autoCreate | quote }}
254270
- name: OBJECTSTORE_S3_REGION

charts/nextcloud/values.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,16 @@ nextcloud:
141141
storageClass: "STANDARD"
142142
# server side encryption key. learn more: https://docs.nextcloud.com/server/latest/admin_manual/configuration_files/primary_storage.html#s3-sse-c-encryption-support
143143
sse_c_key: ""
144+
# defines the maximum number of concurrent multipart uploads
145+
concurrency: 5
146+
proxy: false
147+
timeout: 15
148+
uploadPartSize: 524288000
149+
putSizeLimit: 104857600
150+
version: "latest"
151+
# Setting this to false after confirming the bucket has been created may provide a performance benefit,
152+
# but may not be possible in multibucket scenarios.
153+
verify_bucket_exists: true
144154
# use an existingSecret for S3 credentials. If set, we ignore the following under nextcloud.objectStore.s3
145155
# endpoint, accessKey, secretKey
146156
existingSecret: ""

0 commit comments

Comments
 (0)