diff --git a/stable/cerebro/Chart.yaml b/stable/cerebro/Chart.yaml index 9165396cbc..31f2185c2d 100644 --- a/stable/cerebro/Chart.yaml +++ b/stable/cerebro/Chart.yaml @@ -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 diff --git a/stable/cerebro/README.md b/stable/cerebro/README.md index c2cedf0f09..e5ee49ec9a 100644 --- a/stable/cerebro/README.md +++ b/stable/cerebro/README.md @@ -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` | diff --git a/stable/cerebro/templates/deployment.yaml b/stable/cerebro/templates/deployment.yaml index c7d08322b5..1c06fa7f27 100644 --- a/stable/cerebro/templates/deployment.yaml +++ b/stable/cerebro/templates/deployment.yaml @@ -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 }}" diff --git a/stable/cerebro/values.yaml b/stable/cerebro/values.yaml index 6918190caa..ed50bbcaf7 100644 --- a/stable/cerebro/values.yaml +++ b/stable/cerebro/values.yaml @@ -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: {}