From dd3564c30c5da8233d3ab5737ce331ee2fe0d10d Mon Sep 17 00:00:00 2001 From: Bhavitha <106284071+bhavi-koduru@users.noreply.github.com> Date: Mon, 16 Sep 2024 15:40:29 -0700 Subject: [PATCH] use protobuf content type instead of json for k8s client (#468) --- main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.go b/main.go index 105cea96..cf6f23b6 100644 --- a/main.go +++ b/main.go @@ -205,6 +205,8 @@ func main() { kubeConfig.QPS = config.DefaultAPIServerQPS kubeConfig.Burst = config.DefaultAPIServerBurst kubeConfig.UserAgent = fmt.Sprintf("%s/%s", ec2API.AppName, version.GitVersion) + kubeConfig.AcceptContentTypes = "application/vnd.kubernetes.protobuf,application/json" + kubeConfig.ContentType = "application/vnd.kubernetes.protobuf" setupLog.Info("starting the controller with leadership setting", "leader mode enabled", enableLeaderElection,