We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 88483a5 + ee70752 commit 9f5902fCopy full SHA for 9f5902f
1 file changed
cmd/csi-attacher/main.go
@@ -105,7 +105,7 @@ func main() {
105
factory := informers.NewSharedInformerFactory(clientset, *resync)
106
var handler controller.Handler
107
// Connect to CSI.
108
- csiConn, err := connection.Connect(*csiAddress)
+ csiConn, err := connection.Connect(*csiAddress, connection.OnConnectionLoss(connection.ExitOnConnectionLoss()))
109
if err != nil {
110
klog.Error(err.Error())
111
os.Exit(1)
0 commit comments