Do not block admission if namespace already exists

This commit is contained in:
derekwaynecarr
2015-03-26 15:59:09 -04:00
parent 3b0db99692
commit 267ef26b0f
3 changed files with 28 additions and 2 deletions

View File

@@ -46,7 +46,7 @@ func (c *FakeNamespaces) Delete(name string) error {
func (c *FakeNamespaces) Create(namespace *api.Namespace) (*api.Namespace, error) {
c.Fake.Actions = append(c.Fake.Actions, FakeAction{Action: "create-namespace"})
return &api.Namespace{}, nil
return &api.Namespace{}, c.Fake.Err
}
func (c *FakeNamespaces) Update(namespace *api.Namespace) (*api.Namespace, error) {