refactor: simplify imports and clean up code formatting in main.go
This commit is contained in:
parent
bf80b65873
commit
8bdccdc8c7
@ -2,8 +2,6 @@ package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"encoding/base64"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"log"
|
||||
"net/http"
|
||||
@ -53,10 +51,10 @@ and obtains the necessary credentials to participate in the cluster.`,
|
||||
nodeName string
|
||||
|
||||
// Join command flags
|
||||
leaderAPI string
|
||||
advertiseAddr string
|
||||
leaderCACert string
|
||||
etcdPeer bool
|
||||
leaderAPI string
|
||||
advertiseAddr string
|
||||
leaderCACert string
|
||||
etcdPeer bool
|
||||
)
|
||||
|
||||
const (
|
||||
@ -272,7 +270,7 @@ func runInit(cmd *cobra.Command, args []string) {
|
||||
|
||||
log.Printf("API server started on port %d with mTLS", parsedClusterConfig.Spec.ApiPort)
|
||||
log.Printf("Verification: API server requires client certificates signed by the cluster CA")
|
||||
log.Printf("Test with: curl --cacert %s --cert <client_cert> --key <client_key> https://localhost:%d/internal/v1alpha1/join",
|
||||
log.Printf("Test with: curl --cacert %s --cert <client_cert> --key <client_key> https://localhost:%d/internal/v1alpha1/join",
|
||||
caCertPath, parsedClusterConfig.Spec.ApiPort)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user