diff --git a/README.md b/README.md index 9175ca9..ef2a483 100644 --- a/README.md +++ b/README.md @@ -106,6 +106,7 @@ and their default values. | `priorityClass.enabled` | Enable specifying pod priorityClassName | `false` | | `priorityClass.name` | PriorityClassName to be specified in pod spec | `""` | | `replicaCount` | Desired number of pods | `1` | +| `replicaCountEnabled` | Enable the replicaCount field | `true` | | `livenessProbe` | Configuration of liveness probe | `{}` | | `readinessProbe` | Configuration of readiness probe | `{}` | | `resources` | CPU/Memory resource requests/limits | `{}` | diff --git a/charts/verdaccio/Chart.yaml b/charts/verdaccio/Chart.yaml index 3e71678..fac3b45 100644 --- a/charts/verdaccio/Chart.yaml +++ b/charts/verdaccio/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 description: A lightweight private node.js proxy registry name: verdaccio -version: 4.16.0 +version: 4.16.1 appVersion: 5.29.0 home: https://verdaccio.org icon: https://cdn.verdaccio.dev/logos/default.png diff --git a/charts/verdaccio/templates/deployment.yaml b/charts/verdaccio/templates/deployment.yaml index 52a0e0e..6c0b087 100644 --- a/charts/verdaccio/templates/deployment.yaml +++ b/charts/verdaccio/templates/deployment.yaml @@ -9,7 +9,9 @@ metadata: {{- toYaml . | nindent 4 }} {{- end }} spec: + {{- if .Values.replicaCountEnabled }} replicas: {{ default 1 .Values.replicaCount }} + {{- end}} revisionHistoryLimit: {{ .Values.revisionHistoryLimit }} selector: matchLabels: diff --git a/charts/verdaccio/values.yaml b/charts/verdaccio/values.yaml index dc4448a..7e832fd 100644 --- a/charts/verdaccio/values.yaml +++ b/charts/verdaccio/values.yaml @@ -46,6 +46,7 @@ podLabels: {} ## podAnnotations: {} +replicaCountEnabled: true replicaCount: 1 revisionHistoryLimit: 10