Commit a52b2e72 authored by Victor Marmol's avatar Victor Marmol

Merge pull request #8077 from yujuhong/rm_deadcode

Kubelet: remove unused getHostFieldLabel function
parents 04c90565 3f791db8
......@@ -42,12 +42,3 @@ func newSourceApiserverFromLW(lw cache.ListerWatcher, updates chan<- interface{}
}
cache.NewReflector(lw, &api.Pod{}, cache.NewUndeltaStore(send, cache.MetaNamespaceKeyFunc), 0).Run()
}
func getHostFieldLabel(apiVersion string) string {
switch apiVersion {
case "v1beta1", "v1beta2":
return "DesiredState.Host"
default:
return "spec.host"
}
}
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