Skip to content

Commit e7b4ead

Browse files
bhavi-koduruyash97
authored andcommitted
use protobuf content type instead of json for k8s client (#484)
1 parent b5a57f9 commit e7b4ead

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,8 @@ func main() {
276276
// add root health ping on manager in general
277277
healthzHandler.AddControllerHealthChecker("health-root-manager-ping", rcHealthz.SimplePing("root manager", setupLog))
278278

279+
kubeConfig.AcceptContentTypes = "application/vnd.kubernetes.protobuf,application/json"
280+
kubeConfig.ContentType = "application/vnd.kubernetes.protobuf"
279281
clientSet, err := kubernetes.NewForConfig(kubeConfig)
280282
if err != nil {
281283
setupLog.Error(err, "failed to create client set")

0 commit comments

Comments
 (0)