-
Notifications
You must be signed in to change notification settings - Fork 363
[RFC0031] Support for System Cloud Native Buildpacks #3898
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
base: main
Are you sure you want to change the base?
[RFC0031] Support for System Cloud Native Buildpacks #3898
Conversation
788251d
to
b55a772
Compare
b55a772
to
29d7904
Compare
29d7904
to
27210e1
Compare
27210e1
to
ca076ad
Compare
8862fab
to
c27a9a9
Compare
c27a9a9
to
b43a8e4
Compare
b43a8e4
to
0cc1cac
Compare
0cc1cac
to
5ba3373
Compare
@pbusko @nicolasbender thanks for the PR. We'd like to get this merged in soon, if possible. Is there anything left to do on this PR before its ready? Can you help me understand the right format for uploading a CNB? I've tried the format specified here but I get the error |
When repackaging a CNB as a zip file I simply get the
|
Upgraded to latest diego-release and am getting different errors: With a tgz file:
With a zip file:
|
I was able to get this to work by uploading the artifact from the docker repo instead:
This has a few extra files compared to the file published to Github. According to the RFC, I think the (as a side note--should we allow direct uploading of |
Hi @sethboyles, The artifact must be a gzipped tarball with an OCI layout inside. It was decided based on the fact that CC must select one of the supported media types by |
@pbusko Ok. When I upload a
I think we've got a fix that will allow us to upload CNB files directly. |
@pbusko are there any outstanding items that are blocking this PR? Any unimplemented aspects that you are aware of? |
@sethboyles this PR is pending review since Jul/August 2024
As I mentioned before, the name of the file should not matter, since CAPI checks the first bytes to determine the file type. Also it is stated in the RFC, the file must be a gzipped tarball (not zip). The
|
Co-authored-by: Pavel Busko <pavel.busko@sap.com>
Co-authored-by: Nicolas Bender <nicolas.bender@sap.com>
Co-authored-by: Nicolas Bender <nicolas.bender@sap.com>
Co-authored-by: Nicolas Bender <nicolas.bender@sap.com>
Co-authored-by: Pavel Busko <pavel.busko@sap.com>
Co-authored-by: Johannes Dillmann <j.dillmann@sap.com>
Co-authored-by: Pavel Busko <pavel.busko@sap.com>
Co-authored-by: Johannes Dillmann <j.dillmann@sap.com>
Co-authored-by: Johannes Dillmann <j.dillmann@sap.com>
Co-authored-by: Pavel Busko <pavel.busko@sap.com>
Co-authored-by: Ralf Pannemans <ralf.pannemans@sap.com>
Co-authored-by: Pavel Busko <pavel.busko@sap.com>
Co-authored-by: Ralf Pannemans <ralf.pannemans@sap.com>
Co-authored-by: Nicolas Bender <nicolas.bender@sap.com>
5ba3373
to
cc3ac62
Compare
Co-authored-by: Pavel Busko <pavel.busko@sap.com>
- This is a follow on to cloudfoundry#3898 which only supports uploading CNBs as zip or tgz whereas they are released in cnb format Signed-off-by: Tom Kennedy <tom.kennedy@broadcom.com>
- This is a follow on to cloudfoundry#3898 which only supports uploading CNBs as zip or tgz whereas they are released in cnb format Signed-off-by: Tom Kennedy <tom.kennedy@broadcom.com>
- This is a follow on to cloudfoundry#3898 which only supports uploading CNBs as zip or tgz whereas they are released in cnb format Signed-off-by: Tom Kennedy <tom.kennedy@broadcom.com>
- This is a follow on to cloudfoundry#3898 which only supports uploading CNBs as zip or tgz whereas they are released in cnb format Signed-off-by: Tom Kennedy <tom.kennedy@broadcom.com>
@pbusko thanks for clarifying on the gzip tarball/zip and fixing some of the tests. Uploading a non-gzip or zip results in this error:
And uploading a zip succeeds--it only fails in the staging process. I'm currently seeing two paths forward with that aspect:
I think we are leaning toward number 1 as of now. I see that we also need a capi-release PR for the We are happy to implement these changes (and other minor polishing aspects) if you are OK with it. Thoughts? |
@sethboyles I agree that the right path is a set of more precise checks on CAPI side during the buildpack upload process. In order to support both, gzipped tarballs and zip archives, we would need to preserve the information about the buildpack format, so that the media type in the generated diego actions (which download buildpacks from blobstore) is correct. Also tar format is the adopted format for OCI packages, which speaks in favor of this option as well.
Absolutely, feel free to add what you see fit |
Co-authored-by: Nicolas Bender <nicolas.bender@sap.com> Co-authored-by: Pavel Busko <pavel.busko@sap.com>
e9fbe7c
to
d3b75b6
Compare
- This is a follow on to cloudfoundry#3898 which only supports uploading CNBs as zip or tgz whereas they are released in cnb format Signed-off-by: Tom Kennedy <tom.kennedy@broadcom.com>
Support for System (admin) Cloud Native Buildpacks
Implementation of the RFC0031
This PR requires changes to the cloud_controller_worker config, to include the
default_app_lifecycle
property with the default valuebuildpack
, similar to https://github.com/cloudfoundry/capi-release/blob/b8afc27dbfbb4dc3749485cb23ab9bf65801e26b/jobs/cloud_controller_ng/templates/cloud_controller_ng.yml.erb#L542Links to any other associated PRs
I have reviewed the contributing guide
I have viewed, signed, and submitted the Contributor License Agreement
I have made this pull request to the
main
branchI have run all the unit tests using
bundle exec rake
I have run CF Acceptance Tests