Skip to content

Commit

Permalink
Merge pull request #55 from ggriffiths/exit_on_csigrpc_connloss
Browse files Browse the repository at this point in the history
Exit on CSI gRPC conn loss
  • Loading branch information
k8s-ci-robot authored Sep 23, 2019
2 parents 956291a + 461da99 commit e964992
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/csi/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ type Client interface {

// New creates a new CSI client.
func New(address string, timeout time.Duration) (Client, error) {
conn, err := connection.Connect(address)
conn, err := connection.Connect(address, connection.OnConnectionLoss(connection.ExitOnConnectionLoss()))
if err != nil {
return nil, fmt.Errorf("failed to connect to CSI driver: %v", err)
}
Expand Down

0 comments on commit e964992

Please sign in to comment.