Skip to content

Commit

Permalink
Merge pull request #585 from tosi3k/ea-pb
Browse files Browse the repository at this point in the history
Use protobuf encoding for core K8s APIs in external-attacher
  • Loading branch information
k8s-ci-robot authored Sep 16, 2024
2 parents 6ab8d67 + 93aa042 commit 8e7b49f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/csi-attacher/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import (
"os"
"time"

"k8s.io/apimachinery/pkg/runtime"
"k8s.io/client-go/informers"
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/rest"
Expand Down Expand Up @@ -125,6 +126,7 @@ func main() {
}
config.QPS = (float32)(*kubeAPIQPS)
config.Burst = *kubeAPIBurst
config.ContentType = runtime.ContentTypeProtobuf

if *workerThreads == 0 {
logger.Error(nil, "Option -worker-threads must be greater than zero")
Expand Down

0 comments on commit 8e7b49f

Please sign in to comment.