Merge pull request #475 from andyxning/enable_protobuf
prefer protobuf instead of just json format
This commit is contained in:
commit
bdcb2eb490
3
main.go
3
main.go
|
|
@ -116,6 +116,9 @@ func createKubeClient(apiserver string, kubeconfig string) (clientset.Interface,
|
|||
return nil, err
|
||||
}
|
||||
|
||||
config.AcceptContentTypes = "application/vnd.kubernetes.protobuf,application/json"
|
||||
config.ContentType = "application/vnd.kubernetes.protobuf"
|
||||
|
||||
kubeClient, err := clientset.NewForConfig(config)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
|
|||
Loading…
Reference in New Issue