Skip to content

Commit 458381c

Browse files
authored
Merge pull request twuni#169 from TheAceMan/main
Add the ability to force path style for s3 storage
2 parents 791c161 + ec17067 commit 458381c

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ their default values.
8585
| `s3.rootdirectory` | S3 prefix that is applied to allow you to segment data | `nil` |
8686
| `s3.encrypt` | Store images in encrypted format | `nil` |
8787
| `s3.secure` | Use HTTPS | `nil` |
88+
| `s3.forcepathstyle` | Use path-style addressing, needed for some s3 compatible storage (minio) | `nil` |
8889
| `swift.authurl` | Swift authurl | `nil` |
8990
| `swift.container` | Swift container | `nil` |
9091
| `proxy.enabled` | If true, registry will function as a proxy/mirror | `false` |

templates/_helpers.tpl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,11 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this
103103
value: {{ .Values.s3.secure | quote }}
104104
{{- end -}}
105105

106+
{{- if .Values.s3.forcepathstyle }}
107+
- name: REGISTRY_STORAGE_S3_FORCEPATHSTYLE
108+
value: {{ .Values.s3.forcepathstyle | quote }}
109+
{{- end -}}
110+
106111
{{- else if eq .Values.storage "swift" }}
107112
- name: REGISTRY_STORAGE_SWIFT_AUTHURL
108113
value: {{ required ".Values.swift.authurl is required" .Values.swift.authurl }}

values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ secrets:
104104
# rootdirectory: /object/prefix
105105
# encrypt: false
106106
# secure: true
107+
# forcepathstyle: true
107108

108109
# Options for swift storage type:
109110
# swift:

0 commit comments

Comments
 (0)