Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit 1854659

Browse files
add imagePullSecrets (#12)
Signed-off-by: Patrick Collins <PatrickCP0@Gmail.com> Co-authored-by: Alexandre Nuttinck <alexandre.nuttinck@cetic.be>
1 parent b67b5f9 commit 1854659

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
apiVersion: v2
33
name: swaggerui
4-
version: 0.3.1
4+
version: 0.3.2
55
appVersion: 3.24.3
66
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.
77
keywords:

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ The following table lists the configurable parameters of the swagger-ui chart an
5858
| `image.repository` | swagger-ui Image name | `swaggerapi/swagger-ui` |
5959
| `image.tag` | swagger-ui Image tag | `v3.24.3` |
6060
| `image.pullPolicy` | swagger-ui Image pull policy | `IfNotPresent` |
61+
| `imagePullSecrets` | list of names of secrets containing docker registry credentials | `[]` |
6162
| **Swagger-UI** |
6263
| `swaggerui.jsonPath` | location of the configuration json file file | `""` |
6364
| `swaggerui.jsonUrl` | location of the configuration json file file | `http://petstore.swagger.io/v2/swagger.json` |

templates/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ spec:
2020
app: {{ template "swagger-ui.name" . }}
2121
release: {{ .Release.Name }}
2222
spec:
23+
{{- with .Values.imagePullSecrets }}
24+
imagePullSecrets:
25+
{{- toYaml . | nindent 8 }}
26+
{{- end }}
2327
containers:
2428
- name: {{ .Chart.Name }}
2529
image: "{{ .Values.image.repository }}"

values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ image:
66
tag: v3.24.3
77
pullPolicy: IfNotPresent
88

9+
imagePullSecrets: []
10+
911
## Used to provide the location of the openapi.json file.
1012
## If jsonPath is empty the chart try to get a json file at the jsonUrl address.
1113
## The server fields have to use to add a custom server.

0 commit comments

Comments
 (0)