Skip to content

Commit 3b6da9c

Browse files
committed
feat: use proto in client-go
Signed-off-by: Evan Baker <[email protected]>
1 parent c053c17 commit 3b6da9c

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)