Skip to content

Commit 15d9805

Browse files
committed
Use protobuf
1 parent ac99f83 commit 15d9805

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmd/kops/util/factory.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import (
2424
"strings"
2525
"sync"
2626

27+
"k8s.io/apimachinery/pkg/runtime"
2728
"k8s.io/apimachinery/pkg/util/validation/field"
2829
"k8s.io/cli-runtime/pkg/genericclioptions"
2930
"k8s.io/client-go/dynamic"
@@ -200,6 +201,8 @@ func configureRESTConfig(restConfig *rest.Config) {
200201
restConfig.UserAgent = "kops"
201202
restConfig.Burst = 50
202203
restConfig.QPS = 20
204+
restConfig.AcceptContentTypes = runtime.ContentTypeProtobuf
205+
restConfig.ContentType = runtime.ContentTypeProtobuf
203206
}
204207

205208
func (f *Factory) HTTPClient(restConfig *rest.Config) (*http.Client, error) {

0 commit comments

Comments
 (0)