Skip to content

Commit 5efb1fe

Browse files
rbtrsivakami
authored andcommitted
feat: use proto in CNS usage of client-go (#3131)
feat: use proto in client-go Signed-off-by: Evan Baker <[email protected]>
1 parent 029372c commit 5efb1fe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cns/service/main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1245,6 +1245,8 @@ func InitializeCRDState(ctx context.Context, httpRestService cns.HTTPService, cn
12451245
return errors.Wrap(err, "failed to get kubeconfig")
12461246
}
12471247
kubeConfig.UserAgent = fmt.Sprintf("azure-cns-%s", version)
1248+
kubeConfig.AcceptContentTypes = "application/vnd.kubernetes.protobuf,application/json"
1249+
kubeConfig.ContentType = "application/vnd.kubernetes.protobuf"
12481250

12491251
clientset, err := kubernetes.NewForConfig(kubeConfig)
12501252
if err != nil {

0 commit comments

Comments
 (0)