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

Find ways to slim down provider binary sizes #475

Open
jake-ciolek opened this issue Mar 5, 2025 · 0 comments
Open

Find ways to slim down provider binary sizes #475

jake-ciolek opened this issue Mar 5, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@jake-ciolek
Copy link
Contributor

What problem are you facing?

This issue doesn’t significantly impact us, but we noticed that the container images generated from Upjet-based providers (specifically the AWS provider in this case) are quite large.

For reference, the S3 image is 768MB:

REPOSITORY TAG IMAGE ID CREATED SIZE
xpkg.upbound.io/upbound/provider-aws-s3 v1.20.1 0ea4c3c5e06f 17 seconds ago 768MB

I then performed a raw go build over the cmd/provider/sqs zz_main.go file, which resulted in a binary that's 1.1GB in size:

-rwxr-xr-x@ 1 jakub staff 1.1G Mar 5 15:58 sqs

This build is based on the c47300 commit. For comparison, the Go 1.24 binary is around 18MB.

How could Upjet help solve your problem?

We could find ways to slim down the generated binary, which would reduce the size of the container images, saving storage space and speeding up deployments.

Additionally, the build time seemed quite long. Optimizing the binary size could likely reduce build times significantly.

@jake-ciolek jake-ciolek added the enhancement New feature or request label Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant