Skip to content

Commit

Permalink
Revert "use protobuf encoding for k8s API"
Browse files Browse the repository at this point in the history
This reverts commit 913c676.
  • Loading branch information
songjiaxun committed Sep 17, 2024
1 parent dee817e commit c3ed40c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion cmd/webhook/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 0 additions & 2 deletions pkg/cloud_provider/clientset/clientset.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit c3ed40c

Please sign in to comment.