Skip to content

Add DeepCopy generation to all API types#4527

Draft
mozesl-nokia wants to merge 3 commits into
kptdev:mainfrom
nokia:deepcopy-all
Draft

Add DeepCopy generation to all API types#4527
mozesl-nokia wants to merge 3 commits into
kptdev:mainfrom
nokia:deepcopy-all

Conversation

@mozesl-nokia
Copy link
Copy Markdown
Contributor

@mozesl-nokia mozesl-nokia commented May 18, 2026

We have only been generating DeepCopy methods for a few select types, but it would be very useful to do so for all of the API types so it can be easily used by consumers (Porch).

Added the appropriate kubebuilder annotation to be on package level for both the main Kptfile types and fnresult types, the go generate comments, then ran the generation.

Had to add a manual DeepCopyInto method for fnresultv1.Result, since it has a kyaml framework.Result field, which does not have DeepCopyInto.

@netlify
Copy link
Copy Markdown

netlify Bot commented May 18, 2026

Deploy Preview for kptdocs ready!

Name Link
🔨 Latest commit ec66f6a
🔍 Latest deploy log https://app.netlify.com/projects/kptdocs/deploys/6a0ac76fe5d3da0008d73b1e
😎 Deploy Preview https://deploy-preview-4527--kptdocs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Signed-off-by: Mózes László Máté <laszlo.mozes@nokia.com>
Signed-off-by: Mózes László Máté <laszlo.mozes@nokia.com>
Signed-off-by: Mózes László Máté <laszlo.mozes@nokia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant