-
Notifications
You must be signed in to change notification settings - Fork 105
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-11559: [Part 3/3] Hypershift PAO adoption #1057
CNF-11559: [Part 3/3] Hypershift PAO adoption #1057
Conversation
@Tal-or: This pull request references CNF-11559 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.16.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. |
/retest |
pkg/performanceprofile/controller/performanceprofile/hypershift/components/handler.go
Outdated
Show resolved
Hide resolved
pkg/performanceprofile/controller/performanceprofile/hypershift/status/status.go
Outdated
Show resolved
Hide resolved
a72d1dd
to
9195346
Compare
@Tal-or: This pull request references CNF-11559 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.16.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-11559 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.16.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-11559 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.16.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. |
9195346
to
5e01e76
Compare
depends on: #1004 |
5e01e76
to
833c724
Compare
@Tal-or: This pull request references CNF-11559 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.16.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. |
833c724
to
d150863
Compare
/retest |
d150863
to
3849355
Compare
pkg/performanceprofile/controller/performanceprofile/hypershift/hypershift.go
Show resolved
Hide resolved
445e82f
to
4c5cbe5
Compare
/test e2e-hypershift-pao |
/retest |
4c5cbe5
to
8388f77
Compare
status reporting is not supported on hypershift yet. we provide a fake implementation in order to conforms the interface. Signed-off-by: Talor Itzhak <[email protected]>
Checking the feature gate first will result with an error on hypershift since it's not yet supported. Signed-off-by: Talor Itzhak <[email protected]>
Adding a management client to be used on a hypershift platform. Signed-off-by: Talor Itzhak <[email protected]>
Add the necessary configuration for the controller, so it would be able to run on a hypershift platform. 1. It needs to configure predicates for ConfigMaps instead of actual objects. 2. It needs to setup different clients for the management cluster and hosted cluster. Signed-off-by: Talor Itzhak <[email protected]>
Modify the reconciliation flow so it could fit for both HCP and OCP. Signed-off-by: Talor Itzhak <[email protected]>
Adding the relevant code for configuring performanceProfile over hypershift Signed-off-by: Talor Itzhak <[email protected]>
Signed-off-by: Talor Itzhak <[email protected]>
Signed-off-by: Talor Itzhak <[email protected]>
Signed-off-by: Talor Itzhak <[email protected]>
Bump needed for handling hypershift APIs. This is the output formatted and generated by the \`go mod tidy\` Signed-off-by: Talor Itzhak <[email protected]>
The package that holds featuregate geatures has changed in the last vendor bump. This commit uses the new paths. Signed-off-by: Talor Itzhak <[email protected]>
- Move logs to V(4) - Fix typos - Remove redundant spacing - Consistent HyperShift naming Signed-off-by: Talor Itzhak <[email protected]>
7ef0009
to
2391f85
Compare
Depends on openshift/release#52876 |
/retest |
/test e2e-hypershift |
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
/hold
/hold cancel because missing approval so no risk of premature merge |
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Tal-or, yanirq 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 |
@Tal-or: all tests passed! Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
[ART PR BUILD NOTIFIER] This PR has been included in build cluster-node-tuning-operator-container-v4.17.0-202406101017.p0.g4d6cb12.assembly.stream.el9 for distgit cluster-node-tuning-operator. |
* pao:hypershift: do not add mco scheme On hypershift we don't have mco, trying to add it will cause for exit with an error * pao:hypershift: implement the components handler interface This is the core of the reconciliation loop, which creates/updates/deletes the relevant components. Similar to what we already have on OCP. There's a gap about how to retrieve the `containerruntimeconfig` object which is needed by the controller and is not accessible in the hosted control plane namespace. This will be handle on a separate PR. Signed-off-by: Talor Itzhak <[email protected]> * pao:hypershift: stub implementation for status writer interface status reporting is not supported on hypershift yet. we provide a fake implementation in order to conforms the interface. Signed-off-by: Talor Itzhak <[email protected]> * pao:hypershift: check if in hypershift first Checking the feature gate first will result with an error on hypershift since it's not yet supported. Signed-off-by: Talor Itzhak <[email protected]> * pao:hypershift: add management client Adding a management client to be used on a hypershift platform. Signed-off-by: Talor Itzhak <[email protected]> * pao:hypershift: configure controller Add the necessary configuration for the controller, so it would be able to run on a hypershift platform. 1. It needs to configure predicates for ConfigMaps instead of actual objects. 2. It needs to setup different clients for the management cluster and hosted cluster. Signed-off-by: Talor Itzhak <[email protected]> * pao:hypershift: generelize reconciliation loop Modify the reconciliation flow so it could fit for both HCP and OCP. Signed-off-by: Talor Itzhak <[email protected]> * e2e:config: adapt suite for hypershift Adding the relevant code for configuring performanceProfile over hypershift Signed-off-by: Talor Itzhak <[email protected]> * hypershift:client: do not assign to nil map Signed-off-by: Talor Itzhak <[email protected]> * hypershift:client: return error when configMap has invalid data state Signed-off-by: Talor Itzhak <[email protected]> * pao:hypershift: move label validation to helper function Signed-off-by: Talor Itzhak <[email protected]> * vendor: bump deps Bump needed for handling hypershift APIs. This is the output formatted and generated by the \`go mod tidy\` Signed-off-by: Talor Itzhak <[email protected]> * vendor:featuregate: adopt feature gate api changes The package that holds featuregate geatures has changed in the last vendor bump. This commit uses the new paths. Signed-off-by: Talor Itzhak <[email protected]> * pao:log: small refining - Move logs to V(4) - Fix typos - Remove redundant spacing - Consistent HyperShift naming Signed-off-by: Talor Itzhak <[email protected]> --------- Signed-off-by: Talor Itzhak <[email protected]>
This PR provides the actual support of PAO/NTO over hypershift platform.
The PR follows the enhancement: openshift/enhancements#1244
More details in the commits themselves.
Additional gaps which should be addressed on separate PRs, but listed here for transparency:
containerruntimeconfig
information CNF-11845