From e01b51dfb23e3aa32040096b5a47feea98dec3e3 Mon Sep 17 00:00:00 2001 From: Paul Miller Date: Fri, 18 Oct 2024 18:09:44 +0000 Subject: [PATCH] why not proto --- npm/cmd/start_server.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/npm/cmd/start_server.go b/npm/cmd/start_server.go index 6137902d30..d8ac7e1b68 100644 --- a/npm/cmd/start_server.go +++ b/npm/cmd/start_server.go @@ -81,6 +81,9 @@ func startControlplane(config npmconfig.Config, flags npmconfig.Flags) error { } } + k8sConfig.AcceptContentTypes = "application/vnd.kubernetes.protobuf,application/json" + k8sConfig.ContentType = "application/vnd.kubernetes.protobuf" + // Creates the clientset clientset, err := kubernetes.NewForConfig(k8sConfig) if err != nil {