Skip to content

Commit

Permalink
WIP: early termination of test-conn-disrupt pods
Browse files Browse the repository at this point in the history
Signed-off-by: Martynas Pumputis <[email protected]>
  • Loading branch information
brb committed Apr 29, 2024
1 parent 658e4b5 commit 5d01c79
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion connectivity/builder/no_interrupted_connections.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
package builder

import (
"context"

"github.com/cilium/cilium-cli/connectivity/check"
"github.com/cilium/cilium-cli/connectivity/tests"
)
Expand All @@ -13,5 +15,11 @@ type noInterruptedConnections struct{}
func (t noInterruptedConnections) build(ct *check.ConnectivityTest, _ map[string]string) {
newTest("no-interrupted-connections", ct).
WithCondition(func() bool { return ct.Params().IncludeConnDisruptTest }).
WithScenarios(tests.NoInterruptedConnections())
WithScenarios(tests.NoInterruptedConnections()).
WithFinalizer(func() error {
if !ct.Params().ConnDisruptTestSetup {
return ct.DeleteConnDisruptTestDeployment(context.Background(), ct.K8sClient())
}
return nil
})
}

0 comments on commit 5d01c79

Please sign in to comment.