Add UserAgent to client-go client config
This commit is contained in:
parent
17cd6b7c8b
commit
c4cb2ee824
@ -54,10 +54,11 @@ func init() {
|
||||
|
||||
// use the current context in kubeconfig
|
||||
config, err := clientcmd.BuildConfigFromFlags("", kubeconfig)
|
||||
config.WarningHandler = rest.NoWarnings{}
|
||||
if err != nil {
|
||||
panic(err.Error())
|
||||
}
|
||||
config.UserAgent = "pspmigrator"
|
||||
config.WarningHandler = rest.NoWarnings{}
|
||||
|
||||
// create the clientset
|
||||
clientset, err = kubernetes.NewForConfig(config)
|
||||
|
Loading…
Reference in New Issue
Block a user