Merge pull request #171 from ggriffiths/exit_on_csi_connloss
Exit on CSI gRPC conn loss
This commit is contained in:
@@ -137,7 +137,7 @@ func main() {
|
|||||||
snapshotscheme.AddToScheme(scheme.Scheme)
|
snapshotscheme.AddToScheme(scheme.Scheme)
|
||||||
|
|
||||||
// Connect to CSI.
|
// Connect to CSI.
|
||||||
csiConn, err := connection.Connect(*csiAddress)
|
csiConn, err := connection.Connect(*csiAddress, connection.OnConnectionLoss(connection.ExitOnConnectionLoss()))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
klog.Errorf("error connecting to CSI driver: %v", err)
|
klog.Errorf("error connecting to CSI driver: %v", err)
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
|
Reference in New Issue
Block a user