cluster-api icon indicating copy to clipboard operation
cluster-api copied to clipboard

✨ Disable DWARF and symbol table to decrease binary/image size

Open Sunnatillo opened this issue 2 months ago • 4 comments

What this PR does / why we need it: This PR removes DWARF and symbol table from binaries by default and introduces an option including them by setting DBG=1 .

Current images

kubeadm-control-plane-controller-amd64   97.4MB
kubeadm-bootstrap-controller-amd64      88.9MB
cluster-api-controller-amd64   		95.2MB

After removing DWARF and symbol table

kubeadm-control-plane-controller-amd64   67.7MB
kubeadm-bootstrap-controller-amd64      61.9MB
cluster-api-controller-amd64            66.3MB

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged): Fixes # https://github.com/kubernetes-sigs/cluster-api/issues/12855

Sunnatillo avatar Oct 14 '25 11:10 Sunnatillo

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Once this PR has been reviewed and has the lgtm label, please assign enxebre for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment Approvers can cancel approval by writing /approve cancel in a comment

k8s-ci-robot avatar Oct 14 '25 11:10 k8s-ci-robot

/area misc

Sunnatillo avatar Oct 30 '25 09:10 Sunnatillo

Thx for the PR. I want to do some due diligence before merging it. Just probably won't find time to do it any time soon

sbueringer avatar Oct 30 '25 11:10 sbueringer

/retest

Sunnatillo avatar Dec 08 '25 08:12 Sunnatillo

/retest

Sunnatillo avatar Dec 22 '25 07:12 Sunnatillo