Skip to content

Commit 4ac00f5

Browse files
committed
chore(storage): use path style replace lookup
1 parent 5c37a7f commit 4ac00f5

4 files changed

Lines changed: 13 additions & 13 deletions

File tree

charts/quickwit/templates/_helpers.tpl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,6 @@ env:
3434
value: "postgres://$(DRYCC_PG_USER):$(DRYCC_PG_PASSWORD)@drycc-database:5432/quickwit"
3535
{{- end }}
3636
{{- if (.Values.storageEndpoint) }}
37-
- name: "DRYCC_STORAGE_LOOKUP"
38-
valueFrom:
39-
secretKeyRef:
40-
name: quickwit-creds
41-
key: storage-lookup
4237
- name: "DRYCC_STORAGE_BUCKET"
4338
valueFrom:
4439
secretKeyRef:
@@ -59,9 +54,12 @@ env:
5954
secretKeyRef:
6055
name: quickwit-creds
6156
key: storage-secretkey
57+
- name: "DRYCC_STORAGE_PATH_STYLE"
58+
valueFrom:
59+
secretKeyRef:
60+
name: quickwit-creds
61+
key: storage-path-style
6262
{{- else if .Values.storage.enabled }}
63-
- name: "DRYCC_STORAGE_LOOKUP"
64-
value: "path"
6563
- name: "DRYCC_STORAGE_BUCKET"
6664
value: "quickwit"
6765
- name: "DRYCC_STORAGE_ENDPOINT"
@@ -76,6 +74,8 @@ env:
7674
secretKeyRef:
7775
name: storage-creds
7876
key: secretkey
77+
- name: "DRYCC_STORAGE_PATH_STYLE"
78+
value: "on"
7979
{{- end }}
8080
- name: QW_CLUSTER_ID
8181
value: drycc-quickwit

charts/quickwit/templates/quickwit-secret-creds.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ data:
1010
database-url: {{ .Values.databaseUrl | b64enc }}
1111
{{- end }}
1212
{{- if (.Values.storageEndpoint) }}
13-
storage-lookup: {{ .Values.storageLookup | b64enc }}
1413
storage-bucket: {{ .Values.storageBucket | b64enc }}
1514
storage-endpoint: {{ .Values.storageEndpoint | b64enc }}
1615
storage-accesskey: {{ .Values.storageAccesskey | b64enc }}
1716
storage-secretkey: {{ .Values.storageSecretkey | b64enc }}
17+
storage-path-style: {{ .Values.storagePathStyle | b64enc }}
1818
{{- end }}

charts/quickwit/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ logIndexTemplateName: "logs"
2626
# databaseUrl are will no longer use the built-in database component
2727
databaseUrl: ""
2828
# The following parameters will no longer use the built-in storage component.
29-
storageLookup: ""
3029
storageBucket: ""
3130
storageEndpoint: ""
3231
storageAccesskey: ""
3332
storageSecretkey: ""
33+
storagePathStyle: "auto"
3434

3535
control_plane:
3636
nodeAffinityPreset:

rootfs/usr/local/bin/init-quickwit

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ alias mc="init-stack mc"
77
alias jq="init-stack jq"
88
alias quickwit="init-stack quickwit"
99

10-
mc config host add storage \
10+
mc alias set storage \
1111
"${DRYCC_STORAGE_ENDPOINT}" \
1212
"${DRYCC_STORAGE_ACCESSKEY}" \
1313
"${DRYCC_STORAGE_SECRETKEY}" \
14-
--lookup "${DRYCC_STORAGE_LOOKUP}" \
15-
--api s3v4
14+
--path "${DRYCC_STORAGE_PATH_STYLE}"
15+
1616
mc ping storage -x
1717
mc mb --ignore-existing storage/"${DRYCC_STORAGE_BUCKET}"
1818

1919
AWS_REGION=${DRYCC_STORAGE_ENDPOINT%%.*}
20-
if [ "$DRYCC_STORAGE_LOOKUP" = "path" ]; then
20+
if [ "$DRYCC_STORAGE_PATH_STYLE" = "on" ]; then
2121
QW_S3_FORCE_PATH_STYLE_ACCESS="true"
2222
fi
2323
export AWS_REGION QW_S3_FORCE_PATH_STYLE_ACCESS

0 commit comments

Comments
 (0)