Skip to content
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 the edit/copy of packagerevisions #3863

Merged
merged 1 commit into from
Mar 10, 2023
Merged

Conversation

mortent
Copy link
Contributor

@mortent mortent commented Mar 7, 2023

This PR adds proper support for the Edit/Copy task, which provides a way for creating new revisions of a package based on another one without using the replay strategy. This is needed for any package revisions that were not created through Porch and therefore doesn't have a task list we can use for replay.

The kpt alpha rpkg edit command will automatically choose the edit/copy strategy if the source revision doesn't have a task list. It also adds a flag that allows users to force the edit/copy strategy rather than the replay strategy.

It also updates the rules for the same origin policy to handle the edit task.

@mortent mortent marked this pull request as ready for review March 9, 2023 06:50
@mortent mortent requested a review from a team as a code owner March 9, 2023 06:50
@mortent mortent changed the title [WIP] Fix the edit/copy of packagerevisions Fix the edit/copy of packagerevisions Mar 9, 2023
@mortent mortent merged commit 1046ea2 into kptdev:main Mar 10, 2023
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.

None yet

2 participants