From 3b6da9c5998d840cb67a885841c0176783a336dd Mon Sep 17 00:00:00 2001 From: Evan Baker Date: Thu, 7 Nov 2024 15:11:12 +0000 Subject: [PATCH] feat: use proto in client-go Signed-off-by: Evan Baker --- cns/service/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cns/service/main.go b/cns/service/main.go index 20050c9a9b..5d0855b395 100644 --- a/cns/service/main.go +++ b/cns/service/main.go @@ -1245,6 +1245,8 @@ func InitializeCRDState(ctx context.Context, httpRestService cns.HTTPService, cn return errors.Wrap(err, "failed to get kubeconfig") } kubeConfig.UserAgent = fmt.Sprintf("azure-cns-%s", version) + kubeConfig.AcceptContentTypes = "application/vnd.kubernetes.protobuf,application/json" + kubeConfig.ContentType = "application/vnd.kubernetes.protobuf" clientset, err := kubernetes.NewForConfig(kubeConfig) if err != nil {