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

Commit

Permalink
add imagePullSecrets (#12)
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Collins <[email protected]>

Co-authored-by: Alexandre Nuttinck <[email protected]>
  • Loading branch information
Patricol and alexnuttinck authored Feb 26, 2021
1 parent b67b5f9 commit 1854659
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Chart.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` |
Expand Down
4 changes: 4 additions & 0 deletions templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand Down
2 changes: 2 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 1854659

Please sign in to comment.