Skip to content

Commit

Permalink
Merge pull request #1451 from bhavi-koduru/use-protobuf
Browse files Browse the repository at this point in the history
use protobuf content type instead of json for k8s client
  • Loading branch information
k8s-ci-robot authored Sep 24, 2024
2 parents 1e9c794 + f86b236 commit bee4762
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/cloud/k8s_metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ var DefaultKubernetesAPIClient = func() (kubernetes.Interface, error) {
if err != nil {
return nil, err
}
config.AcceptContentTypes = "application/vnd.kubernetes.protobuf,application/json"
config.ContentType = "application/vnd.kubernetes.protobuf"
clientset, err := kubernetes.NewForConfig(config)
if err != nil {
return nil, err
Expand Down

0 comments on commit bee4762

Please sign in to comment.