Skip to content

DeepCopy is not needed in the conversion code #3622

@capri-xiyue

Description

@capri-xiyue

Problem
For the conversion code, the code style is inconsistent, sometimes we use DeepCopy, sometimes we don't.
Examples:

sink.Spec.CloudEventOverrides = source.Spec.CloudEventOverrides

if source.Spec.CloudEventOverrides != nil {

if source.Spec.ResourceOwner != nil {

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueDenotes 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.kind/feature-request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions