-
Notifications
You must be signed in to change notification settings - Fork 630
DeepCopy is not needed in the conversion code #3622
Copy link
Copy link
Closed
Labels
good first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/feature-request
Metadata
Metadata
Assignees
Labels
good first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/feature-request
Problem
For the conversion code, the code style is inconsistent, sometimes we use DeepCopy, sometimes we don't.
Examples:
eventing/pkg/apis/sources/v1alpha1/apiserver_conversion.go
Line 119 in a0a5daf
eventing/pkg/apis/sources/v1alpha1/apiserver_conversion.go
Line 88 in a0a5daf
eventing/pkg/apis/sources/v1alpha1/apiserver_conversion.go
Line 68 in a0a5daf
As we discussed in this PR, #3616 (comment)
, DeepCopy is not needed in the conversion code. We can get rid of all DeepCopy in conversion code.
Exit Criteria
get rid of all DeepCopy in all conversion code.
Time Estimate (optional):
How many developer-days do you think this may take to resolve?
Additional context (optional)
Add any other context about the feature request here.