diff --git a/stable/verdaccio/Chart.yaml b/stable/verdaccio/Chart.yaml index 1287c95ab3..6bd096fe12 100644 --- a/stable/verdaccio/Chart.yaml +++ b/stable/verdaccio/Chart.yaml @@ -1,8 +1,8 @@ apiVersion: v1 description: A lightweight private npm proxy registry (sinopia fork) name: verdaccio -version: 0.2.3 -appVersion: 2.7.3 +version: 0.3.0 +appVersion: 3.2 home: http://www.verdaccio.org icon: https://raw.githubusercontent.com/verdaccio/verdaccio/master/assets/bitmap/logo/logo-twitter.png sources: diff --git a/stable/verdaccio/README.md b/stable/verdaccio/README.md index d5ddbf5024..14f47224d3 100644 --- a/stable/verdaccio/README.md +++ b/stable/verdaccio/README.md @@ -55,7 +55,7 @@ and their default values. | `customConfigMap` | Use a custom ConfigMap | `false` | | `image.pullPolicy` | Image pull policy | `Always` if `image` tag is `latest`, else `IfNotPresent` | | `image.repository` | Verdaccio container image repository | `verdaccio/verdaccio` | -| `image.tag` | Verdaccio container image tag | `2.7.1` | +| `image.tag` | Verdaccio container image tag | `3.2` | | `nodeSelector` | Node labels for pod assignment | `{}` | | `persistence.accessMode` | PVC Access Mode for Verdaccio volume | `ReadWriteOnce` | | `persistence.enabled` | Enable persistence using PVC | `true` | diff --git a/stable/verdaccio/templates/deployment.yaml b/stable/verdaccio/templates/deployment.yaml index 47b97b8aac..fe060e16f4 100644 --- a/stable/verdaccio/templates/deployment.yaml +++ b/stable/verdaccio/templates/deployment.yaml @@ -10,7 +10,12 @@ metadata: spec: replicas: {{ .Values.replicaCount }} strategy: + {{- if .Values.persistence.enabled }} type: Recreate + rollingUpdate: null + {{- else }} + type: RollingUpdate + {{- end }} template: metadata: annotations: @@ -28,15 +33,16 @@ spec: imagePullPolicy: {{ .Values.image.pullPolicy }} ports: - containerPort: 4873 + name: http livenessProbe: httpGet: - path: / - port: 4873 + path: /-/ping + port: http initialDelaySeconds: 5 readinessProbe: httpGet: - path: / - port: 4873 + path: /-/ping + port: http initialDelaySeconds: 5 resources: {{ toYaml .Values.resources | indent 12 }} diff --git a/stable/verdaccio/templates/service.yaml b/stable/verdaccio/templates/service.yaml index acdbce556a..50ee8ddf1f 100644 --- a/stable/verdaccio/templates/service.yaml +++ b/stable/verdaccio/templates/service.yaml @@ -26,7 +26,7 @@ spec: {{- end }} ports: - port: {{ .Values.service.port }} - targetPort: 4873 + targetPort: http protocol: TCP name: {{ .Values.service.name }} selector: diff --git a/stable/verdaccio/values.yaml b/stable/verdaccio/values.yaml index b2fdc72dd1..d22149382f 100644 --- a/stable/verdaccio/values.yaml +++ b/stable/verdaccio/values.yaml @@ -1,6 +1,6 @@ image: repository: verdaccio/verdaccio - tag: 2.7.3 + tag: 3.2 pullPolicy: IfNotPresent service: @@ -50,7 +50,7 @@ configMap: | # # Do not configure host and port under `listen` in this file # as it will be ignored when using docker. - # see https://github.com/verdaccio/verdaccio/blob/master/wiki/docker.md#docker-and-custom-port-configuration + # see https://github.com/verdaccio/verdaccio/blob/master/docs/docker.md#docker-and-custom-port-configuration # # Look here for more config file examples: # https://github.com/verdaccio/verdaccio/tree/master/conf @@ -59,6 +59,11 @@ configMap: | # path to a directory with all packages storage: /verdaccio/storage/data + web: + # WebUI is enabled as default, if you want disable it, just uncomment this line + #enable: false + title: Verdaccio + auth: htpasswd: file: /verdaccio/storage/htpasswd @@ -93,10 +98,16 @@ configMap: | # if package is not available locally, proxy requests to 'npmjs' registry proxy: npmjs + # To use `npm audit` uncomment the following section + middlewares: + audit: + enabled: true + # log settings logs: - {type: stdout, format: pretty, level: http} #- {type: file, path: verdaccio.log, level: info} + persistence: enabled: true ## A manually managed Persistent Volume and Claim