Skip to content

Commit

Permalink
Fix flag name
Browse files Browse the repository at this point in the history
  • Loading branch information
mmontes11 committed Aug 25, 2024
1 parent 2ac0251 commit 609e707
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/kubeadm-join-config/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func main() {
flag.StringVar(&configPath, "config-path", "",
"Path where the join configuration will be written. For example: config/kubeadm-join.yaml."+
"If not provided, stdout if used.")
flag.StringVar(&apiServerEndpoint, "api-server-endoint", "",
flag.StringVar(&apiServerEndpoint, "api-server-endpoint", "",
"API server endpoint used to bootstrap the Node. For example: 10.0.0.20:6443.")
flag.StringVar(&token, "token", "", "Token used to bootstrap the Node.")
flag.StringVar(&caCertHash, "ca-cert-hash", "", "CA certificate hash used to bootstrap the Node.")
Expand All @@ -32,7 +32,7 @@ func main() {
flag.Parse()

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

Expand Down

0 comments on commit 609e707

Please sign in to comment.