Skip to content

Commit 269b8a2

Browse files
committed
capi: replace deprecated --metrics-bind-addr arg
As the controllers' logs say, the arg has been replaced by `--diagnostics-address`: ``` Flag --metrics-bind-addr has been deprecated, Please use --diagnostics-address instead. To continue to servemetrics via http and without authentication/authorization set --insecure-diagnostics as well. ```
1 parent 30ae420 commit 269b8a2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pkg/clusterapi/system.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ func (c *system) Run(ctx context.Context, installConfig *installconfig.InstallCo
110110
Components: []string{c.componentDir + "/core-components.yaml"},
111111
Args: []string{
112112
"-v=2",
113-
"--metrics-bind-addr=0",
113+
"--diagnostics-address=0",
114114
"--health-addr={{suggestHealthHostPort}}",
115115
"--webhook-port={{.WebhookPort}}",
116116
"--webhook-cert-dir={{.WebhookCertDir}}",
@@ -127,7 +127,7 @@ func (c *system) Run(ctx context.Context, installConfig *installconfig.InstallCo
127127
&AWS,
128128
[]string{
129129
"-v=4",
130-
"--metrics-bind-addr=0",
130+
"--diagnostics-address=0",
131131
"--health-addr={{suggestHealthHostPort}}",
132132
"--webhook-port={{.WebhookPort}}",
133133
"--webhook-cert-dir={{.WebhookCertDir}}",
@@ -147,7 +147,7 @@ func (c *system) Run(ctx context.Context, installConfig *installconfig.InstallCo
147147
&Azure,
148148
[]string{
149149
"-v=2",
150-
"--metrics-bind-addr=0",
150+
"--diagnostics-address=0",
151151
"--health-addr={{suggestHealthHostPort}}",
152152
"--webhook-port={{.WebhookPort}}",
153153
"--webhook-cert-dir={{.WebhookCertDir}}",
@@ -196,7 +196,7 @@ func (c *system) Run(ctx context.Context, installConfig *installconfig.InstallCo
196196
&GCP,
197197
[]string{
198198
"-v=2",
199-
"--metrics-bind-addr=0",
199+
"--diagnostics-address=0",
200200
"--health-addr={{suggestHealthHostPort}}",
201201
"--webhook-port={{.WebhookPort}}",
202202
"--webhook-cert-dir={{.WebhookCertDir}}",
@@ -214,7 +214,7 @@ func (c *system) Run(ctx context.Context, installConfig *installconfig.InstallCo
214214
&OpenStack,
215215
[]string{
216216
"-v=2",
217-
"--metrics-bind-addr=0",
217+
"--diagnostics-address=0",
218218
"--health-addr={{suggestHealthHostPort}}",
219219
"--webhook-port={{.WebhookPort}}",
220220
"--webhook-cert-dir={{.WebhookCertDir}}",
@@ -230,7 +230,7 @@ func (c *system) Run(ctx context.Context, installConfig *installconfig.InstallCo
230230
&VSphere,
231231
[]string{
232232
"-v=2",
233-
"--metrics-bind-addr=0",
233+
"--diagnostics-address=0",
234234
"--health-addr={{suggestHealthHostPort}}",
235235
"--webhook-port={{.WebhookPort}}",
236236
"--webhook-cert-dir={{.WebhookCertDir}}",

0 commit comments

Comments
 (0)