mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-05 03:03:40 +00:00
add utility for binding flags and building api server clients
This commit is contained in:
@@ -19,9 +19,11 @@ package main
|
||||
import (
|
||||
"os"
|
||||
|
||||
"github.com/GoogleCloudPlatform/kubernetes/pkg/client/clientcmd"
|
||||
"github.com/GoogleCloudPlatform/kubernetes/pkg/kubectl/cmd"
|
||||
)
|
||||
|
||||
func main() {
|
||||
cmd.NewFactory().Run(os.Stdout)
|
||||
clientBuilder := clientcmd.NewBuilder(clientcmd.NewPromptingAuthLoader(os.Stdin))
|
||||
cmd.NewFactory(clientBuilder).Run(os.Stdout)
|
||||
}
|
||||
|
Reference in New Issue
Block a user