From e0f4c97d6ae697338aa533b3439a9a45dd5c1507 Mon Sep 17 00:00:00 2001 From: Jan Safranek Date: Tue, 3 Jul 2018 14:43:59 +0200 Subject: [PATCH] Increase resync period. 10 minutes is a good start, we can increase it further when attached is more stable. --- cmd/csi-attacher/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/csi-attacher/main.go b/cmd/csi-attacher/main.go index 011c22485..58680f3d4 100644 --- a/cmd/csi-attacher/main.go +++ b/cmd/csi-attacher/main.go @@ -48,7 +48,7 @@ const ( // Command line flags var ( kubeconfig = flag.String("kubeconfig", "", "Absolute path to the kubeconfig file. Required only when running out of cluster.") - resync = flag.Duration("resync", 10*time.Second, "Resync interval of the controller.") + resync = flag.Duration("resync", 10*time.Minute, "Resync interval of the controller.") connectionTimeout = flag.Duration("connection-timeout", 1*time.Minute, "Timeout for waiting for CSI driver socket.") csiAddress = flag.String("csi-address", "/run/csi/socket", "Address of the CSI driver socket.") dummy = flag.Bool("dummy", false, "Run in dummy mode, i.e. not connecting to CSI driver and marking everything as attached. Expected CSI driver name is \"csi/dummy\".")