AUTOSCALE-870: add KarpenterOperator tech-preview FeatureGate#8976
AUTOSCALE-870: add KarpenterOperator tech-preview FeatureGate#8976maxcao13 wants to merge 1 commit into
Conversation
Adds KarpenterOperator as a FeatureGate to HyperShift, behind the TechPreview HCP featureset. For now, this feature gate is a no-op. Signed-off-by: Max Cao <macao@redhat.com>
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
@maxcao13: This pull request references AUTOSCALE-870 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 "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. |
📝 WalkthroughWalkthroughThis change introduces a new feature gate constant, 🚥 Pre-merge checks | ✅ 11✅ Passed checks (11 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
hypershift-operator/featuregate/feature.go (1)
37-42: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valuePlaceholder "beta: x.y.z" left in the comment.
The
alpha:line has a real version, butbeta: x.y.zis unfilled placeholder text. Either remove it until a beta stage is planned or fill in the actual target version.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@hypershift-operator/featuregate/feature.go` around lines 37 - 42, The KarpenterOperator feature gate comment still contains placeholder beta version text, so update the documentation in feature.go to either remove the beta annotation entirely or replace the beta: x.y.z placeholder with the real target version. Keep the existing KarpenterOperator symbol and its alpha metadata, and make the comment consistent with the actual release stage.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@hypershift-operator/featuregate/feature.go`:
- Around line 37-42: The KarpenterOperator feature gate comment still contains
placeholder beta version text, so update the documentation in feature.go to
either remove the beta annotation entirely or replace the beta: x.y.z
placeholder with the real target version. Keep the existing KarpenterOperator
symbol and its alpha metadata, and make the comment consistent with the actual
release stage.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository YAML (base), Central YAML (inherited)
Review profile: CHILL
Plan: Enterprise
Run ID: d289020f-3399-4bb0-b600-16e9d9ec1d2c
📒 Files selected for processing (2)
hypershift-operator/featuregate/feature.gohypershift-operator/featuregate/feature_test.go
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8976 +/- ##
=======================================
Coverage 43.60% 43.60%
=======================================
Files 771 771
Lines 95806 95807 +1
=======================================
+ Hits 41778 41779 +1
Misses 51119 51119
Partials 2909 2909
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
csrwng
left a comment
There was a problem hiding this comment.
Clean, well-tested addition. Follows the established feature gate pattern exactly — constant, feature variable with TechPreviewNoUpgrade, init registration, and full test coverage across all three feature sets. LGTM.
|
Scheduling tests matching the |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: csrwng, maxcao13 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Test Resultse2e-aws
Failed TestsTotal failed tests: 2
e2e-aks
|
|
/retest-required |
|
@maxcao13: The following tests failed, say
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. |
|
All Karpenter functional tests passed. The failure is purely in the teardown/cleanup phase. Now I have enough evidence for the report. Test Failure Analysis CompleteJob Information
Test Failure AnalysisErrorSummaryAll Karpenter functional tests passed (ValidateHostedCluster, Main with all parallel provisioning subtests, EnsureHostedCluster). The sole failure is in Root CauseThe failure chain has two stages: Stage 1: HostedCluster finalization timeout. The first Stage 2: Post-delete AWS resource validation timeout. After the cluster was destroyed, the
The The NLB for Contributing factor: An AWS account-level This is a test infrastructure/timing issue, not a product bug introduced by the PR's KarpenterOperator FeatureGate changes. All functional Karpenter tests passed, including the full parallel provisioning suite. Recommendations
Evidence
|
What this PR does / why we need it:
Adds KarpenterOperator as a FeatureGate to HyperShift, behind the TechPreview HCP featureset. For now, this feature gate is a no-op.
Refer to openshift/enhancements#2007 for more details on the function of this feature gate.
This is the first part of refactoring karpenter-operator out of HyperShift, and replacing it with the standalone component here: https://github.com/openshift/karpenter-operator
Which issue(s) this PR fixes:
Fixes https://redhat.atlassian.net/browse/AUTOSCALE-870
Special notes for your reviewer:
Since this will automatically be enabled anytime someone uses techpreview feature set for HO, we have to be careful that any features we add behind this feature gate to not break anyone's existing HO deployment and HCP clusters.
Checklist:
Summary by CodeRabbit
New Features
Tests