Skip to content

Commit c321331

Browse files
authored
Merge pull request #4093 from RiskyAdventure/protobuf
Feat(performance): Use protobuf as default type instead of json
2 parents 9903901 + 53e7a32 commit c321331

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/config/runtime_config.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ func BuildRestConfig(rtCfg RuntimeConfig) (*rest.Config, error) {
108108
return nil, err
109109
}
110110

111+
restCFG.AcceptContentTypes = "application/vnd.kubernetes.protobuf,application/json"
111112
restCFG.QPS = defaultQPS
112113
restCFG.Burst = defaultBurst
113114
return restCFG, nil

0 commit comments

Comments
 (0)