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

Flag to import buildpack order from existing CNB builder images when creating Builders/ClusterBuilders #384

Open
chenbh opened this issue Jan 15, 2024 · 0 comments
Labels
good first issue Good for newcomers

Comments

@chenbh
Copy link
Contributor

chenbh commented Jan 15, 2024

To ease with the transition between pack and kpack, we should make it easier to read/parse a CNB builder image into a kpack Builder resource.

Thanks to how kpack deals with buildpackages, we can easily import the buildpacks of a CNB builder and make it available to the Builders using kp buildpack create builder-jammy-base --image paketobuildpacks/builder-jammy-base. However, to create a Builder/ClusterBuilder, we still need to extract the ordering from the CNB builder image. We can do this by using pack builder inspect and parsing the output, but it would be nicer if kp is smart enough to do it for us.

Maybe we can add a flag --order-from gcr.io/paketo-buildpacks/builder-jammy-base where kp can grab the image config and extract the io.buildpacks.buildpack.order label to be used in the spec.

@chenbh chenbh added the good first issue Good for newcomers label Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant