From feee2fd76c0ddd61db7fe5a180adc46c71f45da5 Mon Sep 17 00:00:00 2001 From: mortega Date: Tue, 27 Jul 2021 07:03:16 -0500 Subject: [PATCH] Enabling serviceLabels for webhook service. Signed-off-by: Marco Ortega --- deploy/charts/cert-manager/templates/webhook-service.yaml | 3 +++ deploy/charts/cert-manager/values.yaml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/deploy/charts/cert-manager/templates/webhook-service.yaml b/deploy/charts/cert-manager/templates/webhook-service.yaml index 5cf9efdbe..790afca7c 100644 --- a/deploy/charts/cert-manager/templates/webhook-service.yaml +++ b/deploy/charts/cert-manager/templates/webhook-service.yaml @@ -9,6 +9,9 @@ metadata: app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/component: "webhook" {{- include "labels" . | nindent 4 }} +{{- if .Values.webhook.serviceLabels }} +{{ toYaml .Values.webhook.serviceLabels | indent 4 }} +{{- end }} spec: type: {{ .Values.webhook.serviceType }} {{- if .Values.webhook.loadBalancerIP }} diff --git a/deploy/charts/cert-manager/values.yaml b/deploy/charts/cert-manager/values.yaml index b24c6371f..a1cdebd5c 100644 --- a/deploy/charts/cert-manager/values.yaml +++ b/deploy/charts/cert-manager/values.yaml @@ -268,6 +268,9 @@ webhook: # Optional additional labels to add to the Webhook Pods podLabels: {} + # Optional additional labels to add to the Webhook Service + serviceLabels: {} + image: repository: quay.io/jetstack/cert-manager-webhook # You can manage a registry with