Run cAdvisor inside the Kubelet.

cAdvisor is started as a Kubelet dependency during startup of the
Kubelet before the sync loops start.
This commit is contained in:
Victor Marmol
2015-03-09 22:39:00 -07:00
parent b00e82ed93
commit dc96ea6300
7 changed files with 204 additions and 31 deletions

View File

@@ -25,19 +25,21 @@ type Mock struct {
mock.Mock
}
// ContainerInfo is a mock implementation of CadvisorInterface.ContainerInfo.
var _ Interface = new(Mock)
// ContainerInfo is a mock implementation of Interface.ContainerInfo.
func (c *Mock) ContainerInfo(name string, req *cadvisorApi.ContainerInfoRequest) (*cadvisorApi.ContainerInfo, error) {
args := c.Called(name, req)
return args.Get(0).(*cadvisorApi.ContainerInfo), args.Error(1)
}
// DockerContainer is a mock implementation of CadvisorInterface.DockerContainer.
// DockerContainer is a mock implementation of Interface.DockerContainer.
func (c *Mock) DockerContainer(name string, req *cadvisorApi.ContainerInfoRequest) (cadvisorApi.ContainerInfo, error) {
args := c.Called(name, req)
return args.Get(0).(cadvisorApi.ContainerInfo), args.Error(1)
}
// MachineInfo is a mock implementation of CadvisorInterface.MachineInfo.
// MachineInfo is a mock implementation of Interface.MachineInfo.
func (c *Mock) MachineInfo() (*cadvisorApi.MachineInfo, error) {
args := c.Called()
return args.Get(0).(*cadvisorApi.MachineInfo), args.Error(1)