File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,12 @@ func TestParseEndpoint(t *testing.T) {
63
63
expAddr string
64
64
expErr error
65
65
}{
66
+ {
67
+ name : "valid tcp endpoint" ,
68
+ endpoint : "tcp://localhost:10000" ,
69
+ expScheme : "tcp" ,
70
+ expAddr : "localhost:10000" ,
71
+ },
66
72
{
67
73
name : "valid unix endpoint 1" ,
68
74
endpoint : "unix:///csi/csi.sock" ,
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ import (
28
28
. "github.com/onsi/gomega"
29
29
"google.golang.org/grpc"
30
30
"google.golang.org/grpc/credentials/insecure"
31
+ "google.golang.org/grpc/resolver"
31
32
"k8s.io/apimachinery/pkg/util/wait"
32
33
"k8s.io/klog/v2"
33
34
"sigs.k8s.io/ibm-powervs-block-csi-driver/pkg/driver"
@@ -106,6 +107,7 @@ func verifyRequiredEnvVars(runRemotely bool) {
106
107
107
108
// newCSIClient creates as CSI client
108
109
func newCSIClient () (* CSIClient , error ) {
110
+ resolver .SetDefaultScheme ("passthrough" )
109
111
opts := []grpc.DialOption {
110
112
grpc .WithTransportCredentials (insecure .NewCredentials ()),
111
113
// grpc.WithBlock(),
You can’t perform that action at this time.
0 commit comments