-
Notifications
You must be signed in to change notification settings - Fork 14
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
CNF-15754: nodegroups refactor #1142
base: main
Are you sure you want to change the base?
Conversation
[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 |
9c0890f
to
6d0b0c3
Compare
@Tal-or: This pull request references CNF-15754 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.19.0" version, but no target version was set. 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 openshift-eng/jira-lifecycle-plugin repository. |
@Tal-or: This pull request references CNF-15754 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.19.0" version, but no target version was set. 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 openshift-eng/jira-lifecycle-plugin repository. |
6d0b0c3
to
a34236e
Compare
A common interface for managing nodegroups. This interface will be inplemented for OpenShift and HyperShift platforms. Signed-off-by: Talor Itzhak <[email protected]>
Add common validation functions that will be used for both implementations of HyperShift and OpenShift. Signed-off-by: Talor Itzhak <[email protected]>
Implement the `Manager` infterface for OpenShift. The functionality is copied from validation package, with slight changes in the functions names and signatures, so no intended changes in the behavior. Signed-off-by: Talor Itzhak <[email protected]>
Implement the `Manager` infterface for HyperShift. The functionality is copied from validation package, with slight changes in the functions names and signatures, so no intended changes in the behavior. Signed-off-by: Talor Itzhak <[email protected]>
Consume the manager as part of the reconciler struct. In future commit we'll use the actual methods provided by the manager. Signed-off-by: Talor Itzhak <[email protected]>
replace the existing functions with the methods provided by the manager. No intended changes in the behavior. Signed-off-by: Talor Itzhak <[email protected]>
Now that we have `nodegroups` package it seems more appropriate to have a specific error for validation of nodegroups under a package with the same name. Signed-off-by: Talor Itzhak <[email protected]>
In hypershift case it will exit the functions doing nothing becuase the mcp slice it empty. In case that the user does provide an mcp selector on hypershift, we'll have a validation that will report about that. So we won't reach this code flow anyway. Signed-off-by: Talor Itzhak <[email protected]>
Signed-off-by: Talor Itzhak <[email protected]>
Now that each platform is implementing it own validation, we can remove the old validation which used to branch per each platform. Signed-off-by: Talor Itzhak <[email protected]>
a34236e
to
45a3060
Compare
/cc @ffromani |
/cc @ffromani PTAL this is a perquisite for the abstraction of the e2e serial suite so it will support HyperShift |
@Tal-or: GitHub didn't allow me to request PR reviews from the following users: a, e2e, PTAL, abstraction, it, will, HyperShift, this, of, suite, so, serial, is, perquisite, for, the. Note that only openshift-kni members and repo collaborators can review this PR, and authors cannot review their own PRs. 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. |
Moving validation and tree fetching logic into helper functions which are per platform use.
Fixes: #1086 and #1085