Skip to content

Commit 5e7ccb5

Browse files
authored
Merge pull request #3954 from camilamacedo86/small-typo
🐛 fix typo issue in the flag description
2 parents e3331b2 + 3285bfe commit 5e7ccb5

File tree

8 files changed

+8
-8
lines changed
  • docs/book/src
    • cronjob-tutorial/testdata/project/cmd
    • getting-started/testdata/project/cmd
  • pkg/plugins/golang/v4/scaffolds/internal/templates
  • testdata
    • project-v4/cmd
    • project-v4-multigroup/cmd
    • project-v4-multigroup-with-deploy-image/cmd
    • project-v4-with-deploy-image/cmd
    • project-v4-with-grafana/cmd

8 files changed

+8
-8
lines changed

docs/book/src/cronjob-tutorial/testdata/project/cmd/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ func main() {
7777
var secureMetrics bool
7878
var enableHTTP2 bool
7979
flag.StringVar(&metricsAddr, "metrics-bind-address", "0", "The address the metric endpoint binds to. "+
80-
"Use the port :8080. If not set, it will be '0 in order to disable the metrics server")
80+
"Use the port :8080. If not set, it will be 0 in order to disable the metrics server")
8181
flag.StringVar(&probeAddr, "health-probe-bind-address", ":8081", "The address the probe endpoint binds to.")
8282
flag.BoolVar(&enableLeaderElection, "leader-elect", false,
8383
"Enable leader election for controller manager. "+

docs/book/src/getting-started/testdata/project/cmd/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func main() {
5858
var secureMetrics bool
5959
var enableHTTP2 bool
6060
flag.StringVar(&metricsAddr, "metrics-bind-address", "0", "The address the metric endpoint binds to. "+
61-
"Use the port :8080. If not set, it will be '0 in order to disable the metrics server")
61+
"Use the port :8080. If not set, it will be 0 in order to disable the metrics server")
6262
flag.StringVar(&probeAddr, "health-probe-bind-address", ":8081", "The address the probe endpoint binds to.")
6363
flag.BoolVar(&enableLeaderElection, "leader-elect", false,
6464
"Enable leader election for controller manager. "+

pkg/plugins/golang/v4/scaffolds/internal/templates/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ func main() {
223223
var secureMetrics bool
224224
var enableHTTP2 bool
225225
flag.StringVar(&metricsAddr, "metrics-bind-address", "0", "The address the metric endpoint binds to. " +
226-
"Use the port :8080. If not set, it will be '0 in order to disable the metrics server")
226+
"Use the port :8080. If not set, it will be 0 in order to disable the metrics server")
227227
flag.StringVar(&probeAddr, "health-probe-bind-address", ":8081", "The address the probe endpoint binds to.")
228228
flag.BoolVar(&enableLeaderElection, "leader-elect", false,
229229
"Enable leader election for controller manager. " +

testdata/project-v4-multigroup-with-deploy-image/cmd/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ func main() {
8383
var secureMetrics bool
8484
var enableHTTP2 bool
8585
flag.StringVar(&metricsAddr, "metrics-bind-address", "0", "The address the metric endpoint binds to. "+
86-
"Use the port :8080. If not set, it will be '0 in order to disable the metrics server")
86+
"Use the port :8080. If not set, it will be 0 in order to disable the metrics server")
8787
flag.StringVar(&probeAddr, "health-probe-bind-address", ":8081", "The address the probe endpoint binds to.")
8888
flag.BoolVar(&enableLeaderElection, "leader-elect", false,
8989
"Enable leader election for controller manager. "+

testdata/project-v4-multigroup/cmd/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ func main() {
8383
var secureMetrics bool
8484
var enableHTTP2 bool
8585
flag.StringVar(&metricsAddr, "metrics-bind-address", "0", "The address the metric endpoint binds to. "+
86-
"Use the port :8080. If not set, it will be '0 in order to disable the metrics server")
86+
"Use the port :8080. If not set, it will be 0 in order to disable the metrics server")
8787
flag.StringVar(&probeAddr, "health-probe-bind-address", ":8081", "The address the probe endpoint binds to.")
8888
flag.BoolVar(&enableLeaderElection, "leader-elect", false,
8989
"Enable leader election for controller manager. "+

testdata/project-v4-with-deploy-image/cmd/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func main() {
5858
var secureMetrics bool
5959
var enableHTTP2 bool
6060
flag.StringVar(&metricsAddr, "metrics-bind-address", "0", "The address the metric endpoint binds to. "+
61-
"Use the port :8080. If not set, it will be '0 in order to disable the metrics server")
61+
"Use the port :8080. If not set, it will be 0 in order to disable the metrics server")
6262
flag.StringVar(&probeAddr, "health-probe-bind-address", ":8081", "The address the probe endpoint binds to.")
6363
flag.BoolVar(&enableLeaderElection, "leader-elect", false,
6464
"Enable leader election for controller manager. "+

testdata/project-v4-with-grafana/cmd/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func main() {
5454
var secureMetrics bool
5555
var enableHTTP2 bool
5656
flag.StringVar(&metricsAddr, "metrics-bind-address", "0", "The address the metric endpoint binds to. "+
57-
"Use the port :8080. If not set, it will be '0 in order to disable the metrics server")
57+
"Use the port :8080. If not set, it will be 0 in order to disable the metrics server")
5858
flag.StringVar(&probeAddr, "health-probe-bind-address", ":8081", "The address the probe endpoint binds to.")
5959
flag.BoolVar(&enableLeaderElection, "leader-elect", false,
6060
"Enable leader election for controller manager. "+

testdata/project-v4/cmd/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func main() {
5858
var secureMetrics bool
5959
var enableHTTP2 bool
6060
flag.StringVar(&metricsAddr, "metrics-bind-address", "0", "The address the metric endpoint binds to. "+
61-
"Use the port :8080. If not set, it will be '0 in order to disable the metrics server")
61+
"Use the port :8080. If not set, it will be 0 in order to disable the metrics server")
6262
flag.StringVar(&probeAddr, "health-probe-bind-address", ":8081", "The address the probe endpoint binds to.")
6363
flag.BoolVar(&enableLeaderElection, "leader-elect", false,
6464
"Enable leader election for controller manager. "+

0 commit comments

Comments
 (0)