From 9329e5dabe947a4ce425e557ff5608a46359eb7c Mon Sep 17 00:00:00 2001 From: zouyee Date: Mon, 2 Apr 2018 10:13:35 +0800 Subject: [PATCH] remove rktnetes related code --- pkg/kubelet/container/helpers.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/pkg/kubelet/container/helpers.go b/pkg/kubelet/container/helpers.go index 529c6dfe4e..a616bf4fcb 100644 --- a/pkg/kubelet/container/helpers.go +++ b/pkg/kubelet/container/helpers.go @@ -19,7 +19,6 @@ package container import ( "bytes" "fmt" - "hash/adler32" "hash/fnv" "strings" "time" @@ -100,17 +99,6 @@ func HashContainer(container *v1.Container) uint64 { return uint64(hash.Sum32()) } -// HashContainerLegacy returns the hash of the container. It is used to compare -// the running container with its desired spec. -// This is used by rktnetes and dockershim (for handling <=1.5 containers). -// TODO: Remove this function when kubernetes version is >=1.8 AND rktnetes -// update its hash function. -func HashContainerLegacy(container *v1.Container) uint64 { - hash := adler32.New() - hashutil.DeepHashObject(hash, *container) - return uint64(hash.Sum32()) -} - // EnvVarsToMap constructs a map of environment name to value from a slice // of env vars. func EnvVarsToMap(envs []EnvVar) map[string]string {