Skip to content

Commit

Permalink
expose diagnostics address port if configured
Browse files Browse the repository at this point in the history
  • Loading branch information
Arakos authored and k8s-infra-cherrypick-robot committed Dec 24, 2024
1 parent 50f583e commit 0bf1d4c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions hack/charts/cluster-api-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,15 @@ spec:
- containerPort: 9443
name: webhook-server
protocol: TCP
{{- if $.Values.diagnosticsAddress }}
{{- $diagnosticsPort := $.Values.diagnosticsAddress }}
{{- if contains ":" $diagnosticsPort -}}
{{ $diagnosticsPort = ( split ":" $.Values.diagnosticsAddress)._1 }}
{{- end }}
- containerPort: {{ $diagnosticsPort | int }}
name: diagnostics
protocol: TCP
{{- end }}
{{- with .Values.resources.manager }}
resources:
{{- toYaml . | nindent 12 }}
Expand Down

0 comments on commit 0bf1d4c

Please sign in to comment.