From 94c9ac0885c93c70c3665a5e50db94fdce4149e3 Mon Sep 17 00:00:00 2001 From: Grant Griffiths Date: Mon, 16 Sep 2019 14:30:32 -0700 Subject: [PATCH] Exit on CSI gRPC conn loss Signed-off-by: Grant Griffiths --- pkg/csi/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/csi/client.go b/pkg/csi/client.go index 07b87b0dc..96c58c175 100644 --- a/pkg/csi/client.go +++ b/pkg/csi/client.go @@ -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) }