AUTOSCALE-827: add KarpenterOperator feature gate#2898
Conversation
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
@maxcao13: This pull request references AUTOSCALE-827 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 task to target the "5.0.0" version, but no target version was set. DetailsIn 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. |
|
Skipping CI for Draft Pull Request. |
|
Hello @maxcao13! Some important instructions when contributing to openshift/api: |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited) Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (10)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughA new exported feature gate, Suggested reviewers
🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 golangci-lint (2.12.2)Error: build linters: unable to load custom analyzer "kubeapilinter": tools/_output/bin/kube-api-linter.so, plugin: not implemented Comment |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
3653554 to
85e98ef
Compare
what are you expecting to be the effect of enabling this in HCP? HCP management side decisions for karpenter can not be tied to the management cluster. E.g. many management clusters are not even OpenShift |
The feature gate would only be used in HCP as a toggle for migration. I would think that as we progressed this refactor, eventually a hypershift vx.y.z would have the feature gate defaulted to True, and the migration would be transparent to the user. If that doesn't make sense from what a feature gate should be, then I'm happy to only include this for standalone. For HCP, then we would just use some arbitrary eventually-defaulted flag and not use feature gates at all. |
|
IIUC, for HyperShift, the gate needs to be passed to HO and then to KO, so the gate status here (which would be the status in the guest cluster OR management cluster) wouldn't have any effect right? We need a separate change in the HCP repo to handle a gate that feeds HO behaviour right? |
The way I thought it would work, is that the HO in the management cluster sees the Since Alberto mentions that
Basically yes I think: I assume the HCP feature gate needs to be "duplicated" and go here instead: https://github.com/openshift/hypershift/blob/main/api/hypershift/v1beta1/featuregates/featureGate-Hypershift-TechPreviewNoUpgrade.yaml. IMO a feature gate makes sense for HCP just because eventually we would want to flip the refactor to default-on for GA at some version of HO, and stop maintaining the legacy code. So then this PR is purely about standalone. Does anyone have any problems with this? |
Works for me now we've cleared that up |
85e98ef to
1d86025
Compare
Adds the KarpenterOperator feature gate to OpenShift. Refer to openshift/enhancements#2007 for details. Signed-off-by: Max Cao <macao@redhat.com>
1d86025 to
0b97f9b
Compare
|
@maxcao13: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions 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. |
Adds the
KarpenterOperatorfeature gate to OpenShift.It will start in DevPreviewNoUpgrade, and follow the promotion process detailed in the enhancement PR. It will be enable-able in both selfmanaged(standalone), and HCP.
Refer to openshift/enhancements#2007 for details.