Commit 32da727c authored by k8s-merge-robot's avatar k8s-merge-robot

Merge pull request #26264 from luxas/remove_flannel_default

Automatic merge from submit-queue Do not call NewFlannelServer() unless flannel overlay is enabled Ref: #26093 This makes so kubelet does not warn the user that iptables isn't in PATH, although the user didn't enable the flannel overlay. @vishh @freehan @bprashanth
parents 72479b82 fdff659c
...@@ -353,7 +353,7 @@ func NewMainKubelet( ...@@ -353,7 +353,7 @@ func NewMainKubelet(
daemonEndpoints: daemonEndpoints, daemonEndpoints: daemonEndpoints,
containerManager: containerManager, containerManager: containerManager,
flannelExperimentalOverlay: flannelExperimentalOverlay, flannelExperimentalOverlay: flannelExperimentalOverlay,
flannelHelper: NewFlannelHelper(), flannelHelper: nil,
nodeIP: nodeIP, nodeIP: nodeIP,
clock: util.RealClock{}, clock: util.RealClock{},
outOfDiskTransitionFrequency: outOfDiskTransitionFrequency, outOfDiskTransitionFrequency: outOfDiskTransitionFrequency,
...@@ -363,6 +363,7 @@ func NewMainKubelet( ...@@ -363,6 +363,7 @@ func NewMainKubelet(
} }
if klet.flannelExperimentalOverlay { if klet.flannelExperimentalOverlay {
klet.flannelHelper = NewFlannelHelper()
glog.Infof("Flannel is in charge of podCIDR and overlay networking.") glog.Infof("Flannel is in charge of podCIDR and overlay networking.")
} }
if klet.nodeIP != nil { if klet.nodeIP != nil {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment