Skip to content

Commit a506190

Browse files
use protobuf content type instead of json for k8s client
1 parent 879e715 commit a506190

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/config/runtime_config.go

+2
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ func BuildRestConfig(rtCfg RuntimeConfig) (*rest.Config, error) {
108108
return nil, err
109109
}
110110

111+
restCFG.AcceptContentTypes = "application/vnd.kubernetes.protobuf,application/json"
112+
restCFG.ContentType = "application/vnd.kubernetes.protobuf"
111113
restCFG.QPS = defaultQPS
112114
restCFG.Burst = defaultBurst
113115
return restCFG, nil

0 commit comments

Comments
 (0)