-
Notifications
You must be signed in to change notification settings - Fork 83
🌱 Deprecate addon InstallNamespace in v1alpha1 #397
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
🌱 Deprecate addon InstallNamespace in v1alpha1 #397
Conversation
WalkthroughAdds deprecation notices for ManagedClusterAddOn spec.installNamespace in both CRD and Go types, updates golangci-lint installation to v2.4.0 in Makefile, and silences staticcheck in specific test assertions. No functional logic changes. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related issues
Pre-merge checks and finishing touches❌ Failed checks (3 warnings)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (4)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (2)
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. Comment |
|
/hold |
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: 2
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
addon/v1alpha1/types_managedclusteraddon.go (1)
145-156: Fix the Go deprecation comment format onregistrations.
go docandgo vetonly recognize deprecations when the comment starts withDeprecated:. As written, this won’t be treated as a real deprecation marker. Please include the colon and a short explanation.Apply this diff:
- // Deprecated + // Deprecated: registrations will be removed in a future release.
🧹 Nitpick comments (1)
addon/v1alpha1/0000_01_addon.open-cluster-management.io_managedclusteraddons.crd.yaml (1)
289-299: Make the CRD deprecation text explicit.To keep docs consistent with the Go types and clarity for users, mirror the phrasing
Deprecated: …here too.Apply this diff:
- description: |- - Deprecated + description: |- + Deprecated: registrations will be removed in a future release.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (4)
addon/v1alpha1/0000_00_addon.open-cluster-management.io_clustermanagementaddons.crd.yaml(1 hunks)addon/v1alpha1/0000_01_addon.open-cluster-management.io_managedclusteraddons.crd.yaml(2 hunks)addon/v1alpha1/types_clustermanagementaddon.go(1 hunks)addon/v1alpha1/types_managedclusteraddon.go(2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: verify
🔇 Additional comments (1)
addon/v1alpha1/types_managedclusteraddon.go (1)
37-44: Deprecation note forinstallNamespacelooks good.The Go-style deprecation comment is correctly formatted and keeps behavior unchanged.
addon/v1alpha1/0000_00_addon.open-cluster-management.io_clustermanagementaddons.crd.yaml
Outdated
Show resolved
Hide resolved
Signed-off-by: Qing Hao <[email protected]>
e58eb82 to
178f104
Compare
|
/unhold |
|
/assign @qiujian16 @zhujian7 |
qiujian16
left a comment
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.
/lgtm
/hold
|
/lgtm |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: haoqing0110, qiujian16 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 |
|
/unhold |
48b7234
into
open-cluster-management-io:main
Summary
Related issue(s)
Fixes open-cluster-management-io/ocm#1205
Summary by CodeRabbit
Documentation
Chores
Tests