Skip to content

Commit ccef526

Browse files
DO NOT MERGE - Turn on protobuf for clients as well
1 parent 7efe03a commit ccef526

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/cmd/util/clientcmd/factory.go

+2
Original file line numberDiff line numberDiff line change
@@ -794,6 +794,8 @@ func (c *clientCache) ClientConfigForVersion(version *unversioned.GroupVersion)
794794
if err != nil {
795795
return nil, err
796796
}
797+
config.ContentConfig.AcceptContentTypes = "application/vnd.kubernetes.protobuf, application/json"
798+
config.ContentConfig.ContentType = "application/vnd.kubernetes.protobuf"
797799
c.defaultConfig = config
798800
}
799801
// TODO: have a better config copy method

0 commit comments

Comments
 (0)