Skip to content

Commit d4aca3c

Browse files
keep metrics as port name
Co-authored-by: Furkat Gofurov <[email protected]>
1 parent c9bf67e commit d4aca3c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

hack/charts/cluster-api-operator/templates/deployment.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,10 @@ spec:
100100
{{- if $.Values.diagnosticsAddress }}
101101
{{- $diagnosticsPort := $.Values.diagnosticsAddress }}
102102
{{- if contains ":" $diagnosticsPort -}}
103-
{{ $diagnosticsPort = ( split ":" $.Values.diagnosticsAddress)._1 }}
103+
{{ $diagnosticsPort = ( split ":" $.Values.diagnosticsAddress)._1 | int }}
104104
{{- end }}
105105
- containerPort: {{ $diagnosticsPort | int }}
106-
name: diagnostics
106+
name: metrics
107107
protocol: TCP
108108
{{- end }}
109109
{{- with .Values.resources.manager }}

test/e2e/resources/full-chart-install.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28399,7 +28399,7 @@ spec:
2839928399
name: webhook-server
2840028400
protocol: TCP
2840128401
- containerPort: 8443
28402-
name: diagnostics
28402+
name: metrics
2840328403
protocol: TCP
2840428404
resources:
2840528405
limits:

0 commit comments

Comments
 (0)