Skip to content

Commit 5578855

Browse files
Merge pull request #8251 from r4f4/capi-metrics-arg-deprec
no-jira: capi: replace deprecated `--metrics-bind-addr` arg
2 parents dd28309 + 269b8a2 commit 5578855

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
@@ -113,7 +113,7 @@ func (c *system) Run(ctx context.Context, installConfig *installconfig.InstallCo
113113
Components: []string{c.componentDir + "/core-components.yaml"},
114114
Args: []string{
115115
"-v=2",
116-
"--metrics-bind-addr=0",
116+
"--diagnostics-address=0",
117117
"--health-addr={{suggestHealthHostPort}}",
118118
"--webhook-port={{.WebhookPort}}",
119119
"--webhook-cert-dir={{.WebhookCertDir}}",
@@ -130,7 +130,7 @@ func (c *system) Run(ctx context.Context, installConfig *installconfig.InstallCo
130130
&AWS,
131131
[]string{
132132
"-v=4",
133-
"--metrics-bind-addr=0",
133+
"--diagnostics-address=0",
134134
"--health-addr={{suggestHealthHostPort}}",
135135
"--webhook-port={{.WebhookPort}}",
136136
"--webhook-cert-dir={{.WebhookCertDir}}",
@@ -150,7 +150,7 @@ func (c *system) Run(ctx context.Context, installConfig *installconfig.InstallCo
150150
&Azure,
151151
[]string{
152152
"-v=2",
153-
"--metrics-bind-addr=0",
153+
"--diagnostics-address=0",
154154
"--health-addr={{suggestHealthHostPort}}",
155155
"--webhook-port={{.WebhookPort}}",
156156
"--webhook-cert-dir={{.WebhookCertDir}}",
@@ -199,7 +199,7 @@ func (c *system) Run(ctx context.Context, installConfig *installconfig.InstallCo
199199
&GCP,
200200
[]string{
201201
"-v=2",
202-
"--metrics-bind-addr=0",
202+
"--diagnostics-address=0",
203203
"--health-addr={{suggestHealthHostPort}}",
204204
"--webhook-port={{.WebhookPort}}",
205205
"--webhook-cert-dir={{.WebhookCertDir}}",
@@ -217,7 +217,7 @@ func (c *system) Run(ctx context.Context, installConfig *installconfig.InstallCo
217217
&OpenStack,
218218
[]string{
219219
"-v=2",
220-
"--metrics-bind-addr=0",
220+
"--diagnostics-address=0",
221221
"--health-addr={{suggestHealthHostPort}}",
222222
"--webhook-port={{.WebhookPort}}",
223223
"--webhook-cert-dir={{.WebhookCertDir}}",
@@ -233,7 +233,7 @@ func (c *system) Run(ctx context.Context, installConfig *installconfig.InstallCo
233233
&VSphere,
234234
[]string{
235235
"-v=2",
236-
"--metrics-bind-addr=0",
236+
"--diagnostics-address=0",
237237
"--health-addr={{suggestHealthHostPort}}",
238238
"--webhook-port={{.WebhookPort}}",
239239
"--webhook-cert-dir={{.WebhookCertDir}}",

0 commit comments

Comments
 (0)