CNTRLPLANE-3629: authentication: skip external oidc kube-apiserver configuration check when new architecture gate is enabled#31314
Conversation
… when new architecture gate is enabled Signed-off-by: Bryce Palmer <bpalmer@redhat.com>
|
Pipeline controller notification For optional jobs, comment This repository is configured in: automatic mode |
|
@everettraven: This pull request references CNTRLPLANE-3629 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. |
WalkthroughThe OIDC test for "should configure kube-apiserver" gains a pre-check that fetches the cluster OIDC kube-apiserver test feature gate guard
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes 🚥 Pre-merge checks | ✅ 13 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (13 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: everettraven 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 |
|
@everettraven: This PR was included in a payload test run from openshift/api#2893
See details on https://pr-payload-tests.ci.openshift.org/runs/ci/cce98770-6b48-11f1-9b34-4683d9c5c4ec-0 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 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.
Inline comments:
In `@test/extended/authentication/oidc.go`:
- Around line 135-142: The loop iterating through fgs.Status.FeatureGates is
checking feature gate states across all release versions instead of filtering to
only the cluster's current version, which causes false test skips. Modify the
code to filter the FeatureGates slice to include only entries matching the
cluster's current version before or during iteration, ensuring the
externalClaimsSourcingEnabled flag is only set based on the active version's
feature gate state rather than any historical version entries.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository YAML (base), Central YAML (inherited)
Review profile: CHILL
Plan: Enterprise
Run ID: f8af2790-a287-44aa-a805-f2885edfcf4a
📒 Files selected for processing (1)
test/extended/authentication/oidc.go
|
Scheduling required tests: |
|
@everettraven: 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. |
As part of the work to accomplish https://redhat.atlassian.net/browse/CNTRLPLANE-2512 we've done some re-architecting as to how the ExternalOIDC feature works under the hood.
This PR updates the tests to skip a test case that was opinionated as to the underlying architecture for the feature that is obsolete with the incoming architecture changes. We will not remove the test case entirely until the new feature that introduces the new architecture has been promoted to the Default feature set and has shipped in a GA release. This prevents a lapse in automated regression coverage for how the baseline ExternalOIDC feature works in fully supported clusters today.
Summary by CodeRabbit