mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
Clean up unused func checkKnownProxyMode
This commit is contained in:
parent
f60b92a26a
commit
991a75e1e3
@ -82,15 +82,6 @@ const (
|
|||||||
proxyModeKernelspace = "kernelspace"
|
proxyModeKernelspace = "kernelspace"
|
||||||
)
|
)
|
||||||
|
|
||||||
// checkKnownProxyMode returns true if proxyMode is valid.
|
|
||||||
func checkKnownProxyMode(proxyMode string) bool {
|
|
||||||
switch proxyMode {
|
|
||||||
case "", proxyModeUserspace, proxyModeIPTables, proxyModeIPVS, proxyModeKernelspace:
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
|
|
||||||
// Options contains everything necessary to create and run a proxy server.
|
// Options contains everything necessary to create and run a proxy server.
|
||||||
type Options struct {
|
type Options struct {
|
||||||
// ConfigFile is the location of the proxy server's configuration file.
|
// ConfigFile is the location of the proxy server's configuration file.
|
||||||
|
Loading…
Reference in New Issue
Block a user