From cd48438cdf5c977175e978a1fd9fd3c1cb44049b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Pervill=C3=A9?= Date: Wed, 10 Jun 2026 18:28:01 +0200 Subject: [PATCH] feat(helm): add podLabels attribute --- charts/mailcrab/README.md | 1 + charts/mailcrab/templates/deployment.yaml | 3 +++ charts/mailcrab/values.yaml | 3 +++ 3 files changed, 7 insertions(+) diff --git a/charts/mailcrab/README.md b/charts/mailcrab/README.md index 3b709e3..a43e454 100644 --- a/charts/mailcrab/README.md +++ b/charts/mailcrab/README.md @@ -21,6 +21,7 @@ A Helm chart for deploying MailCrab in Kubernetes. | ingress.hosts[0].paths[0].pathType | string | `"ImplementationSpecific"` | | | ingress.tls | list | `[]` | TLS configuration for ingress | | nameOverride | string | `""` | Configure the name override for resources. | +| podLabels | object | `{}` | Configure additional labels to be required by the pods to run the application. | | podAnnotations | object | `{}` | Configure annotations to be required by the pods to run the application. | | podSecurityContext | object | `{}` | Configure the pod security context. | | replicaCount | int | `1` | Configure the number of replicas to run. | diff --git a/charts/mailcrab/templates/deployment.yaml b/charts/mailcrab/templates/deployment.yaml index 0588cec..ff461fd 100644 --- a/charts/mailcrab/templates/deployment.yaml +++ b/charts/mailcrab/templates/deployment.yaml @@ -19,6 +19,9 @@ spec: {{- end }} labels: {{- include "mailcrab.selectorLabels" . | nindent 8 }} + {{- range $key, $value := .Values.podLabels }} + {{- printf "%s: %s" $key (tpl $value $ | quote) | nindent 8 }} + {{- end }} spec: {{- with .Values.imagePullSecrets }} imagePullSecrets: diff --git a/charts/mailcrab/values.yaml b/charts/mailcrab/values.yaml index e5d8d8b..9d6cf4a 100644 --- a/charts/mailcrab/values.yaml +++ b/charts/mailcrab/values.yaml @@ -49,6 +49,9 @@ serviceAccount: # -- The name of the service account to use. If not set and create is true, a name is generated using the fullname template name: "" +# -- Configure additional labels to be required by the pods to run the application. +podLabels: {} + # -- Configure annotations to be required by the pods to run the application. podAnnotations: {}