-
Notifications
You must be signed in to change notification settings - Fork 13
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
e2e:hypershift: helper functions #1078
e2e:hypershift: helper functions #1078
Conversation
vendor hypershift API needed for test utils implementation. Signed-off-by: Talor Itzhak <[email protected]>
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Tal-or 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 |
/hold |
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 problem I have with this code is just one:
if we add in test/utils
adding tests becomes unnecessarily hard. It would be much better to add code in internal/
and use it (only) in tests. How much of this code can we move in internal/
?
Why?
Should not be a big deal, but then we might need to remove all |
There's no inherent reason, we can fix with enough effort. But considering that
That's fair. |
ok, to summarize:
unit tests added in this process are a nice bonus but not required |
Added some helper functions to intialize MNG cluster client for hypershift. This code was copied verbatim from: https://github.com/openshift/cluster-node-tuning-operator/blob/bcc46decd6c24a46a004fbcddb83e5aaf761538d/test/e2e/performanceprofile/functests/utils/hypershift/hypershift.go Signed-off-by: Talor Itzhak <[email protected]>
ea29926
to
5a93213
Compare
/hold cancel |
Done. Anyway, this code will be exercised as part of #1071, we can wait for #1071 to be completed and only if hypershift CI is passing we'll merge this one |
This is exactly why we should move code in |
5a93213
to
352d70c
Compare
Done |
Added helper functions for interacting with nodepool. Inspired by: https://github.com/openshift/cluster-node-tuning-operator/blob/8aa2a81399337d2cc716c210e353b82f16645d70/test/e2e/performanceprofile/functests/utils/nodepools/nodepools.go Those are needed for adding a `Kubeletconfig` to the hosted-cluster where nrop tests are running. Signed-off-by: Talor Itzhak <[email protected]>
Using the hypershift package to initialize the HyperShift MNG client when running on HyperShift platform. Signed-off-by: Talor Itzhak <[email protected]>
352d70c
to
e32034d
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.
/lgtm
/override ci/prow/ci-e2e-install-hypershift |
@Tal-or: Overrode contexts on behalf of Tal-or: ci/prow/ci-e2e-install-hypershift In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
/retest |
Adding some helper packages for interacting with
NodePools
object and talking to the HyperShift MNG cluster.This work inspired by similar work done on: https://github.com/openshift/cluster-node-tuning-operator