From 3b3fe546ee576e194f3d8eb6384c05b6be78256f Mon Sep 17 00:00:00 2001 From: Nico Van Laerebeke Date: Thu, 21 Aug 2025 20:13:41 +0200 Subject: [PATCH 1/2] Added extra labels support for the ingress --- charts/privatebin/templates/ingress.yaml | 3 +++ charts/privatebin/values.yaml | 1 + 2 files changed, 4 insertions(+) diff --git a/charts/privatebin/templates/ingress.yaml b/charts/privatebin/templates/ingress.yaml index d58dd6a..0d59466 100644 --- a/charts/privatebin/templates/ingress.yaml +++ b/charts/privatebin/templates/ingress.yaml @@ -22,6 +22,9 @@ metadata: helm.sh/chart: {{ include "privatebin.chart" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/managed-by: {{ .Release.Service }} + {{- with .Values.ingress.labels }} + {{- toYaml . | nindent 4 }} + {{- end }} {{- with .Values.ingress.annotations }} annotations: {{- toYaml . | nindent 4 }} diff --git a/charts/privatebin/values.yaml b/charts/privatebin/values.yaml index 40d855f..094a31d 100644 --- a/charts/privatebin/values.yaml +++ b/charts/privatebin/values.yaml @@ -30,6 +30,7 @@ service: type: ClusterIP port: 80 portName: http + labels: {} annotations: {} ## Limit load balancer source ips to list of CIDRs (where available) # loadBalancerSourceRanges: [] From 600db485be0463f6e9c8042320b2cd55f9c999d4 Mon Sep 17 00:00:00 2001 From: Nico Van Laerebeke Date: Thu, 21 Aug 2025 20:15:46 +0200 Subject: [PATCH 2/2] Added labels to the README --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index f76fad7..9f386c9 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,7 @@ See values.yaml for full documentation | `service.annotations` | Service annotations | `{}` | | `ingress.enabled` | Enables Ingress | `false` | | `ingress.annotations` | Ingress annotations | `{}` | +| `ingress.labels` | Ingress extra labels | `{}` | | `ingress.hosts.host` | Ingress accepted hostnames | `privatebin.local` | | `ingress.hosts.paths` | Ingress paths | `[]` | | `ingress.hosts.paths.0.path` | Ingress path | `/` |