From c3ed40c2538785f8681b427226311bb1660553df Mon Sep 17 00:00:00 2001 From: Jiaxun Song Date: Tue, 17 Sep 2024 16:53:17 +0000 Subject: [PATCH] Revert "use protobuf encoding for k8s API" This reverts commit 913c676e17c99621052a61589ba8494029f04f6a. --- cmd/webhook/main.go | 1 - pkg/cloud_provider/clientset/clientset.go | 2 -- 2 files changed, 3 deletions(-) diff --git a/cmd/webhook/main.go b/cmd/webhook/main.go index 17dc11d27..cca808fff 100644 --- a/cmd/webhook/main.go +++ b/cmd/webhook/main.go @@ -75,7 +75,6 @@ func main() { // Load config for manager, informers, listers kubeConfig := config.GetConfigOrDie() - kubeConfig.ContentType = runtime.ContentTypeProtobuf // Setup client client, err := kubernetes.NewForConfig(kubeConfig) diff --git a/pkg/cloud_provider/clientset/clientset.go b/pkg/cloud_provider/clientset/clientset.go index 37d6834a2..c1c63e8da 100644 --- a/pkg/cloud_provider/clientset/clientset.go +++ b/pkg/cloud_provider/clientset/clientset.go @@ -26,7 +26,6 @@ import ( authenticationv1 "k8s.io/api/authentication/v1" corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/runtime" "k8s.io/client-go/informers" "k8s.io/client-go/kubernetes" listersv1 "k8s.io/client-go/listers/core/v1" @@ -66,7 +65,6 @@ func New(kubeconfigPath string, informerResyncDurationSec int) (Interface, error if err != nil { return nil, fmt.Errorf("failed to read kubeconfig: %w", err) } - rc.ContentType = runtime.ContentTypeProtobuf clientset, err := kubernetes.NewForConfig(rc) if err != nil {