Add a kubectl stop command

This commit is contained in:
Jeff Lowdermilk
2015-01-20 18:58:04 -08:00
parent ac2e2c9fbb
commit b1aa037990
7 changed files with 393 additions and 10 deletions

View File

@@ -26,18 +26,18 @@ import (
"github.com/GoogleCloudPlatform/kubernetes/pkg/client"
)
type customFake struct {
type updaterFake struct {
*client.Fake
ctrl client.ReplicationControllerInterface
}
func (c *customFake) ReplicationControllers(namespace string) client.ReplicationControllerInterface {
func (c *updaterFake) ReplicationControllers(namespace string) client.ReplicationControllerInterface {
return c.ctrl
}
func fakeClientFor(namespace string, responses []fakeResponse) client.Interface {
fake := client.Fake{}
return &customFake{
return &updaterFake{
&fake,
&fakeRc{
&client.FakeReplicationControllers{