Exit on CSI gRPC conn loss
Signed-off-by: Grant Griffiths <grant@portworx.com>
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user