Skip to content

Commit

Permalink
feat: allow custom labels to ingress (#158)
Browse files Browse the repository at this point in the history
* feat: allow custom labels to ingress

* Update Chart.yaml

---------

Co-authored-by: Juan Picado <[email protected]>
  • Loading branch information
h3rmanj and juanpicado authored Dec 17, 2024
1 parent 80f4a92 commit 58264c2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ and their default values.
| `secrets.htpasswd` | user and password list to generate htpasswd. | `[]` |
| `ingress.enabled` | Enable/Disable Ingress | `false` |
| `ingress.className` | Ingress Class Name (k8s `>=1.18` required) | `""` |
| `ingress.labels` | Ingress Labels | `{}` |
| `ingress.annotations` | Ingress Annotations | `{}` |
| `ingress.hosts` | List of Ingress Hosts | `[]` |
| `ingress.paths` | List of Ingress Paths | `["/"]` |
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.23.0
version: 4.24.0
appVersion: 6.0.2
home: https://verdaccio.org
icon: https://cdn.verdaccio.dev/logos/default.png
Expand Down
3 changes: 3 additions & 0 deletions charts/verdaccio/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ metadata:
name: {{ $fullName }}
labels:
{{- include "verdaccio.labels" . | nindent 4 }}
{{- with .Values.ingress.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.ingress.annotations }}
annotations:
{{- include "tplvalues.render" (dict "value" . "context" $) | nindent 4 }}
Expand Down
1 change: 1 addition & 0 deletions charts/verdaccio/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ ingress:
# Use this to define, ALB ingress's actions annotation based routing. Ex: for ssl-redirect
# Ref: https://kubernetes-sigs.github.io/aws-load-balancer-controller/latest/guide/tasks/ssl_redirect/
extraPaths: []
labels: {}
# hosts:
# - npm.blah.com
# annotations:
Expand Down

0 comments on commit 58264c2

Please sign in to comment.