Skip to content

Commit

Permalink
fix: strip CNI plugins
Browse files Browse the repository at this point in the history
Reduce size of CNI plugins by stripping debug info.

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
  • Loading branch information
smira committed Aug 9, 2024
1 parent 124d35b commit a6db229
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cni/pkg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ steps:
- |
export PATH=${PATH}:${TOOLCHAIN}/go/bin
cd ${GOPATH}/src/
/toolchain/bin/bash ./build_linux.sh
GOFLAGS="-ldflags=-s" /toolchain/bin/bash ./build_linux.sh
install:
- |
mkdir -p /rootfs/opt/cni/bin
Expand Down
2 changes: 1 addition & 1 deletion flannel-cni/pkg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ steps:
sed -i '/BUILD_DATE=/c BUILD_DATE="1"' scripts/version.sh
sed -i '/COMMIT=/c COMMIT={{ .flannel_cni_ref }}' scripts/version.sh
/toolchain/bin/bash scripts/build_flannel.sh
EXTRA_LDFLAGS=-s /toolchain/bin/bash scripts/build_flannel.sh
install:
- |
mkdir -p /rootfs/opt/cni/bin
Expand Down

0 comments on commit a6db229

Please sign in to comment.