Moved qos to api.helpers.

This commit is contained in:
Klaus Ma
2017-05-20 07:16:53 -04:00
parent 2c2b5f7379
commit 83b7f77ee2
28 changed files with 276 additions and 158 deletions

View File

@@ -27,7 +27,7 @@ import (
"k8s.io/apimachinery/pkg/types"
utilerrors "k8s.io/apimachinery/pkg/util/errors"
"k8s.io/kubernetes/pkg/api/v1"
"k8s.io/kubernetes/pkg/kubelet/qos"
v1qos "k8s.io/kubernetes/pkg/api/v1/helper/qos"
)
const (
@@ -93,7 +93,7 @@ func (m *podContainerManagerImpl) EnsureExists(pod *v1.Pod) error {
// GetPodContainerName returns the CgroupName identifer, and its literal cgroupfs form on the host.
func (m *podContainerManagerImpl) GetPodContainerName(pod *v1.Pod) (CgroupName, string) {
podQOS := qos.GetPodQOS(pod)
podQOS := v1qos.GetPodQOS(pod)
// Get the parent QOS container name
var parentContainer string
switch podQOS {