From 185465906beaeaadf90cf55a78772d565fb72710 Mon Sep 17 00:00:00 2001 From: Patrick Collins Date: Fri, 26 Feb 2021 06:52:41 -0800 Subject: [PATCH] add imagePullSecrets (#12) Signed-off-by: Patrick Collins Co-authored-by: Alexandre Nuttinck --- Chart.yaml | 2 +- README.md | 1 + templates/deployment.yaml | 4 ++++ values.yaml | 2 ++ 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Chart.yaml b/Chart.yaml index 41cad7c..278ac4c 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -1,7 +1,7 @@ --- apiVersion: v2 name: swaggerui -version: 0.3.1 +version: 0.3.2 appVersion: 3.24.3 description: Swagger is an open-source software framework backed by a large ecosystem of tools that helps developers design, build, document, and consume RESTful Web services. keywords: diff --git a/README.md b/README.md index 68ff953..9f58793 100644 --- a/README.md +++ b/README.md @@ -58,6 +58,7 @@ The following table lists the configurable parameters of the swagger-ui chart an | `image.repository` | swagger-ui Image name | `swaggerapi/swagger-ui` | | `image.tag` | swagger-ui Image tag | `v3.24.3` | | `image.pullPolicy` | swagger-ui Image pull policy | `IfNotPresent` | +| `imagePullSecrets` | list of names of secrets containing docker registry credentials | `[]` | | **Swagger-UI** | | `swaggerui.jsonPath` | location of the configuration json file file | `""` | | `swaggerui.jsonUrl` | location of the configuration json file file | `http://petstore.swagger.io/v2/swagger.json` | diff --git a/templates/deployment.yaml b/templates/deployment.yaml index 4cf8d82..3e42a03 100644 --- a/templates/deployment.yaml +++ b/templates/deployment.yaml @@ -20,6 +20,10 @@ spec: app: {{ template "swagger-ui.name" . }} release: {{ .Release.Name }} spec: + {{- with .Values.imagePullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} containers: - name: {{ .Chart.Name }} image: "{{ .Values.image.repository }}" diff --git a/values.yaml b/values.yaml index a27505e..96d12ca 100644 --- a/values.yaml +++ b/values.yaml @@ -6,6 +6,8 @@ image: tag: v3.24.3 pullPolicy: IfNotPresent +imagePullSecrets: [] + ## Used to provide the location of the openapi.json file. ## If jsonPath is empty the chart try to get a json file at the jsonUrl address. ## The server fields have to use to add a custom server.