-
Notifications
You must be signed in to change notification settings - Fork 672
Delete defaultAllowIPSet on namespace delete #3250
Conversation
@bboreham The code works, deployed in our staging cluster and tested the same, it works.
Need to make CI work but. CI is failing because the |
npc/namespace.go
Outdated
return err | ||
} | ||
|
||
// Flush defaultAllowIPSet |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
npc/namespace.go
Outdated
} | ||
|
||
// Flush defaultAllowIPSet | ||
err = ns.ips.Flush(ns.defaultAllowIPSet) |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
npc/controller_test.go
Outdated
return errors.Errorf("ipset %s does not exist", ipsetName) | ||
} else if len(set.subSets) != 0 { |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
@brb all the above done, now the smoke tests are failing 🤔 |
npc/namespace.go
Outdated
|
||
if !ns.legacy { | ||
// Delete defaultAllowIPSet | ||
return ns.ips.Destroy(ns.defaultAllowIPSet) |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
That is expected. Their running is restricted so strangers cannot submit PRs containing bitcoin miners. |
npc/controller_test.go
Outdated
@@ -79,7 +79,11 @@ func (i *mockIPSet) entryExists(ipsetName ipset.Name, entry string) bool { | |||
} | |||
|
|||
func (i *mockIPSet) Flush(ipsetName ipset.Name) error { | |||
return errors.New("Not Implemented") | |||
if _, ok := i.sets[string(ipsetName)]; !ok { |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
I've just pushed your branch to weaveworks/weave to trigger the CI build (https://circleci.com/gh/weaveworks/weave/10133). |
@rade all done from my side. You would need to trigger CI again for smoke tests. |
@brb ping |
Thanks for the contribution! |
Delete defaultAllowIPSet on namespace delete Fix #3247 Duplicate merge commit as the PR got merged to "master" instead of "2.2"
What ?
Fix for #3247
What it does?
On namespace deletion default
ipset
will cleaned for the namespace