-
Notifications
You must be signed in to change notification settings - Fork 210
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
connectivity: Delete test-conn-disrupt pods immediately after test run #2511
Conversation
5d01c79
to
26a4bb8
Compare
Blocked by #2513. |
26a4bb8
to
1ff5b5d
Compare
It's going to be passed by test-conn-disrupt pods deletion finalizer in a subsequent commit. Signed-off-by: Martynas Pumputis <[email protected]>
1ff5b5d
to
0a20b49
Compare
0a20b49
to
72c9b93
Compare
Otherwise, we risk to end up with not properly cleaning all installed resource. Signed-off-by: Martynas Pumputis <[email protected]>
72c9b93
to
6b33813
Compare
// Use a detached context to make sure this call is not affected by | ||
// context cancellation. Usually, finalization (e.g., netpol removal) | ||
// needs to happen even when the user interrupted the program. | ||
if err := f(context.TODO()); err != nil { |
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.
I wonder if it could make sense to add a timeout to prevent finalizers from hanging forever in case of e.g., network connectivity problems.
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.
What could be a reasonable timeout? 5min?
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.
Hmm, I was actually thinking about a way lower value (something between 1 and 5 seconds), but it may be indeed to low if we are waiting for any operation to actually happen (like in case of policies removal). Maybe 1 minute?
Delete the test-conn-disrupt pods immediately after the test run has finished to reduce CPU consumption (the pods generate a lot of traffic, and in most CI jobs Cilium runs with monitor aggregation disabled). Suggested-by: Marco Iorio <[email protected]> Signed-off-by: Martynas Pumputis <[email protected]>
6b33813
to
0b6aeec
Compare
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.
Thanks!
See commit msgs.
Test runs: cilium/cilium#32234