Skip to content

Commit

Permalink
hostport: read the hostport setting from viper
Browse files Browse the repository at this point in the history
Previously, it will lost hostport setting if we do not set
kube-proxy-replacement as strict or probe.

Fixes: 7fcf660 ("cilium, bpf: add native HostPort mapping support")
Signed-off-by: Wang Li <wangli09@kuaishou.com>
  • Loading branch information
Wang Li authored and borkmann committed Apr 20, 2020
1 parent 9499596 commit cf1465f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/option/config.go
Expand Up @@ -2332,6 +2332,7 @@ func (c *DaemonConfig) Populate() {
c.EnableL7Proxy = viper.GetBool(EnableL7Proxy)
c.EnableTracing = viper.GetBool(EnableTracing)
c.EnableNodePort = viper.GetBool(EnableNodePort)
c.EnableHostPort = viper.GetBool(EnableHostPort)
c.NodePortMode = viper.GetString(NodePortMode)
c.NodePortAcceleration = viper.GetString(NodePortAcceleration)
c.EnableAutoProtectNodePortRange = viper.GetBool(EnableAutoProtectNodePortRange)
Expand Down

0 comments on commit cf1465f

Please sign in to comment.