Skip to content

Commit 609e707

Browse files
committed
Fix flag name
1 parent 2ac0251 commit 609e707

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/kubeadm-join-config/main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ func main() {
2222
flag.StringVar(&configPath, "config-path", "",
2323
"Path where the join configuration will be written. For example: config/kubeadm-join.yaml."+
2424
"If not provided, stdout if used.")
25-
flag.StringVar(&apiServerEndpoint, "api-server-endoint", "",
25+
flag.StringVar(&apiServerEndpoint, "api-server-endpoint", "",
2626
"API server endpoint used to bootstrap the Node. For example: 10.0.0.20:6443.")
2727
flag.StringVar(&token, "token", "", "Token used to bootstrap the Node.")
2828
flag.StringVar(&caCertHash, "ca-cert-hash", "", "CA certificate hash used to bootstrap the Node.")
@@ -32,7 +32,7 @@ func main() {
3232
flag.Parse()
3333

3434
if apiServerEndpoint == "" || token == "" || caCertHash == "" {
35-
fmt.Println("api-server-endoint, token and ca-cert-hash flags are mandatory.")
35+
fmt.Println("api-server-endpoint, token and ca-cert-hash flags are mandatory.")
3636
os.Exit(1)
3737
}
3838

0 commit comments

Comments
 (0)