Skip to content

Commit

Permalink
Merge pull request #2138 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 16, 2024
2 parents 6daee0b + 75421fa commit 2b29cb0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/cloud/metadata/k8s.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ func DefaultKubernetesAPIClient(kubeconfig string) KubernetesAPIClient {
}
}
}
config.AcceptContentTypes = "application/vnd.kubernetes.protobuf,application/json"
config.ContentType = "application/vnd.kubernetes.protobuf"
// creates the clientset
clientset, err = kubernetes.NewForConfig(config)
if err != nil {
Expand Down

0 comments on commit 2b29cb0

Please sign in to comment.