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
tests: Refactors agnhost image pod usage in tests #94438
tests: Refactors agnhost image pod usage in tests #94438
Conversation
Unknown CLA label state. Rechecking for CLA labels. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
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.
Looks good cleanup for me, just few comments.
/cc @oomichi
test/e2e/framework/pod/resource.go
Outdated
{ | ||
Name: "agnhost-pause", | ||
Image: imageutils.GetE2EImage(imageutils.Agnhost), | ||
Args: []string{"pause"}, |
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.
Don't we need to pass this "pause" as args of NewAgnhostPod()?
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.
See above, if no argument is given for args...
, NetAgnhostContainer
will consider this to be the default.
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.
Ah, I got it.
Thanks for your explanation.
/lgtm
{ | ||
Name: "pause", | ||
Image: imageutils.GetE2EImage(imageutils.Agnhost), | ||
Args: []string{"pause"}, |
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.
ditto
{ | ||
Name: "agnhost", | ||
Image: imageutils.GetE2EImage(imageutils.Agnhost), | ||
Args: []string{"pause"}, |
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.
ditto
/assign @yliaog |
2c1a521
to
18ebc70
Compare
18ebc70
to
6544dfb
Compare
/test pull-kubernetes-bazel-test |
09be786
to
613aee8
Compare
613aee8
to
2919dd5
Compare
/lgtm |
A previous commit created a few agnhost related functions that creates agnhost pods / containers for general purposes. Refactors tests to use those functions.
2919dd5
to
89eae73
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.
/approve
/lgtm
/priority backlog
Thank you @claudiubelu !
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alejandrox1, claudiubelu The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest Review the full test history for this PR. Silence the bot with an |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
A previous commit added a few agnhost related functions that creates agnhost pods / containers for general purposes.
Refactors tests to use those functions.
Which issue(s) this PR fixes:
Fixes #
Depends On: #87266
Special notes for your reviewer:
/cc @alejandrox1
Does this PR introduce a user-facing change?:
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: