From da0d2fd9c37a74f5d090d99b68b4633fe7038edb Mon Sep 17 00:00:00 2001 From: joker00777 Date: Fri, 30 Sep 2022 16:20:34 +0530 Subject: [PATCH] feat: adding pod labels in webhooks --- charts/lighthouse/templates/webhooks-deployment.yaml | 3 +++ charts/lighthouse/values.yaml | 1 + 2 files changed, 4 insertions(+) diff --git a/charts/lighthouse/templates/webhooks-deployment.yaml b/charts/lighthouse/templates/webhooks-deployment.yaml index ebb979362..6ecda5da2 100644 --- a/charts/lighthouse/templates/webhooks-deployment.yaml +++ b/charts/lighthouse/templates/webhooks-deployment.yaml @@ -19,6 +19,9 @@ spec: metadata: labels: app: {{ template "webhooks.name" . }} +{{- if .Values.webhooks.podLabels }} +{{ toYaml .Values.webhooks.podLabels | indent 8 }} +{{- end }} {{- if or .Values.webhooks.podAnnotations .Values.podAnnotations }} annotations: {{- if .Values.webhooks.podAnnotations }} diff --git a/charts/lighthouse/values.yaml b/charts/lighthouse/values.yaml index c76946e08..05e267c1f 100644 --- a/charts/lighthouse/values.yaml +++ b/charts/lighthouse/values.yaml @@ -125,6 +125,7 @@ webhooks: # webhooks.labels -- allow optional labels to be added to the webhook deployment labels: {} + podLabels: {} # webhooks.podAnnotations -- Annotations applied to the webhooks pods podAnnotations: {}