[stable/docker-registry] Add imagePullSecrets (#5688)

* Add imagePullSecrets in values.yaml

* Add imagePullSecret to deployment.yaml

* Update Readme.md with imagePullSecrets

* fix linter issue

Remove trailing whitespace in docker-registry/values.yaml

* Update Chart.yaml
This commit is contained in:
Dennis Fricke
2018-05-24 12:59:42 -07:00
committed by k8s-ci-robot
parent f4223aed8a
commit 5129ff01c6
4 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
apiVersion: v1
description: A Helm chart for Docker Registry
name: docker-registry
version: 1.4.0
version: 1.4.1
appVersion: 2.6.2
home: https://hub.docker.com/_/registry/
icon: https://hub.docker.com/public/images/logos/mini-logo.svg
+1
View File
@@ -30,6 +30,7 @@ their default values.
| `image.pullPolicy` | Container pull policy | `IfNotPresent` |
| `image.repository` | Container image to use | `registry` |
| `image.tag` | Container image tag to deploy | `2.6.2` |
| `imagePullSecrets` | Specify image pull secrets | `nil` (does not add image pull secrets to deployed pods) |
| `persistence.accessMode` | Access mode to use for PVC | `ReadWriteOnce` |
| `persistence.enabled` | Whether to use a PVC for the Docker storage | `false` |
| `persistence.size` | Amount of space to claim for PVC | `10Gi` |
@@ -25,6 +25,10 @@ spec:
{{ toYaml $.Values.podAnnotations | indent 8 }}
{{- end }}
spec:
{{- if .Values.imagePullSecrets }}
imagePullSecrets:
{{ toYaml .Values.imagePullSecrets | indent 8 }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
+2
View File
@@ -15,6 +15,8 @@ image:
repository: registry
tag: 2.6.2
pullPolicy: IfNotPresent
# imagePullSecrets:
# - docker
service:
name: registry
type: ClusterIP