cm: Remove legacy docker references
Dockershim and built-in Docker support are gone. Cleans up dead code references to them.
This commit is contained in:
@@ -25,7 +25,7 @@ import (
|
||||
|
||||
libcontainercgroups "github.com/opencontainers/runc/libcontainer/cgroups"
|
||||
|
||||
"k8s.io/api/core/v1"
|
||||
v1 "k8s.io/api/core/v1"
|
||||
"k8s.io/apimachinery/pkg/types"
|
||||
utilfeature "k8s.io/apiserver/pkg/util/feature"
|
||||
"k8s.io/kubernetes/pkg/api/v1/resource"
|
||||
@@ -340,12 +340,5 @@ func GetKubeletContainer(kubeletCgroups string) (string, error) {
|
||||
|
||||
// GetRuntimeContainer returns the cgroup used by the container runtime
|
||||
func GetRuntimeContainer(containerRuntime, runtimeCgroups string) (string, error) {
|
||||
if containerRuntime == "docker" {
|
||||
cont, err := getContainerNameForProcess(dockerProcessName, dockerPidFile)
|
||||
if err != nil {
|
||||
return "", fmt.Errorf("failed to get container name for docker process: %v", err)
|
||||
}
|
||||
return cont, nil
|
||||
}
|
||||
return runtimeCgroups, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user