New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/cleanup: add socketlb program cleanup #25136
Conversation
Marking as ready for review now that I have manually tested this with a minikube setup and successfully removed socketlb progs from a node by running |
/test Job 'Cilium-PR-K8s-1.16-kernel-4.19' failed: Click to show.Test Name
Failure Output
Jenkins URL: https://jenkins.cilium.io/job/Cilium-PR-K8s-1.16-kernel-4.19/1251/ If it is a flake and a GitHub issue doesn't already exist to track it, comment Then please upload the Jenkins artifacts to that issue. Job 'Cilium-PR-K8s-1.26-kernel-net-next' failed: Click to show.Test Name
Failure Output
Jenkins URL: https://jenkins.cilium.io/job/Cilium-PR-K8s-1.26-kernel-net-next/2049/ If it is a flake and a GitHub issue doesn't already exist to track it, comment Then please upload the Jenkins artifacts to that issue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
cilium/cmd/cleanup.go
Outdated
@@ -249,10 +251,14 @@ func (c ciliumCleanup) cleanupFuncs() []cleanupFunc { | |||
cleanupTCFilters := func() error { | |||
return removeTCFilters(c.tcFilters) | |||
} | |||
cleanupSocketLBPrograms := func() error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: removeSocketLBPrograms is already func() error
so the closure isn't really necessary?
Fixes: cilium#10067 Signed-off-by: Robin Gögge <r.goegge@isovalent.com>
/test |
ci-mulitcluster failed with #25064, rerunning. |
This leverages this newly added
socketlb
package API [1] to remove any leftover socketlb bpf programs.Fixes: #10067