mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-13 21:25:09 +00:00
Kubelet: remove unused getHostFieldLabel function
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user