pkg/kubelet: kill a TODO in util.go

Move kubelet.CapabilitiesSetup to capabilities.Setup
This commit is contained in:
Xiang Li
2015-04-11 10:55:31 -07:00
parent d577db9987
commit cea38a2f4e
3 changed files with 10 additions and 10 deletions

View File

@@ -19,18 +19,9 @@ package kubelet
import (
"github.com/GoogleCloudPlatform/kubernetes/pkg/api"
"github.com/GoogleCloudPlatform/kubernetes/pkg/api/resource"
"github.com/GoogleCloudPlatform/kubernetes/pkg/capabilities"
cadvisorApi "github.com/google/cadvisor/info/v1"
)
// TODO: move this into pkg/capabilities
func SetupCapabilities(allowPrivileged bool, hostNetworkSources []string) {
capabilities.Initialize(capabilities.Capabilities{
AllowPrivileged: allowPrivileged,
HostNetworkSources: hostNetworkSources,
})
}
func CapacityFromMachineInfo(info *cadvisorApi.MachineInfo) api.ResourceList {
c := api.ResourceList{
api.ResourceCPU: *resource.NewMilliQuantity(