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 23, 2024
1 parent ece7a09 commit e2703c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/config/runtime_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ func BuildRestConfig(rtCfg RuntimeConfig) (*rest.Config, error) {
if err != nil {
return nil, err
}
restCFG.AcceptContentTypes = "application/vnd.kubernetes.protobuf,application/json"
restCFG.ContentType = "application/vnd.kubernetes.protobuf"
restCFG.QPS = defaultQPS
restCFG.Burst = defaultBurst
return restCFG, nil
Expand Down

0 comments on commit e2703c7

Please sign in to comment.