Skip to content

Commit

Permalink
Merge pull request #1 from ggriffiths/exit_on_csiconn_loss
Browse files Browse the repository at this point in the history
Exit on CSI gRPC conn loss
  • Loading branch information
ggriffiths authored Sep 16, 2019
2 parents 07a4fd9 + 94c9ac0 commit 8e9fc4e
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 8e9fc4e

Please sign in to comment.