From 4c4980045212b976c0598cbea71cf1fa1e95cc90 Mon Sep 17 00:00:00 2001 From: Vincent Van Ouytsel Date: Mon, 11 Oct 2021 15:27:28 +0200 Subject: [PATCH] Support additional env variables --- README.md | 1 + templates/deployment.yaml | 3 +++ values.yaml | 5 +++++ 3 files changed, 9 insertions(+) diff --git a/README.md b/README.md index 38b5e9b..84cf037 100644 --- a/README.md +++ b/README.md @@ -93,6 +93,7 @@ their default values. | `ingress.tls` | Ingress TLS configuration (YAML) | `[]` | | `extraVolumeMounts` | Additional volumeMounts to the registry container | `[]` | | `extraVolumes` | Additional volumes to the pod | `[]` | +| `extraEnvVars` | Additional environment variables to the pod | `[]` | Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. diff --git a/templates/deployment.yaml b/templates/deployment.yaml index 3ed7a65..a621aab 100644 --- a/templates/deployment.yaml +++ b/templates/deployment.yaml @@ -175,6 +175,9 @@ spec: {{- if .Values.persistence.deleteEnabled }} - name: REGISTRY_STORAGE_DELETE_ENABLED value: "true" +{{- end }} +{{- with .Values.extraEnvVars }} + {{- toYaml . | nindent 12 }} {{- end }} volumeMounts: {{- if .Values.secrets.htpasswd }} diff --git a/values.yaml b/values.yaml index 2288ce2..22252a8 100644 --- a/values.yaml +++ b/values.yaml @@ -160,3 +160,8 @@ extraVolumes: [] # - key: cloudfront.pem # path: cloudfront.pem # mode: 511 + +extraEnvVars: [] +## Additional ENV variables to set +# - name: REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY +# value: "/var/lib/example"