Skip to content

Commit

Permalink
fix(grpc): use NewClient() instead of deprecated grpc.Dial()
Browse files Browse the repository at this point in the history
  • Loading branch information
FalcoSuessgott committed Jul 6, 2024
1 parent 25e0e5c commit 359c3bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
builds:
-
env:
- CGO_ENABLED=0
- CGO_ENABLED=0
binary: vault-kubernetes-kms
goos:
- linux
Expand Down
4 changes: 2 additions & 2 deletions pkg/plugin/plugin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ func TestVaultSuite(t *testing.T) {
}
}

func (p *PluginSuite) SetupAllSuitr() {
func (p *PluginSuite) SetupAllSuite() {
// create unix socket
_, err := socket.NewSocket(socketPath)
if err != nil {
p.T().Fatal("cannot create socket: %w", err)
}

// grpc connection with socket
conn, err := grpc.Dial(
conn, err := grpc.NewClient(
socketPath,
grpc.WithTransportCredentials(insecure.NewCredentials()),
grpc.WithContextDialer(func(ctx context.Context, addr string) (net.Conn, error) {
Expand Down

0 comments on commit 359c3bc

Please sign in to comment.