tls: add cluster-authentication-operator and operands to tested compo…#31208
tls: add cluster-authentication-operator and operands to tested compo…#31208gangwgr wants to merge 1 commit into
Conversation
…nents Add the authentication operator (openshift-authentication-operator) and its OAuth server operand (openshift-authentication) to all target lists: observedConfigTargets, configMapTargets, serviceTargets, clusterOperatorTargets, and deploymentRolloutTargets. The authentication operator uses a non-standard ObservedConfig path (oauthServer.servingInfo instead of servingInfo). Add a servingInfoPath field to observedConfigTarget so testObservedConfig and verifyObservedConfigForTargets resolve the path dynamically, defaulting to ["servingInfo"] for all existing targets.
|
Pipeline controller notification For optional jobs, comment This repository is configured in: automatic mode |
|
Skipping CI for Draft Pull Request. |
WalkthroughThis PR extends TLS ObservedConfig test coverage to authentication operators by parameterizing the assertion logic with a configurable ChangesTLS ObservedConfig authentication extension
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 11 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (11 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: gangwgr 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 |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
test/extended/tls/tls_observed_config.go (1)
836-836: ⚡ Quick winUse
siLabelinstead of hardcoded "servingInfo" for log consistency.Line 829 correctly uses
siLabelwhen logging minTLSVersion, but this line hardcodes "servingInfo". For the authentication operator (which uses path["oauthServer", "servingInfo"]), the logs would inconsistently show "oauthServer.servingInfo" for minTLSVersion but just "servingInfo" for cipherSuites.Suggested fix
- e2e.Logf("ObservedConfig servingInfo.cipherSuites: %d suites", len(cipherSuites)) + e2e.Logf("ObservedConfig %s.cipherSuites: %d suites", siLabel, len(cipherSuites))🤖 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 `@test/extended/tls/tls_observed_config.go` at line 836, Replace the hardcoded "servingInfo" string in the e2e.Logf call with the siLabel variable to keep log labels consistent (the line containing e2e.Logf("ObservedConfig servingInfo.cipherSuites: %d suites", len(cipherSuites))). Update the call to use siLabel so it matches the earlier log of minTLSVersion and reflects the full path (e.g., "oauthServer.servingInfo") dynamically.
🤖 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 `@test/extended/tls/tls_observed_config.go`:
- Line 836: Replace the hardcoded "servingInfo" string in the e2e.Logf call with
the siLabel variable to keep log labels consistent (the line containing
e2e.Logf("ObservedConfig servingInfo.cipherSuites: %d suites",
len(cipherSuites))). Update the call to use siLabel so it matches the earlier
log of minTLSVersion and reflects the full path (e.g.,
"oauthServer.servingInfo") dynamically.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository YAML (base), Central YAML (inherited)
Review profile: CHILL
Plan: Enterprise
Run ID: f0d298ae-4ee8-49e1-9cb9-7db47797c99f
📒 Files selected for processing (1)
test/extended/tls/tls_observed_config.go
|
/test tls-observed-config-hypershift |
|
/test tls-observed-config-hypershift |
|
/test tls-observed-config |
|
@gangwgr: 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. |
for https://github.com/openshift/cluster-authentication-operator/pull/892]
Add the authentication operator (openshift-authentication-operator) and its OAuth server operand (openshift-authentication) to all target lists: observedConfigTargets, configMapTargets, serviceTargets, clusterOperatorTargets, and deploymentRolloutTargets.
The authentication operator uses a non-standard ObservedConfig path (oauthServer.servingInfo instead of servingInfo). Add a servingInfoPath field to observedConfigTarget so testObservedConfig and verifyObservedConfigForTargets resolve the path dynamically, defaulting to ["servingInfo"] for all existing targets.
Summary by CodeRabbit