Skip to content

Commit

Permalink
Merge pull request kubernetes-csi#182 from jsafrane/die-on-connection…
Browse files Browse the repository at this point in the history
…-loss

Exit on connection loss
  • Loading branch information
k8s-ci-robot authored Sep 17, 2019
2 parents 88483a5 + ee70752 commit 9f5902f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/csi-attacher/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func main() {
factory := informers.NewSharedInformerFactory(clientset, *resync)
var handler controller.Handler
// Connect to CSI.
csiConn, err := connection.Connect(*csiAddress)
csiConn, err := connection.Connect(*csiAddress, connection.OnConnectionLoss(connection.ExitOnConnectionLoss()))
if err != nil {
klog.Error(err.Error())
os.Exit(1)
Expand Down

0 comments on commit 9f5902f

Please sign in to comment.