Skip to content

Conversation

@liamfallon
Copy link
Contributor

This PR aligns the kpt api types in Porch and kpt.

The only difference in the types is that the "copy-merge" update strategy in Porch does not exist in kpt. This PR adds that strategy to kpt. The copy-merge strategy uses a new RemoveStaleItems utility function, which is included in this PR as well.

Whne this PR is merged, the kpt API types can be used directly in Porch, allowing the cloned types in Porch to be deleted. Further, this will allow duplicate code in Porch to be removed bit by bit.

@netlify
Copy link

netlify bot commented Jan 5, 2026

Deploy Preview for kptdocs ready!

Name Link
🔨 Latest commit 4cf1698
🔍 Latest deploy log https://app.netlify.com/projects/kptdocs/deploys/695e6a9a87c75600086b0438
😎 Deploy Preview https://deploy-preview-4341--kptdocs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

@liamfallon liamfallon changed the title Sync types Aling API types between Porch and kpt Jan 5, 2026
@liamfallon liamfallon changed the title Aling API types between Porch and kpt Align API types between Porch and kpt Jan 5, 2026
Signed-off-by: liamfallon <liam.fallon@est.tech>
Signed-off-by: liamfallon <liam.fallon@est.tech>
Signed-off-by: liamfallon <liam.fallon@est.tech>
Signed-off-by: liamfallon <liam.fallon@est.tech>
Signed-off-by: liamfallon <liam.fallon@est.tech>
@efiacor
Copy link
Contributor

efiacor commented Jan 7, 2026

prob need a docs update to go with this right?
https://kpt.dev/reference/cli/pkg/update/
Also, did we switch to calling it upgrade in Porch?

@liamfallon
Copy link
Contributor Author

prob need a docs update to go with this right? https://kpt.dev/reference/cli/pkg/update/ Also, did we switch to calling it upgrade in Porch?

When we bring in the "upgrade" we'll have to completely revisit the documentation in kpt. Today kpt is still on "update" but in porch we have replaced that with "upgrade", so when we make that port, we should update the docs. We may also port some of the documentation done on Porch to kpt for that area.

@liamfallon liamfallon merged commit 30b5949 into kptdev:main Jan 8, 2026
15 checks passed
@liamfallon liamfallon deleted the sync-types branch January 8, 2026 14:13
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.

3 participants