From eb3c078d0996a39f1e90462bcd8f545231464531 Mon Sep 17 00:00:00 2001 From: Hazim Date: Thu, 19 May 2022 15:53:26 +0200 Subject: [PATCH] Add podLabels field (#26) * Add standard podLabels field to allow additional labels on pods * Update chart version and documentation Co-authored-by: Hazim Malik Co-authored-by: Hazim Malik --- src/chartmuseum/Chart.yaml | 2 +- src/chartmuseum/README.md | 1 + src/chartmuseum/templates/deployment.yaml | 3 +++ src/chartmuseum/values.yaml | 5 +++++ 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/chartmuseum/Chart.yaml b/src/chartmuseum/Chart.yaml index a602919..db79842 100644 --- a/src/chartmuseum/Chart.yaml +++ b/src/chartmuseum/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 description: Host your own Helm Chart Repository name: chartmuseum -version: 3.7.1 +version: 3.8.0 appVersion: 0.14.0 home: https://github.com/helm/chartmuseum icon: https://raw.githubusercontent.com/chartmuseum/charts/main/logo.jpg diff --git a/src/chartmuseum/README.md b/src/chartmuseum/README.md index 4968182..909d22c 100644 --- a/src/chartmuseum/README.md +++ b/src/chartmuseum/README.md @@ -203,6 +203,7 @@ their default values. See values.yaml for all available options. | `deployment.extraVolumes` | Additional volumes for deployment | `[]` | | `deployment.extraVolumeMounts` | Additional volumes to mount in container for deployment | `[]` | | `podAnnotations` | Annotations for pods | `{}` | +| `podLabels` | Labels for pods | `{}` | | `ingress.enabled` | Enable ingress controller resource | `false` | | `ingress.pathType` | Ingress pathType for Kubernetes 1.18 and above | `ImplementationSpecific` | | `ingress.annotations` | Ingress annotations | `{}` | diff --git a/src/chartmuseum/templates/deployment.yaml b/src/chartmuseum/templates/deployment.yaml index 336c770..19da0e7 100644 --- a/src/chartmuseum/templates/deployment.yaml +++ b/src/chartmuseum/templates/deployment.yaml @@ -27,6 +27,9 @@ spec: {{- end }} labels: {{- include "chartmuseum.selectorLabels" . | nindent 8 }} + {{- if .Values.podLabels }} + {{- toYaml .Values.podLabels | nindent 8 }} + {{- end }} spec: {{- if .Values.priorityClassName }} priorityClassName: "{{ .Values.priorityClassName }}" diff --git a/src/chartmuseum/values.yaml b/src/chartmuseum/values.yaml index ee4dcd8..484c5dd 100644 --- a/src/chartmuseum/values.yaml +++ b/src/chartmuseum/values.yaml @@ -139,6 +139,11 @@ deployment: podAnnotations: {} # iam.amazonaws.com/role: role-arn +## Pod labels +## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ +podLabels: {} + # name: value + service: servicename: type: ClusterIP