File tree Expand file tree Collapse file tree 3 files changed +10
-9
lines changed
hack/charts/cluster-api-operator Expand file tree Collapse file tree 3 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 65
65
{{- if .Values.healthAddr }}
66
66
- --health-addr={{ .Values.healthAddr }}
67
67
{{- end }}
68
- {{- if .Values.metricsBindAddr }}
69
- - --metrics-bind-addr={{ .Values.metricsBindAddr }}
70
- {{- end }}
71
68
{{- if .Values.diagnosticsAddress }}
72
69
- --diagnostics-address={{ .Values.diagnosticsAddress }}
73
70
{{- end }}
@@ -100,9 +97,15 @@ spec:
100
97
- containerPort : 9443
101
98
name : webhook-server
102
99
protocol : TCP
103
- - containerPort : {{ ( split ":" $.Values.metricsBindAddr)._1 | int }}
100
+ {{- if $.Values.diagnosticsAddress }}
101
+ {{- $diagnosticsPort := $.Values.diagnosticsAddress }}
102
+ {{- if contains ":" $diagnosticsPort -}}
103
+ {{ $diagnosticsPort = ( split ":" $.Values.diagnosticsAddress)._1 | int }}
104
+ {{- end }}
105
+ - containerPort : {{ $diagnosticsPort | int }}
104
106
name : metrics
105
107
protocol : TCP
108
+ {{- end }}
106
109
{{- with .Values.resources.manager }}
107
110
resources :
108
111
{{- toYaml . | nindent 12 }}
Original file line number Diff line number Diff line change 24
24
env :
25
25
manager : []
26
26
healthAddr : " :8081"
27
- metricsBindAddr : " 127.0.0.1:8080"
28
- diagnosticsAddress : " 8443"
27
+ diagnosticsAddress : " :8443"
29
28
insecureDiagnostics : false
30
29
watchConfigSecret : false
31
30
imagePullSecrets : {}
Original file line number Diff line number Diff line change @@ -28387,8 +28387,7 @@ spec:
28387
28387
- args:
28388
28388
- --v=2
28389
28389
- --health-addr=:8081
28390
- - --metrics-bind-addr=127.0.0.1:8080
28391
- - --diagnostics-address=8443
28390
+ - --diagnostics-address=:8443
28392
28391
- --leader-elect=true
28393
28392
command:
28394
28393
- /manager
@@ -28399,7 +28398,7 @@ spec:
28399
28398
- containerPort: 9443
28400
28399
name: webhook-server
28401
28400
protocol: TCP
28402
- - containerPort: 8080
28401
+ - containerPort: 8443
28403
28402
name: metrics
28404
28403
protocol: TCP
28405
28404
resources:
You can’t perform that action at this time.
0 commit comments