diff --git a/pkg/config/runtime_config.go b/pkg/config/runtime_config.go index a7559b5..2316dc5 100644 --- a/pkg/config/runtime_config.go +++ b/pkg/config/runtime_config.go @@ -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