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:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user