-
Notifications
You must be signed in to change notification settings - Fork 373
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
Clean up stale resources when 'antctl check cluster' failed #6597
Conversation
5beaa37
to
e542c29
Compare
Checking on the antctl check installation e2e failure, convert this to a draft one. |
aac6af7
to
fc915cd
Compare
@@ -84,6 +88,7 @@ func (t *DenyAllConnectivityTest) Run(ctx context.Context, testContext *testCont | |||
testContext.Log("NetworkPolicy deletion was successful") | |||
return nil | |||
}() | |||
time.Sleep(networkPolicyDelay) |
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.
The *-deny-all e2e failures should have nothing to do with the changes for the stale resources cleanup, it's likely to be an issue with NP reconciliation which caused the service is connectable when deny is expected. So I added 2 seconds here to wait NP to be reconciled before the testing.
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'd prefer something poll-based, but I guess this can be addressed in a later PR
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.
Sure, I can check later for poll-based with a new PR. Thanks.
@@ -84,6 +88,7 @@ func (t *DenyAllConnectivityTest) Run(ctx context.Context, testContext *testCont | |||
testContext.Log("NetworkPolicy deletion was successful") | |||
return nil | |||
}() | |||
time.Sleep(networkPolicyDelay) |
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'd prefer something poll-based, but I guess this can be addressed in a later PR
fc915cd
to
e0cf413
Compare
Signed-off-by: Lan Luo <luola@vmware.com>
e0cf413
to
4787f28
Compare
/skip-all |
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
No description provided.