Skip to content

Commit

Permalink
Use protobuf encoding for core K8s APIs in secrets-store-csi-driver (#…
Browse files Browse the repository at this point in the history
…455)

Co-authored-by: Abhijeet Dargude <[email protected]>
  • Loading branch information
tosi3k and dargudear-google authored Sep 19, 2024
1 parent ccad306 commit c4e5c42
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ import (
"google.golang.org/api/option"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/rest"
"k8s.io/client-go/tools/clientcmd"
Expand Down Expand Up @@ -101,6 +102,7 @@ func main() {
klog.ErrorS(err, "failed to read kubeconfig")
klog.Fatal("failed to read kubeconfig")
}
rc.ContentType = runtime.ContentTypeProtobuf

clientset, err := kubernetes.NewForConfig(rc)
if err != nil {
Expand Down

0 comments on commit c4e5c42

Please sign in to comment.