Skip to content

Commit

Permalink
prefer protobuf instead of just json format
Browse files Browse the repository at this point in the history
  • Loading branch information
andyxning committed Jun 8, 2018
1 parent 41a68da commit dc88f1d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ func createKubeClient(apiserver string, kubeconfig string) (clientset.Interface,
return nil, err
}

config.AcceptContentTypes = "application/vnd.kubernetes.protobuf,application/json"

kubeClient, err := clientset.NewForConfig(config)
if err != nil {
return nil, err
Expand Down

0 comments on commit dc88f1d

Please sign in to comment.