Skip to content

Commit

Permalink
remove(deployment): the 'replicas' field from the helm template if no…
Browse files Browse the repository at this point in the history
…t used by user (#142)
  • Loading branch information
alexis974 committed Mar 19, 2024
1 parent 1b5aa49 commit 7665112
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 | `{}` |
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: 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
Expand Down
2 changes: 2 additions & 0 deletions charts/verdaccio/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ metadata:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if .Values.replicaCountEnabled }}
replicas: {{ default 1 .Values.replicaCount }}
{{- end}}
revisionHistoryLimit: {{ .Values.revisionHistoryLimit }}
selector:
matchLabels:
Expand Down
1 change: 1 addition & 0 deletions charts/verdaccio/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ podLabels: {}
##
podAnnotations: {}

replicaCountEnabled: true
replicaCount: 1

revisionHistoryLimit: 10
Expand Down

0 comments on commit 7665112

Please sign in to comment.