From 1bb6eb6f742369b270ae6dc25807dcdd2e0ffa54 Mon Sep 17 00:00:00 2001 From: Grant Griffiths Date: Mon, 16 Sep 2019 14:22:45 -0700 Subject: [PATCH] Exit on CSI gRPC conn loss Signed-off-by: Grant Griffiths --- cmd/csi-snapshotter/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/csi-snapshotter/main.go b/cmd/csi-snapshotter/main.go index df1b1166..6950215f 100644 --- a/cmd/csi-snapshotter/main.go +++ b/cmd/csi-snapshotter/main.go @@ -137,7 +137,7 @@ func main() { snapshotscheme.AddToScheme(scheme.Scheme) // Connect to CSI. - csiConn, err := connection.Connect(*csiAddress) + csiConn, err := connection.Connect(*csiAddress, connection.OnConnectionLoss(connection.ExitOnConnectionLoss())) if err != nil { klog.Errorf("error connecting to CSI driver: %v", err) os.Exit(1)