Skip to content

Commit

Permalink
Merge pull request #76848 from Huang-Wei/fix-kubemark-proxy
Browse files Browse the repository at this point in the history
Fixed a kubemark panic when hollow-node is morphed as proxy
  • Loading branch information
k8s-ci-robot committed Apr 23, 2019
2 parents 40f691a + 51149da commit ccf9556
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/kubemark/hollow-node.go
Expand Up @@ -17,6 +17,7 @@ limitations under the License.
package main

import (
"errors"
goflag "flag"
"fmt"
"math/rand"
Expand Down Expand Up @@ -185,7 +186,9 @@ func run(config *hollowNodeConfig) {
}
iptInterface := fakeiptables.NewFake()
sysctl := fakesysctl.NewFake()
execer := &fakeexec.FakeExec{}
execer := &fakeexec.FakeExec{
LookPathFunc: func(_ string) (string, error) { return "", errors.New("fake execer") },
}
eventBroadcaster := record.NewBroadcaster()
recorder := eventBroadcaster.NewRecorder(legacyscheme.Scheme, v1.EventSource{Component: "kube-proxy", Host: config.NodeName})

Expand Down

0 comments on commit ccf9556

Please sign in to comment.