mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
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:
committed by
Kubernetes Prow Robot
parent
12acab75bd
commit
1de488a25d
@@ -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
|
||||
|
||||
@@ -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` |
|
||||
|
||||
@@ -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 }}"
|
||||
|
||||
@@ -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: {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user