From 3abc9da40ec004d301b25b399d6c24b069c88d58 Mon Sep 17 00:00:00 2001 From: Andrii Chubatiuk Date: Thu, 19 Sep 2024 07:20:36 +0300 Subject: [PATCH] fixed typo --- charts/victoria-metrics-operator/templates/service.yaml | 3 ++- charts/victoria-metrics-operator/templates/webhook.yaml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/charts/victoria-metrics-operator/templates/service.yaml b/charts/victoria-metrics-operator/templates/service.yaml index f8ef95f16..759245e4c 100644 --- a/charts/victoria-metrics-operator/templates/service.yaml +++ b/charts/victoria-metrics-operator/templates/service.yaml @@ -39,6 +39,7 @@ spec: port: {{ .Values.service.servicePort }} targetPort: http protocol: TCP - - name: {{ .Values.service.webhookPort }} + - name: webhook + port: {{ .Values.service.webhookPort }} targetPort: webhook selector: {{ include "vm-operator.selectorLabels" . | nindent 4 }} diff --git a/charts/victoria-metrics-operator/templates/webhook.yaml b/charts/victoria-metrics-operator/templates/webhook.yaml index 4bd4506fa..d5195e455 100644 --- a/charts/victoria-metrics-operator/templates/webhook.yaml +++ b/charts/victoria-metrics-operator/templates/webhook.yaml @@ -20,7 +20,7 @@ webhooks: namespace: {{ include "vm.namespace" $ }} name: {{ include "vm-operator.fullname" $ }} path: /validate-operator-victoriametrics-com-v1beta1-{{ $name }} - port: 9443 + port: {{ .Values.service.webhookPort }} {{- if not $.Values.admissionWebhooks.certManager.enabled }} caBundle: {{ $tls.caCert }} {{- end }}