-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Fix clusterresourcequota status deepcopy #11595
Fix clusterresourcequota status deepcopy #11595
Conversation
@smarterclayton @deads2k PTAL |
[test] |
LGTM |
@@ -115,6 +116,26 @@ func (o *ResourceQuotasStatusByNamespace) OrderedKeys() *list.List { | |||
return o.orderedMap.OrderedKeys() | |||
} | |||
|
|||
func init() { |
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.
now that we were actually copying the internal fields, semantic deepequal choked on comparing different unexported fields. we need to tell it how to compare our custom type. not sure where to hook this (AddKnownTypes? init() here?)
@@ -5,11 +5,12 @@ | |||
package api | |||
|
|||
import ( | |||
reflect "reflect" |
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.
this is what the generator produces now?
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.
fixed up
just the question about deepcopy generation not conflicting. lgtm |
will pick to 1.3.x/3.3.x once tests are green |
Evaluated for origin test up to c37bec0 |
continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/10758/) (Base Commit: 0403599) |
green tests |
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/10758/) (Image: devenv-rhel7_5263) |
Evaluated for origin merge up to c37bec0 |
fixes #11560
based on #11621