Remove network policies (bulk)
Related tasks
Context
This task require us to enable the orchestrator component to remove netpols by using a set of labels
Change
-
Create a RemoveBulk
method in the orchestrator/networking/policies component. -
Add tests for RemoveBulk
. -
Add kubernetes implementation. -
Make RemoveNetworkPolicies
job useRemoveBulk
. (This could potentially be a different MR) -
Test on a running environment.
Other information
The fake kubernetes client provided by the Go Kubernetes client doesn't allow us to properly test the deletion of certain network policies when using the DeleteCollection
method. More information: https://github.com/kubernetes/client-go/issues/609#issuecomment-496729700
Additional documentation
Edited by Marcos Huck