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
Updates to CLI flag grouping + deprecated flag warnings. (k3s-io#5937)
* Consolidate data dir flag
* Group cluster flags together
* Reorder and group agent flags
* Add additional info around vmodule flag
* Hide deprecated flags, and add warning about their removal
Signed-off-by: Derek Nola <[email protected]>
Copy file name to clipboardExpand all lines: pkg/cli/cmds/agent.go
+32-30Lines changed: 32 additions & 30 deletions
Original file line number
Diff line number
Diff line change
@@ -86,11 +86,23 @@ var (
86
86
Usage: "(agent/node) Append id to node name",
87
87
Destination: &AgentConfig.WithNodeID,
88
88
}
89
-
DockerFlag= cli.BoolFlag{
90
-
Hidden: true,
91
-
Name: "docker",
92
-
Usage: "(deprecated) (agent/runtime) Use docker instead of containerd",
93
-
Destination: &AgentConfig.Docker,
89
+
ProtectKernelDefaultsFlag= cli.BoolFlag{
90
+
Name: "protect-kernel-defaults",
91
+
Usage: "(agent/node) Kernel tuning behavior. If set, error if kernel tunables are different than kubelet defaults.",
92
+
Destination: &AgentConfig.ProtectKernelDefaults,
93
+
}
94
+
SELinuxFlag= cli.BoolFlag{
95
+
Name: "selinux",
96
+
Usage: "(agent/node) Enable SELinux in containerd",
97
+
Destination: &AgentConfig.EnableSELinux,
98
+
EnvVar: version.ProgramUpper+"_SELINUX",
99
+
}
100
+
LBServerPortFlag= cli.IntFlag{
101
+
Name: "lb-server-port",
102
+
Usage: "(agent/node) Local port for supervisor client load-balancer. If the supervisor and apiserver are not colocated an additional port 1 less than this port will also be used for the apiserver client load-balancer.",
Usage: "(deprecated) Use --selinux to explicitly enable SELinux",
185
192
Hidden: true,
186
193
}
187
-
ProtectKernelDefaultsFlag= cli.BoolFlag{
188
-
Name: "protect-kernel-defaults",
189
-
Usage: "(agent/node) Kernel tuning behavior. If set, error if kernel tunables are different than kubelet defaults.",
190
-
Destination: &AgentConfig.ProtectKernelDefaults,
191
-
}
192
-
SELinuxFlag= cli.BoolFlag{
193
-
Name: "selinux",
194
-
Usage: "(agent/node) Enable SELinux in containerd",
195
-
Destination: &AgentConfig.EnableSELinux,
196
-
EnvVar: version.ProgramUpper+"_SELINUX",
194
+
DockerFlag= cli.BoolFlag{
195
+
Hidden: true,
196
+
Name: "docker",
197
+
Usage: "(deprecated) (agent/runtime) Use docker instead of containerd",
198
+
Destination: &AgentConfig.Docker,
197
199
}
198
-
LBServerPortFlag= cli.IntFlag{
199
-
Name: "lb-server-port",
200
-
Usage: "(agent/node) Local port for supervisor client load-balancer. If the supervisor and apiserver are not colocated an additional port 1 less than this port will also be used for the apiserver client load-balancer.",
0 commit comments