Skip to content

Commit

Permalink
feat: support imagePullSecrets (#32)
Browse files Browse the repository at this point in the history
* Support imagePullSecrets

* Update readme
  • Loading branch information
bycEEE authored Jul 1, 2020
1 parent e6c97c7 commit 95f3ee7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ and their default values.
| ---------------------------------- | --------------------------------------------------------------- | --------------------- |
| `existingConfigMap` | Name of custom ConfigMap to use | `false` |
| `image.pullPolicy` | Image pull policy | `IfNotPresent` |
| `image.pullSecrets` | Image pull secrets | `[]` |
| `image.repository` | Verdaccio container image repository | `verdaccio/verdaccio` |
| `image.tag` | Verdaccio container image tag | `4.6.2` |
| `nodeSelector` | Node labels for pod assignment | `{}` |
Expand Down
2 changes: 1 addition & 1 deletion charts/verdaccio/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
description: A lightweight private npm proxy registry (sinopia fork)
name: verdaccio
version: 0.16.1
version: 0.16.2
appVersion: 4.7.2
home: https://verdaccio.org
icon: https://cdn.verdaccio.dev/logos/default.png
Expand Down
4 changes: 4 additions & 0 deletions charts/verdaccio/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ spec:
{{- if .Values.extraEnvVars }}
{{ toYaml .Values.extraEnvVars | indent 12 }}
{{- end }}
{{- if .Values.image.pullSecrets }}
imagePullSecrets:
{{ toYaml .Values.image.pullSecrets | indent 8 }}
{{- end }}
{{- if .Values.securityContext.enabled }}
# Allow non-root user to access PersistentVolume
securityContext:
Expand Down
2 changes: 2 additions & 0 deletions charts/verdaccio/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ image:
repository: verdaccio/verdaccio
tag: 4.6.2
pullPolicy: IfNotPresent
pullSecrets:
# name: dockerhub-secret

service:
annotations: {}
Expand Down

0 comments on commit 95f3ee7

Please sign in to comment.