Skip to content

Commit

Permalink
keep metrics as port name
Browse files Browse the repository at this point in the history
Co-authored-by: Furkat Gofurov <[email protected]>
  • Loading branch information
Arakos and furkatgofurov7 committed Dec 20, 2024
1 parent c9bf67e commit d4aca3c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions hack/charts/cluster-api-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/resources/full-chart-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28399,7 +28399,7 @@ spec:
name: webhook-server
protocol: TCP
- containerPort: 8443
name: diagnostics
name: metrics
protocol: TCP
resources:
limits:
Expand Down

0 comments on commit d4aca3c

Please sign in to comment.