Skip to content

Commit 521fee7

Browse files
authored
customConfigMap parameter implementation (#26)
* customConfigMap parameter implementation * Change name of custom config map function parameter to `existingConfigMap`, bump chart version Co-authored-by: Tomáš Hejátko <[email protected]>
1 parent 284755c commit 521fee7

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ and their default values.
7474

7575
| Parameter | Description | Default |
7676
| ---------------------------------- | --------------------------------------------------------------- | --------------------- |
77-
| `customConfigMap` | Use a custom ConfigMap | `false` |
77+
| `existingConfigMap` | Name of custom ConfigMap to use | `false` |
7878
| `image.pullPolicy` | Image pull policy | `IfNotPresent` |
7979
| `image.repository` | Verdaccio container image repository | `verdaccio/verdaccio` |
8080
| `image.tag` | Verdaccio container image tag | `3.11.6` |

charts/verdaccio/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v1
22
description: A lightweight private npm proxy registry (sinopia fork)
33
name: verdaccio
4-
version: 0.11.0
4+
version: 0.12.0
55
appVersion: 3.13.1
66
home: https://verdaccio.org
77
icon: https://cdn.verdaccio.dev/logos/default.png
@@ -15,4 +15,4 @@ maintainers:
1515
- name: juanpicado
1616
1717
- name: Jhon Mike
18-
18+

charts/verdaccio/templates/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ spec:
7676
volumes:
7777
- name: config
7878
configMap:
79-
name: {{ template "verdaccio.fullname" . }}
79+
name: {{ .Values.existingConfigMap | default (include "verdaccio.fullname" .) }}
8080
{{- if .Values.persistence.volumes }}
8181
{{ toYaml .Values.persistence.volumes | indent 6 }}
8282
{{- end }}

charts/verdaccio/values.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,4 +160,6 @@ securityContext:
160160

161161
priorityClass:
162162
enabled: false
163-
# name: ""
163+
# name: ""
164+
165+
existingConfigMap: false

0 commit comments

Comments
 (0)