Skip to content

Commit 58264c2

Browse files
h3rmanjjuanpicado
andauthored
feat: allow custom labels to ingress (#158)
* feat: allow custom labels to ingress * Update Chart.yaml --------- Co-authored-by: Juan Picado <[email protected]>
1 parent 80f4a92 commit 58264c2

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ and their default values.
135135
| `secrets.htpasswd` | user and password list to generate htpasswd. | `[]` |
136136
| `ingress.enabled` | Enable/Disable Ingress | `false` |
137137
| `ingress.className` | Ingress Class Name (k8s `>=1.18` required) | `""` |
138+
| `ingress.labels` | Ingress Labels | `{}` |
138139
| `ingress.annotations` | Ingress Annotations | `{}` |
139140
| `ingress.hosts` | List of Ingress Hosts | `[]` |
140141
| `ingress.paths` | List of Ingress Paths | `["/"]` |

charts/verdaccio/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v2
22
description: A lightweight private node.js proxy registry
33
name: verdaccio
4-
version: 4.23.0
4+
version: 4.24.0
55
appVersion: 6.0.2
66
home: https://verdaccio.org
77
icon: https://cdn.verdaccio.dev/logos/default.png

charts/verdaccio/templates/ingress.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ metadata:
2020
name: {{ $fullName }}
2121
labels:
2222
{{- include "verdaccio.labels" . | nindent 4 }}
23+
{{- with .Values.ingress.labels }}
24+
{{- toYaml . | nindent 4 }}
25+
{{- end }}
2326
{{- with .Values.ingress.annotations }}
2427
annotations:
2528
{{- include "tplvalues.render" (dict "value" . "context" $) | nindent 4 }}

charts/verdaccio/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ ingress:
8484
# Use this to define, ALB ingress's actions annotation based routing. Ex: for ssl-redirect
8585
# Ref: https://kubernetes-sigs.github.io/aws-load-balancer-controller/latest/guide/tasks/ssl_redirect/
8686
extraPaths: []
87+
labels: {}
8788
# hosts:
8889
# - npm.blah.com
8990
# annotations:

0 commit comments

Comments
 (0)