remove unuse code in pkg/kubelet/util
Signed-off-by: qingwave <isguory@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user