Introduce SystemContainer to Kubelet ContainerManager.

This generalizes the handling of containers in the
ContainerManager.

Also introduces the ability to determine how much
resources are reserved for those system containers.
This commit is contained in:
Victor Marmol
2015-05-29 17:32:34 -07:00
parent 50b9d6284a
commit 7283e662b5
6 changed files with 134 additions and 56 deletions

View File

@@ -20,6 +20,8 @@ package kubelet
import (
"fmt"
"github.com/GoogleCloudPlatform/kubernetes/pkg/api"
)
type unsupportedContainerManager struct {
@@ -31,6 +33,10 @@ func (unsupportedContainerManager) Start() error {
return fmt.Errorf("Container Manager is unsupported in this build")
}
func newContainerManager(dockerDaemonContainer, systemContainer string) (containerManager, error) {
func (unsupportedContainerManager) SystemContainersLimit() api.ResourceList {
return api.ResourceList{}
}
func newContainerManager(dockerDaemonContainer, systemContainer, kubeletContainer string) (containerManager, error) {
return &unsupportedContainerManager{}, nil
}