From 702d1693356f8c392e4b522ef39445933e7b9b09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Math=C3=A9o=20Atch=C3=A9?= <28435222+MatheoAtche@users.noreply.github.com> Date: Wed, 19 Aug 2020 15:56:26 +0200 Subject: [PATCH] Add imagePullSecrets to deployment and update adminer version (#3) * Update README.md * add ImagePullSecrets * update Chart and App versions * update README * Update README.md Co-authored-by: Alexandre Nuttinck --- Chart.yaml | 4 ++-- README.md | 5 ++--- templates/deployment.yaml | 6 ++++++ values.yaml | 3 ++- 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/Chart.yaml b/Chart.yaml index ebad758..a06016b 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -1,8 +1,8 @@ --- apiVersion: v2 name: adminer -appVersion: 4.7.6 -version: 0.1.4 +appVersion: 4.7.7 +version: 0.1.5 description: Adminer is a full-featured database management tool written in PHP. Conversely to phpMyAdmin, it consist of a single file ready to deploy to the target server. Adminer is available for MySQL, MariaDB, PostgreSQL, SQLite, MS SQL, Oracle, Firebird, SimpleDB, Elasticsearch and MongoDB home: https://www.adminer.org icon: https://raw.githubusercontent.com/Kong/docker-official-docs/master/adminer/logo.png diff --git a/README.md b/README.md index d4fb9e2..c23ca05 100644 --- a/README.md +++ b/README.md @@ -56,14 +56,13 @@ The following table lists the configurable parameters of the Adminer chart and t | --------------------------------- | ----------------------------------------------------------------------- | --------------------------- | | **Image** | | `image.repository` | Image | `adminer` | -| `image.tag` | Image tag | `4.7.6-standalone` | +| `image.tag` | Image tag | `4.7.7-standalone` | | `image.pullPolicy` | Image pull policy | `IfNotPresent` | +| `image.pullSecrets` | Image pull secrets for private registry | `[]` | | **Config** | | `config.plugins` | List of plugins to install. You can find the list of plugins on [GitHub](https://github.com/vrana/adminer/tree/master/plugins)| ``| | `config.design` | A bundled design to use. You can find the list of designs on [GitHub](https://github.com/vrana/adminer/tree/master/designs)| ``| | `config.externalserver` | The default host | `` | -| **Command** | -| `command` | Container entrypoint command | `[]` | | **Service** | | `service.type` | Service type | `NodePort` | | `service.port` | The service port | `80` | diff --git a/templates/deployment.yaml b/templates/deployment.yaml index e8cd0e0..4ded448 100644 --- a/templates/deployment.yaml +++ b/templates/deployment.yaml @@ -19,6 +19,12 @@ spec: app.kubernetes.io/name: {{ include "adminer.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} spec: + {{- 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/values.yaml b/values.yaml index f46a47c..6943cfe 100644 --- a/values.yaml +++ b/values.yaml @@ -6,8 +6,9 @@ replicaCount: 1 image: repository: adminer - tag: 4.7.6-standalone + tag: 4.7.7-standalone pullPolicy: IfNotPresent + pullSecrets: [] # See envs from https://hub.docker.com/_/adminer/ config: