From d4aca3c4816d52e65574e9b582fc02dd7471bb4c Mon Sep 17 00:00:00 2001 From: Arakos Date: Fri, 20 Dec 2024 14:21:44 +0100 Subject: [PATCH] keep metrics as port name Co-authored-by: Furkat Gofurov --- hack/charts/cluster-api-operator/templates/deployment.yaml | 4 ++-- test/e2e/resources/full-chart-install.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hack/charts/cluster-api-operator/templates/deployment.yaml b/hack/charts/cluster-api-operator/templates/deployment.yaml index 299ac332..a0c31477 100644 --- a/hack/charts/cluster-api-operator/templates/deployment.yaml +++ b/hack/charts/cluster-api-operator/templates/deployment.yaml @@ -100,10 +100,10 @@ spec: {{- if $.Values.diagnosticsAddress }} {{- $diagnosticsPort := $.Values.diagnosticsAddress }} {{- if contains ":" $diagnosticsPort -}} - {{ $diagnosticsPort = ( split ":" $.Values.diagnosticsAddress)._1 }} + {{ $diagnosticsPort = ( split ":" $.Values.diagnosticsAddress)._1 | int }} {{- end }} - containerPort: {{ $diagnosticsPort | int }} - name: diagnostics + name: metrics protocol: TCP {{- end }} {{- with .Values.resources.manager }} diff --git a/test/e2e/resources/full-chart-install.yaml b/test/e2e/resources/full-chart-install.yaml index af8365de..37c0d9b4 100644 --- a/test/e2e/resources/full-chart-install.yaml +++ b/test/e2e/resources/full-chart-install.yaml @@ -28399,7 +28399,7 @@ spec: name: webhook-server protocol: TCP - containerPort: 8443 - name: diagnostics + name: metrics protocol: TCP resources: limits: