Merge pull request #171 from ggriffiths/exit_on_csi_connloss

Exit on CSI gRPC conn loss
This commit is contained in:
Kubernetes Prow Robot
2019-10-01 14:37:08 -07:00
committed by GitHub

View File

@@ -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)