Clean up redundant DNS related kubelet codes

Signed-off-by: Zihong Zheng <zihongz@google.com>
This commit is contained in:
Zihong Zheng
2017-11-04 12:33:32 -07:00
parent 2ecb368026
commit c1a959c660
9 changed files with 101 additions and 108 deletions

View File

@@ -32,12 +32,12 @@ type FakeRuntimeHelper struct {
Err error
}
func (f *FakeRuntimeHelper) GenerateRunContainerOptions(pod *v1.Pod, container *v1.Container, podIP string) (*kubecontainer.RunContainerOptions, bool, error) {
func (f *FakeRuntimeHelper) GenerateRunContainerOptions(pod *v1.Pod, container *v1.Container, podIP string) (*kubecontainer.RunContainerOptions, error) {
var opts kubecontainer.RunContainerOptions
if len(container.TerminationMessagePath) != 0 {
opts.PodContainerDir = f.PodContainerDir
}
return &opts, false, nil
return &opts, nil
}
func (f *FakeRuntimeHelper) GetPodCgroupParent(pod *v1.Pod) string {