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: README.md
-10
Original file line number
Diff line number
Diff line change
@@ -66,9 +66,6 @@ Note that the external-attacher does not scale with more replicas. Only one exte
66
66
*`--retry-interval-max`: The exponential backoff maximum value. See [CSI error and timeout handling](#csi-error-and-timeout-handling) for details. 5 minutes is used by default.
67
67
68
68
#### Other recognized arguments
69
-
70
-
*`--dummy`: Runs the external-attacher in dummy mode, i.e. without any CSI driver. All volumes are immediately reported as attached / detached as controller-manager requires. This option can be used for debugging of other CSI components such as Kubernetes Attach / Detach controller.
71
-
72
69
*`--kubeconfig <path>`: Path to Kubernetes client configuration that the external-attacher uses to connect to Kubernetes API server. When omitted, default token provided by Kubernetes will be used. This option is useful only when the external-attacher does not run as a Kubernetes pod, e.g. for debugging.
73
70
74
71
*`--resync <duration>`: Internal resync interval when the external-attacher re-evaluates all existing `VolumeAttachment` instances and tries to fulfill them, i.e. attach / detach corresponding volumes. It does not affect re-tries of failed CSI calls! It should be used only when there is a bug in Kubernetes watch logic.
@@ -77,13 +74,6 @@ Note that the external-attacher does not scale with more replicas. Only one exte
77
74
78
75
* All glog / klog arguments are supported, such as `-v <log level>` or `-alsologtostderr`.
79
76
80
-
#### Deprecated arguments
81
-
*`--connection-timeout <duration>`: This option was used to limit establishing connection to CSI driver. Currently, the option does not have any effect and the external-attacher tries to connect to CSI driver socket indefinitely. It is recommended to run ReadinessProbe on the driver to ensure that the driver comes up in reasonable time.
82
-
83
-
*`--leader-election-type`: This option was used to choose which leader election resource type to use. Currently, the option defaults to `configmaps`, but will be removed in the future to only support `leases` based leader election.
84
-
85
-
*`--leader-election-identity <id>`: This option is deprecated and has no effect since external-attacher will now use the pod hostname as the leader election identity
86
-
87
77
### CSI error and timeout handling
88
78
The external-attacher invokes all gRPC calls to CSI driver with timeout provided by `--timeout` command line argument (15 seconds by default).
// Default timeout of short CSI calls like GetPluginInfo
49
47
csiTimeout=time.Second
50
48
51
-
// Name of CSI plugin for dummy operation
52
-
dummyAttacherName="csi/dummy"
53
-
54
49
leaderElectionTypeLeases="leases"
55
50
leaderElectionTypeConfigMaps="configmaps"
56
51
)
57
52
58
53
// Command line flags
59
54
var (
60
-
kubeconfig=flag.String("kubeconfig", "", "Absolute path to the kubeconfig file. Required only when running out of cluster.")
61
-
resync=flag.Duration("resync", 10*time.Minute, "Resync interval of the controller.")
62
-
connectionTimeout=flag.Duration("connection-timeout", 0, "This option is deprecated.")
63
-
csiAddress=flag.String("csi-address", "/run/csi/socket", "Address of the CSI driver socket.")
64
-
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\".")
timeout=flag.Duration("timeout", 15*time.Second, "Timeout for waiting for attaching or detaching the volume.")
67
60
68
61
retryIntervalStart=flag.Duration("retry-interval-start", time.Second, "Initial retry interval of failed create volume or deletion. It doubles with each failure, up to retry-interval-max.")
69
62
retryIntervalMax=flag.Duration("retry-interval-max", 5*time.Minute, "Maximum retry interval of failed create volume or deletion.")
leaderElectionType=flag.String("leader-election-type", leaderElectionTypeConfigMaps, "the type of leader election, options are 'configmaps' (default) or 'leases' (recommended). The 'configmaps' option is deprecated in favor of 'leases'.")
73
65
leaderElectionNamespace=flag.String("leader-election-namespace", "", "Namespace where the leader election resource lives. Defaults to the pod namespace if not set.")
74
-
_=deprecatedflags.Add("leader-election-identity")
75
66
)
76
67
77
68
var (
@@ -94,10 +85,6 @@ func main() {
94
85
}
95
86
klog.Infof("Version: %s", version)
96
87
97
-
if*connectionTimeout!=0 {
98
-
klog.Warningf("Warning: option -connection-timeout is deprecated and has no effect")
99
-
}
100
-
101
88
// Create the client config. Use kubeconfig if given, otherwise assume in-cluster.
klog.Warningf("The '%s' leader election type is deprecated and will be removed in a future release. Use '--leader-election-type=%s' instead.", leaderElectionTypeConfigMaps, leaderElectionTypeLeases)
Copy file name to clipboardExpand all lines: doc/development.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ Trivial handler will be used for CSI drivers that don't support `ControllerPubli
18
18
19
19
### Real attacher
20
20
21
-
"Real" attacher talks to CSI over socket (`/run/csi/socket` by default, configurable by `-csi-address`). The attacher tries to connect for `-connection-timeout` (1 minute by default), allowing CSI driver to start and create its server socket a bit later.
21
+
"Real" attacher talks to CSI over socket (`/run/csi/socket` by default, configurable by `-csi-address`).
0 commit comments