Skip to content

Commit 357bbd1

Browse files
committed
expose diagnostics address port if configured
1 parent 05dd214 commit 357bbd1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,15 @@ spec:
9797
- containerPort: 9443
9898
name: webhook-server
9999
protocol: TCP
100+
{{- if $.Values.diagnosticsAddress }}
101+
{{- $diagnosticsPort := $.Values.diagnosticsAddress }}
102+
{{- if contains ":" $diagnosticsPort -}}
103+
{{ $diagnosticsPort = ( split ":" $.Values.diagnosticsAddress)._1 }}
104+
{{- end }}
105+
- containerPort: {{ $diagnosticsPort | int }}
106+
name: diagnostics
107+
protocol: TCP
108+
{{- end }}
100109
{{- with .Values.resources.manager }}
101110
resources:
102111
{{- toYaml . | nindent 12 }}

0 commit comments

Comments
 (0)