quote boolean S3 environment variables (#5066)

* add if statements for optional S3 env variables, and quote them because they are booleans

* bump version, per CI request
This commit is contained in:
emsixteeen
2018-04-17 07:32:00 -07:00
committed by k8s-ci-robot
parent ab0431b40c
commit 5d3767e69c
2 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
apiVersion: v1
description: A Helm chart for Docker Registry
name: docker-registry
version: 1.1.1
version: 1.1.2
appVersion: 2.6.2
home: https://hub.docker.com/_/registry/
icon: https://hub.docker.com/public/images/logos/mini-logo.svg
@@ -84,10 +84,14 @@ spec:
value: {{ required ".Values.s3.region is required" .Values.s3.region }}
- name: REGISTRY_STORAGE_S3_BUCKET
value: {{ required ".Values.s3.bucket is required" .Values.s3.bucket }}
{{- if .Values.s3.encrypt }}
- name: REGISTRY_STORAGE_S3_ENCRYPT
value: {{ .Values.s3.encrypt }}
value: {{ .Values.s3.encrypt | quote }}
{{- end }}
{{- if .Values.s3.secure }}
- name: REGISTRY_STORAGE_S3_SECURE
value: {{ .Values.s3.secure }}
value: {{ .Values.s3.secure | quote }}
{{- end }}
{{- end }}
volumeMounts:
{{- if .Values.secrets.htpasswd }}