Skip to content

Commit

Permalink
Merge pull request kubernetes-csi#171 from ggriffiths/exit_on_csi_con…
Browse files Browse the repository at this point in the history
…nloss

Exit on CSI gRPC conn loss
  • Loading branch information
k8s-ci-robot authored Oct 1, 2019
2 parents 8dc67ee + 1bb6eb6 commit 1a2decd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/csi-snapshotter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1a2decd

Please sign in to comment.