diff --git a/cmd/csi-addons/main.go b/cmd/csi-addons/main.go index c2a3e769f..ddc3a11cf 100644 --- a/cmd/csi-addons/main.go +++ b/cmd/csi-addons/main.go @@ -25,6 +25,7 @@ import ( "google.golang.org/grpc" "google.golang.org/grpc/credentials/insecure" + "k8s.io/apimachinery/pkg/runtime" "k8s.io/client-go/kubernetes" "k8s.io/client-go/rest" ) @@ -122,6 +123,8 @@ func getKubernetesClient() *kubernetes.Clientset { panic(err.Error()) } + config.ContentType = runtime.ContentTypeProtobuf + clientset, err := kubernetes.NewForConfig(config) if err != nil { panic(err.Error())