Skip to content

Commit

Permalink
use protobuf content type instead of json for k8s client (aws#468)
Browse files Browse the repository at this point in the history
  • Loading branch information
bhavi-koduru authored Sep 16, 2024
1 parent ef7b2b5 commit dd3564c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit dd3564c

Please sign in to comment.