✨ Disable DWARF and symbol table to decrease binary/image size
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
[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.
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment
/area misc
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
/retest
/retest