How to enabled Protobuf
for kubernetes client
#5024
Answered
by
shawkins
zwangsheng
asked this question in
Q&A
-
Hi everyone, I want to ask how to enabled kubeConfig, err := clientcmd.BuildConfigFromFlags(s.Master, s.Kubeconfig)
if err != nil {
return nil, err
}
kubeConfig.AcceptContentTypes = strings.Join([]string{runtime.ContentTypeProtobuf, runtime.ContentTypeJSON}, ",")
kubeConfig.ContentType = runtime.ContentTypeProtobuf
client, err := clientset.NewForConfig(restclient.AddUserAgent(kubeConfig, "content-type-example")) But i can't find such like |
Beta Was this translation helpful? Give feedback.
Answered by
shawkins
Apr 14, 2023
Replies: 1 comment
-
Sorry, there is no support for Protobuf. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
zwangsheng
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sorry, there is no support for Protobuf.