Skip to content

Commit 1bb6eb6

Browse files
committed
Exit on CSI gRPC conn loss
Signed-off-by: Grant Griffiths <[email protected]>
1 parent 8dc67ee commit 1bb6eb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/csi-snapshotter/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ func main() {
137137
snapshotscheme.AddToScheme(scheme.Scheme)
138138

139139
// Connect to CSI.
140-
csiConn, err := connection.Connect(*csiAddress)
140+
csiConn, err := connection.Connect(*csiAddress, connection.OnConnectionLoss(connection.ExitOnConnectionLoss()))
141141
if err != nil {
142142
klog.Errorf("error connecting to CSI driver: %v", err)
143143
os.Exit(1)

0 commit comments

Comments
 (0)