Skip to content

Commit dd3564c

Browse files
authored
use protobuf content type instead of json for k8s client (#468)
1 parent ef7b2b5 commit dd3564c

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
@@ -205,6 +205,8 @@ func main() {
205205
kubeConfig.QPS = config.DefaultAPIServerQPS
206206
kubeConfig.Burst = config.DefaultAPIServerBurst
207207
kubeConfig.UserAgent = fmt.Sprintf("%s/%s", ec2API.AppName, version.GitVersion)
208+
kubeConfig.AcceptContentTypes = "application/vnd.kubernetes.protobuf,application/json"
209+
kubeConfig.ContentType = "application/vnd.kubernetes.protobuf"
208210

209211
setupLog.Info("starting the controller with leadership setting",
210212
"leader mode enabled", enableLeaderElection,

0 commit comments

Comments
 (0)