mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-12 20:57:20 +00:00
Do not block admission if namespace already exists
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user