Add imagePullSecrets (#11453)

* Add imagePullSecrets

imagePullSecrets is required when using a private docker registry. This
will handle imagePullSecrets if specified in the values.

Signed-off-by: Vipul Agarwal <va@vagarwal.net>

* Cosmetics

Signed-off-by: David J. M. Karlsen <david@davidkarlsen.com>
This commit is contained in:
Vipul Agarwal
2019-04-22 07:47:45 -07:00
committed by Kubernetes Prow Robot
parent 12acab75bd
commit 1de488a25d
4 changed files with 15 additions and 1 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ sources:
- https://github.com/lmenezes/cerebro-docker
- https://github.com/lmenezes/cerebro
name: cerebro
version: 0.5.3
version: 1.0.0
maintainers:
- name: davidkarlsen
email: david@davidkarlsen.com
+1
View File
@@ -43,6 +43,7 @@ The following table lists the configurable parameters of the cerebro chart and t
| `image.repository` | The image to run | `lmenezes/cerebro` |
| `image.tag` | The image tag to pull | `0.8.2` |
| `image.pullPolicy` | Image pull policy | `IfNotPresent` |
| `image.pullSecrets` | Specify image pull secrets | `nil` (does not add image pull secrets to deployed pods) |
| `init.image.repository` | The image to run | `docker.io/busybox` |
| `init.image.tag` | The image tag to pull | `musl` |
| `init.image.pullPolicy` | Image pull policy | `IfNotPresent` |
+6
View File
@@ -34,6 +34,12 @@ spec:
volumeMounts:
- name: db
mountPath: /var/db/cerebro
{{- if .Values.image.pullSecrets }}
imagePullSecrets:
{{- range .Values.image.pullSecrets }}
- name: {{ . }}
{{- end }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
+7
View File
@@ -14,6 +14,13 @@ init:
tag: musl
pullPolicy: IfNotPresent
## Optionally specify an array of imagePullSecrets.
## Secrets must be manually created in the namespace.
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
##
# pullSecrets:
# - myRegistrKeySecretName
deployment:
annotations: {}