Skip to content

Commit 26d5a05

Browse files
committed
Use protobuf encoding for core K8s APIs in external-resizer
1 parent 7461a0d commit 26d5a05

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmd/csi-resizer/main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ import (
4242
"github.com/kubernetes-csi/external-resizer/pkg/util"
4343
csitrans "k8s.io/csi-translation-lib"
4444

45+
"k8s.io/apimachinery/pkg/runtime"
4546
"k8s.io/apimachinery/pkg/util/wait"
4647
utilfeature "k8s.io/apiserver/pkg/util/feature"
4748
"k8s.io/client-go/informers"
@@ -136,6 +137,7 @@ func main() {
136137

137138
config.QPS = float32(*kubeAPIQPS)
138139
config.Burst = *kubeAPIBurst
140+
config.ContentType = runtime.ContentTypeProtobuf
139141

140142
kubeClient, err := kubernetes.NewForConfig(config)
141143
if err != nil {

0 commit comments

Comments
 (0)