-
Notifications
You must be signed in to change notification settings - Fork 227
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
Oci support #2566
Oci support #2566
Conversation
* Adds `oci://` to disambiguate `kpt pkg get` argument
Hey @loudej we just launched a public design document template. Could be good to describe how OCI will work in a way that's visible to the user base: https://github.com/GoogleContainerTools/kpt/blob/main/CONTRIBUTING.md |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR @loudej
One thing I was wondering was if we could abstract out the pkg fetcher code such that we can have pkg fetcher implementation for GitPkgFetcher and OciPkgFetcher and we instantiate these as early as possible in the command life-cycle. This could avoid code having switch case for Git
and Oci
.
WDYT ?
Hi @mikebz Sounds like a great idea. As I understand the procedure - this idea is to have an additional PR that contains only a copy of the md and it should be in the same folder as the template? @droot Sounds good - I'll take a look. I think I know what layer you're talking about (something to use just under the util/*/Command logic) |
Yes. What I have seen with other products is the same folder but maybe start with a different number. Thank you! |
@droot Hi again! Well, there was already a It has an Ah - the impact on the code is that it is cleaner, but it will make it harder to keep the branch in line with main. |
* this startup check probably doesn't make sense any more? the pkg update logic doesn't rely on the state of the local git repo to merge
I am looking forward to the design document, especially highlighting the user guide/journey for |
@phanimarupaka sounds great, sorry for the delay! That is my next task on deck, and thanks for the help! |
Added companion PR #2589 with design doc. Happy to iterate and collaborate on that, hoping it aligns with what you were expecting! Also PR is smaller scope than design doc - it doesn't support sub-package or diff yet - and push/pull commands aren't added. |
* Mainly involves using upstream.Fetcher methods
Based on design and latest conversations
* Fixing a direct reference to Git field * Adding output to pkg push command
* Rename Fether to Upstream * Split Upstream and Origin implementations
Closing this PR in favor of #2621 which is rebased on current main |
Adds OCI support for
kpt pkg get
First PR of a small series to add OCI to an experimental kpt branch