remove unuse code in pkg/kubelet/util

Signed-off-by: qingwave <isguory@gmail.com>
This commit is contained in:
qingwave
2023-01-13 08:27:30 +00:00
parent a66aad2d80
commit a9d92bcb25
7 changed files with 5 additions and 185 deletions

View File

@@ -17,21 +17,10 @@ limitations under the License.
package sliceutils
import (
"k8s.io/api/core/v1"
v1 "k8s.io/api/core/v1"
kubecontainer "k8s.io/kubernetes/pkg/kubelet/container"
)
// StringInSlice returns true if s is in list
func StringInSlice(s string, list []string) bool {
for _, v := range list {
if v == s {
return true
}
}
return false
}
// PodsByCreationTime makes an array of pods sortable by their creation
// timestamps in ascending order.
type PodsByCreationTime []*v1.Pod