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/options/node_options.go
+10-2Lines changed: 10 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -18,9 +18,17 @@ package options
18
18
19
19
import (
20
20
"flag"
21
+
22
+
cliflag "k8s.io/component-base/cli/flag"
21
23
)
22
24
23
25
// NodeOptions contains options and configuration settings for the node service.
24
-
typeNodeOptionsstruct{}
26
+
typeNodeOptionsstruct {
27
+
// LuksOpenFlags is a list of flags to add to cryptsetup luksOpen.
28
+
// It is a comma separated list of strings '--perf-no_read_workqueue,--perf-no_write_workqueue'.
29
+
LuksOpenFlags []string
30
+
}
25
31
26
-
func (s*NodeOptions) AddFlags(fs*flag.FlagSet) {}
32
+
func (s*NodeOptions) AddFlags(fs*flag.FlagSet) {
33
+
fs.Var(cliflag.NewStringSlice(&s.LuksOpenFlags), "luks-open-flags", "Flag to add to cryptsetup luksOpen. It may be specified multiple times to add multiple flags, for example: '--luks-open-flags=--perf-no_read_workqueue --luks-open-flags=--perf-no_write_workqueue'")
0 commit comments