Skip to content

Commit

Permalink
Merge pull request #205 from red-hat-storage/sync_us--main
Browse files Browse the repository at this point in the history
Syncing latest changes from upstream main for kubernetes-csi-addons
  • Loading branch information
openshift-merge-bot[bot] committed Sep 23, 2024
2 parents e5ccfb2 + b2ef27f commit 433b54d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/csi-addons/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down Expand Up @@ -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())
Expand Down

0 comments on commit 433b54d

Please sign in to comment.