-
Notifications
You must be signed in to change notification settings - Fork 181
Revert "OCPBUGS-57049: certrotation: move test case name outside of AutoRegenerateAfterOfflineExpiry" #1907
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revert "OCPBUGS-57049: certrotation: move test case name outside of AutoRegenerateAfterOfflineExpiry" #1907
Conversation
…utoRegenerateAfterOfflineExpiry"
|
@neisw: This pull request references Jira Issue OCPBUGS-57049, which is valid. 3 validation(s) were run on this bug
Requesting review from QA contact: The bug has been updated to refer to the pull request using the external bug tracker. In 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. |
WalkthroughStatic annotation metadata in cert rotation signers was updated in pkg/operator/certrotationcontroller/certrotationcontroller.go. TestName annotations were removed, and AutoRegenerateAfterOfflineExpiry values now include the PR URL plus an inline test-name string. No control flow, logic, or exported API changes. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
Tip 🔌 Remote MCP (Model Context Protocol) integration is now available!Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats. ✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
|
/payload-aggregate periodic-ci-openshift-release-master-nightly-4.20-e2e-aws-ovn-upgrade-fips 10 |
|
@neisw: trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command
See details on https://pr-payload-tests.ci.openshift.org/runs/ci/82125a00-82ce-11f0-9f78-fdab9c51a416-0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (3)
pkg/operator/certrotationcontroller/certrotationcontroller.go (3)
272-279: LocalhostServing annotations restored; consider raw-string literal for readability.The escaped quotes inside the test name are valid but noisy. Optional: switch to a raw string to avoid backslashes.
Example change for the first occurrence:
- AutoRegenerateAfterOfflineExpiry: "https://github.com/openshift/cluster-kube-apiserver-operator/pull/1631,'[Conformance][sig-api-machinery][Feature:APIServer] local kubeconfig \"localhost.kubeconfig\" should be present on all masters and work [apigroup:config.openshift.io] [Suite:openshift/conformance/parallel/minimal]'", + AutoRegenerateAfterOfflineExpiry: `https://github.com/openshift/cluster-kube-apiserver-operator/pull/1631,'[Conformance][sig-api-machinery][Feature:APIServer] local kubeconfig "localhost.kubeconfig" should be present on all masters and work [apigroup:config.openshift.io] [Suite:openshift/conformance/parallel/minimal]'`,Also applies to: 294-301, 309-314
531-538: LocalhostRecoveryServing annotations restored; optional raw-string for quoting.Works as-is. If desired, use raw strings to drop the escaped quotes (same approach as suggested for LocalhostServing).
Also applies to: 553-560, 571-575
709-716: ControlPlaneNodeAdminClient: consider adding Description for consistency.This block omits Description while most others include it. Not required, but helps readers scanning annotations.
Suggested addition:
AdditionalAnnotations: certrotation.AdditionalAnnotations{ JiraComponent: "kube-apiserver", AutoRegenerateAfterOfflineExpiry: "https://github.com/openshift/cluster-kube-apiserver-operator/pull/1631,'[Conformance][sig-api-machinery][Feature:APIServer] local kubeconfig \"control-plane-node.kubeconfig\" should be present in all kube-apiserver containers [Suite:openshift/conformance/parallel/minimal]'", + Description: "Client certificate used by the control-plane node admin (system:masters) for debugging and recovery flows.", },Also applies to: 727-732, 742-746
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
💡 Knowledge Base configuration:
- MCP integration is disabled by default for public repositories
- Jira integration is disabled by default for public repositories
- Linear integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (1)
pkg/operator/certrotationcontroller/certrotationcontroller.go(36 hunks)
🔇 Additional comments (10)
pkg/operator/certrotationcontroller/certrotationcontroller.go (10)
158-162: Revert for aggregator client/CA/cert annotations looks correct.Embedding the test name back into AutoRegenerateAfterOfflineExpiry matches the pre-#1870 format and keeps the link+test context together. No functional impact; structs remain valid and compile-safe.
Also applies to: 174-178, 188-192
214-219: KubeAPIServer→Kubelet signer/CA/cert: revert is consistent.Values are correctly restored to the link+quoted test-name style. No issues spotted.
Also applies to: 232-236, 246-250
336-343: ServiceNetworkServing signer/CA/cert: revert is accurate.Annotation format matches the intended link + test name pattern.
Also applies to: 358-365, 374-378
401-408: ExternalLoadBalancerServing annotations reverted cleanly.Link and test name are properly inline; data is consistent across signer/CA/cert.
Also applies to: 423-430, 439-443
466-473: InternalLoadBalancerServing annotations reverted cleanly.Mirrors the external LB block; no issues found.
Also applies to: 488-495, 504-508
597-604: KubeControllerManagerClient signer/CA/cert: annotation revert LGTM.Uniform with other control-plane client certs; values consistent.
Also applies to: 615-620, 630-634
653-660: KubeSchedulerClient signer/CA/cert: annotation revert LGTM.Consistent formatting and content; no further action needed.
Also applies to: 671-676, 686-690
764-771: CheckEndpointsClient annotations reverted correctly.Inline test name and PR link format are consistent with the revert’s intent.
Also applies to: 782-787, 797-801
820-827: NodeSystemAdmin signer/CA/cert: revert LGTM.Annotations are uniform across all three resources; no functional changes introduced.
Also applies to: 840-845, 855-859
153-171: Sanity check passed: no strayTestNamefields and formatting consistent
All quick verification steps completed successfully:
- No remaining
AdditionalAnnotations.TestNamefields found.- Every
AutoRegenerateAfterOfflineExpiryentry inpkg/operator/certrotationcontroller/certrotationcontroller.goincludes a PR URL, a comma, and a single-quoted test name as expected.Ready to merge.
|
@vrutkovs FYI |
|
Yeah, I don't mind - we can reapply this after #1901 lands /approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: neisw, vrutkovs The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest-required |
|
@neisw: The following tests failed, say
Full PR test history. Your PR dashboard. 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 kubernetes-sigs/prow repository. I understand the commands that are listed here. |
0bec046
into
openshift:main
|
@neisw: Jira Issue OCPBUGS-57049: Some pull requests linked via external trackers have merged:
The following pull requests linked via external trackers have not merged: These pull request must merge or be unlinked from the Jira bug in order for it to move to the next state. Once unlinked, request a bug refresh with Jira Issue OCPBUGS-57049 has not been moved to the MODIFIED state. In 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. |
Reverts #1870
Investigating TRT-2269
Summary by CodeRabbit