-
Notifications
You must be signed in to change notification settings - Fork 184
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
chore: filter events to reconcile by CRD API version #8521
Conversation
cd9c5a2
to
1392463
Compare
add("", name) | ||
} else { | ||
add(annotations[constant.CRDAPIVersionAnnotationKey], name) | ||
} |
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.
For a map type, if you only get an object, GoLang will return a zero value of the corresponding value type even if the map is nil.
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.
Done
pkg/controllerutil/predicate.go
Outdated
reflect.TypeOf(&appsv1.ComponentDefinition{}), | ||
reflect.TypeOf(&appsv1.ComponentVersion{}), | ||
reflect.TypeOf(&appsv1.Component{}), | ||
reflect.TypeOf(&workloadsv1.InstanceSet{}): |
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.
how to reconcile the cd/cmpd, seems constant.CRDAPIVersionAnnotationKey
not patched on these objects
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.
Annotations will be added to cd/cmpd/cmpv within the Addon.
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.
somewhat invasive for addon and is only needed when coexisting with version 0.9
1a85942
to
8e78693
Compare
8e78693
to
956b766
Compare
956b766
to
c88da1b
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8521 +/- ##
==========================================
+ Coverage 60.75% 60.86% +0.10%
==========================================
Files 376 376
Lines 45506 46262 +756
==========================================
+ Hits 27648 28158 +510
- Misses 15291 15501 +210
- Partials 2567 2603 +36
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
/cherry-pick release-1.0-beta |
🤖 says: cherry pick action finished successfully 🎉! |
(cherry picked from commit 808f253)
No description provided.