From 7076faea336db56aae541face2cd17a3452fc488 Mon Sep 17 00:00:00 2001 From: SimonRupar <8428013+SimonRupar@users.noreply.github.com> Date: Thu, 30 Sep 2021 20:20:14 +0200 Subject: [PATCH] Add support for S3 bucket to prefix all data --- README.md | 1 + templates/deployment.yaml | 4 ++++ values.yaml | 1 + 3 files changed, 6 insertions(+) diff --git a/README.md b/README.md index 440667d..38b5e9b 100644 --- a/README.md +++ b/README.md @@ -72,6 +72,7 @@ their default values. | `s3.region` | S3 region | `nil` | | `s3.regionEndpoint` | S3 region endpoint | `nil` | | `s3.bucket` | S3 bucket name | `nil` | +| `s3.rootdirectory` | S3 prefix that is applied to allow you to segment data | `nil` | | `s3.encrypt` | Store images in encrypted format | `nil` | | `s3.secure` | Use HTTPS | `nil` | | `swift.authurl` | Swift authurl | `nil` | diff --git a/templates/deployment.yaml b/templates/deployment.yaml index d3ea7af..3ed7a65 100644 --- a/templates/deployment.yaml +++ b/templates/deployment.yaml @@ -130,6 +130,10 @@ spec: {{- end }} - name: REGISTRY_STORAGE_S3_BUCKET value: {{ required ".Values.s3.bucket is required" .Values.s3.bucket }} + {{- if .Values.s3.rootdirectory }} + - name: REGISTRY_STORAGE_S3_ROOTDIRECTORY + value: {{ .Values.s3.rootdirectory | quote }} + {{- end }} {{- if .Values.s3.encrypt }} - name: REGISTRY_STORAGE_S3_ENCRYPT value: {{ .Values.s3.encrypt | quote }} diff --git a/values.yaml b/values.yaml index 39a42b4..2288ce2 100644 --- a/values.yaml +++ b/values.yaml @@ -91,6 +91,7 @@ secrets: # region: us-east-1 # regionEndpoint: s3.us-east-1.amazonaws.com # bucket: my-bucket +# rootdirectory: /object/prefix # encrypt: false # secure: true