CNTRLPLANE-3772: promote ExternalOIDCWithUpstreamParity to Default#8952
CNTRLPLANE-3772: promote ExternalOIDCWithUpstreamParity to Default#8952ShazaAldawamneh wants to merge 1 commit into
Conversation
…romote the ExternalOIDCWithUpstreamParity feature gate from TechPreviewNoUpgrade to the Default feature set, enabling upstream parity authentication configuration by default. This change aligns with the openshift/api promotion in PR openshift#2915 and allows the feature to be available in the default feature set once the API changes are merged. Signed-off-by: Shaza Aldawamneh <shaza.aldawamneh@hotmail.com>
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
@ShazaAldawamneh: This pull request references CNTRLPLANE-3772 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. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: ShazaAldawamneh 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 |
📝 WalkthroughWalkthroughThis change updates the feature-gate configuration for Possibly related PRs
🚥 Pre-merge checks | ✅ 11✅ Passed checks (11 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
@ShazaAldawamneh: 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. |
everettraven
left a comment
There was a problem hiding this comment.
LGTM, but needs to be held until the feature has been promoted in openshift/api first.
/hold
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8952 +/- ##
=======================================
Coverage 43.45% 43.45%
=======================================
Files 771 771
Lines 95718 95718
=======================================
Hits 41597 41597
Misses 51234 51234
Partials 2887 2887
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
|
I now have all the evidence I need. The root cause is completely clear. Here's my final report: Test Failure Analysis CompleteJob Information
Test Failure AnalysisErrorSummaryThe PR promotes the Root CauseThe failure is a test expectation that was not updated to account for the behavioral change introduced by promoting the feature gate. Here is the complete chain of causation:
This is purely a test update issue — the production behavior change is correct and intentional. RecommendationsOption 1 (Preferred): Update the test expectation — Add ClaimValidationRules: []ClaimValidationRule{},
UserValidationRules: []UserValidationRule{}, // ← add this lineOption 2 (Alternative): Fix the production code to return nil for empty input — Change Evidence
|
jparrill
left a comment
There was a problem hiding this comment.
Dropped some comments. Thanks!
CI is red — Unit Tests (cpo-hostedcontrolplane) fails in TestGenerateAuthConfig/When_valid_OIDC_provider_is_provided at auth_test.go:269. The test expected UserValidationRules: nil but after the promotion the parity code path runs by default and produces UserValidationRules: []kas.UserValidationRule{}. The test expectation needs updating for the new default behavior.
/hold
Please hold until openshift/api#2915 merges and we do the vendor bump.
| externalOIDCWithUIDAndExtraClaimMappingsFeature = featuregates.NewFeature(ExternalOIDCWithUIDAndExtraClaimMappings, featuregates.WithEnableForFeatureSets(configv1.TechPreviewNoUpgrade, configv1.Default)) | ||
| externalOIDCWithUpstreamParityFeature = featuregates.NewFeature(ExternalOIDCWithUpstreamParity, featuregates.WithEnableForFeatureSets(configv1.TechPreviewNoUpgrade)) | ||
| externalOIDCWithUpstreamParityFeature = featuregates.NewFeature(ExternalOIDCWithUpstreamParity, featuregates.WithEnableForFeatureSets(configv1.TechPreviewNoUpgrade, configv1.Default)) | ||
| ) |
There was a problem hiding this comment.
The upstream openshift/api PR #2915 that promotes this gate to Default hasn't merged yet. The vendored CRDs in this repo (hostedclusters-Hypershift-Default.crd.yaml) don't include the gated fields (discoveryURL, userValidationRules, expression) in the Default schema — so this promotion has no functional effect until that vendor bump lands.
Could you add a note in the PR description marking openshift/api#2915 as a dependency? That way the ordering is explicit for anyone tracking it.
feat: Promote ExternalOIDCWithUpstreamParity to Default feature set Promote the ExternalOIDCWithUpstreamParity feature gate from TechPreviewNoUpgrade to the Default feature set, enabling upstream parity authentication configuration by default.
This change aligns with the openshift/api promotion in PR #2915 and allows the feature to be available in the default feature set once the API changes are merged.
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes
Special notes for your reviewer:
Checklist:
Summary by CodeRabbit