From dfaee2c8e5cf41c6913baf5c50918d0dddce9889 Mon Sep 17 00:00:00 2001 From: "David J. M. Karlsen" Date: Wed, 12 Dec 2018 13:38:55 +0100 Subject: [PATCH] [stable/cerebro] template initimage (#9929) Signed-off-by: David J. M. Karlsen --- stable/cerebro/Chart.yaml | 2 +- stable/cerebro/README.md | 3 +++ stable/cerebro/templates/deployment.yaml | 3 ++- stable/cerebro/values.yaml | 6 ++++++ 4 files changed, 12 insertions(+), 2 deletions(-) diff --git a/stable/cerebro/Chart.yaml b/stable/cerebro/Chart.yaml index 19d0917906..62a87ba945 100644 --- a/stable/cerebro/Chart.yaml +++ b/stable/cerebro/Chart.yaml @@ -6,7 +6,7 @@ sources: - https://github.com/lmenezes/cerebro-docker - https://github.com/lmenezes/cerebro name: cerebro -version: 0.4.0 +version: 0.5.0 maintainers: - name: davidkarlsen email: david@davidkarlsen.com diff --git a/stable/cerebro/README.md b/stable/cerebro/README.md index 7d81593cca..26af7351e4 100644 --- a/stable/cerebro/README.md +++ b/stable/cerebro/README.md @@ -43,6 +43,9 @@ 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.1` | | `image.pullPolicy` | Image pull policy | `IfNotPresent` | +| `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` | | `service.type` | Type of Service | `ClusterIP` | | `service.port` | Port for kubernetes service | `80` | | `service.annotations` | Annotations to add to the service | `{}` | diff --git a/stable/cerebro/templates/deployment.yaml b/stable/cerebro/templates/deployment.yaml index e4845bae7c..5abc482f24 100644 --- a/stable/cerebro/templates/deployment.yaml +++ b/stable/cerebro/templates/deployment.yaml @@ -24,7 +24,8 @@ spec: spec: initContainers: - name: chown-db - image: docker.io/busybox:musl + image: {{ .Values.init.image.repository }}:{{ .Values.init.image.tag }} + imagePullPolicy: {{ .Values.init.image.pullPolicy }} command: ["chown", "1000:1000", "/var/db/cerebro"] volumeMounts: - name: db diff --git a/stable/cerebro/values.yaml b/stable/cerebro/values.yaml index ab313860bc..d137b29b04 100644 --- a/stable/cerebro/values.yaml +++ b/stable/cerebro/values.yaml @@ -8,6 +8,12 @@ image: tag: 0.8.1 pullPolicy: IfNotPresent +init: + image: + repository: docker.io/busybox + tag: musl + pullPolicy: IfNotPresent + service: type: ClusterIP port: 80