Skip to content

Commit

Permalink
use protobuf content type instead of json for k8s client
Browse files Browse the repository at this point in the history
  • Loading branch information
bhavi-koduru committed Sep 10, 2024
1 parent 2958368 commit df9c98e
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 df9c98e

Please sign in to comment.