-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Add support to pull OCI kustomize manifests #5134
Comments
Ping @natasha41575 I created a separate issue for this to make it a bit more visible. |
Dibs |
/triage accepted I think we should support OCI for both kustomize build and kustomize localize. Thanks for filing the issue! |
Providing some more details on the requirements here:
That means that if we support localizing an oci manifest e.g. Oci support also means that we support oci resources in the kustomization file. For example, we currently support:
If we say we support oci in addition to git, we need to support:
This case needs to be handled by both Implementation-wise, both The implementation also needs to include tests for both localize and build. These can be found in |
@natasha41575 I went ahead and implemented the changes requested, however I couldn't find details around the
Where can I see docs on the above? |
@FrenchBen Did you ever open a PR with your implementation? I am also very interested in this feature!
I don't think this feature was ever documented. It seems to have been added by @natasha41575 in #4065. From a user perspective, I expect this new feature to just set the
Should probably add something like
to all resources emitted? See https://github.com/kubernetes-sigs/kustomize/blob/336bc14e1a1c5733564ffb6c9d33f0be04671ee1/api/krusty/originannotation_test.go |
Fancy seeing you here @erikgb :) |
@natasha41575 - has this been put on hold? I've seen last relevant activity in the referenced pr #5147 back in august. It would be great to have this. I am handling dockers and helms as OCIs and am missing this for kustomize as well. This would allow me to handover complete app deployment composed of docker, helm and kustomize as a single reference to OCI registry which would be really cool. |
Eschewed features
What would you like to have added?
I would like to make it possible to build and pull OCI artifacts containing Kustomize manifests.
This is a feature that the flux community have implemented https://fluxcd.io/flux/installation, https://fluxcd.io/flux/cmd/flux_pull_artifact/
So a simple example, you can write the following and it will download the OCI artifact and unpack it.
For those of us that uses flux it's nothing strange, but for none flux users it would be nice to be able to do the same using Kustomize.
So adding oci support to localize and build to be able to do something like this would be nice:
Why is this needed?
OCI is getting a big foothold when it comes to artifact management in the CNCF landscape, and it will be used more and more. The possibility of signing and easily versioning manifests is something that should be possible through kustomize
Can you accomplish the motivating task without this feature, and if so, how?
It's possible to solve this by using flux, but since it's a third party tool, I don't think the majority of kustomize users will want to do it.
What other solutions have you considered?
N/A
Anything else we should know?
It would also be nice to add support to create OCI artifact from manifests, I haven't thought of a potential good syntax.
As I see it, it could be done in two seperate features.
I would start with pulling, since OCI artifacts containing kustomize files already are available today.
I started this conversation in #4996 (comment) but I wanted an issue that I could reference.
Feature ownership
The text was updated successfully, but these errors were encountered: