From e7b4ead2824b0c7e7cdfedefa1e5171d3e4ec25c Mon Sep 17 00:00:00 2001 From: Bhavitha <106284071+bhavi-koduru@users.noreply.github.com> Date: Sat, 14 Dec 2024 13:55:24 -0800 Subject: [PATCH] use protobuf content type instead of json for k8s client (#484) --- main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.go b/main.go index c11b39c7..67d17a80 100644 --- a/main.go +++ b/main.go @@ -276,6 +276,8 @@ func main() { // add root health ping on manager in general healthzHandler.AddControllerHealthChecker("health-root-manager-ping", rcHealthz.SimplePing("root manager", setupLog)) + kubeConfig.AcceptContentTypes = "application/vnd.kubernetes.protobuf,application/json" + kubeConfig.ContentType = "application/vnd.kubernetes.protobuf" clientSet, err := kubernetes.NewForConfig(kubeConfig) if err != nil { setupLog.Error(err, "failed to create client set")