You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/csi-snapshotter/main.go
+6-2
Original file line number
Diff line number
Diff line change
@@ -52,7 +52,7 @@ const (
52
52
var (
53
53
snapshotter=flag.String("snapshotter", "", "Name of the snapshotter. The snapshotter will only create snapshot content for snapshot that requests a VolumeSnapshotClass with a snapshotter field set equal to this name.")
54
54
kubeconfig=flag.String("kubeconfig", "", "Absolute path to the kubeconfig file. Required only when running out of cluster.")
55
-
connectionTimeout=flag.Duration("connection-timeout", 1*time.Minute, "Timeout for waiting for CSI driver socket.")
55
+
connectionTimeout=flag.Duration("connection-timeout", 0, "The --connection-timeout flag is deprecated")
56
56
csiAddress=flag.String("csi-address", "/run/csi/socket", "Address of the CSI driver socket.")
57
57
createSnapshotContentRetryCount=flag.Int("create-snapshotcontent-retrycount", 5, "Number of retries when we create a snapshot content object for a snapshot.")
58
58
createSnapshotContentInterval=flag.Duration("create-snapshotcontent-interval", 10*time.Second, "Interval between retries when we create a snapshot content object for a snapshot.")
@@ -76,6 +76,10 @@ func main() {
76
76
}
77
77
glog.Infof("Version: %s", version)
78
78
79
+
if*connectionTimeout!=0 {
80
+
glog.Warning("--connection-timeout is deprecated and will have no effect")
81
+
}
82
+
79
83
// Create the client config. Use kubeconfig if given, otherwise assume in-cluster.
0 commit comments