Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions k3s.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: k3s
version: 1.27.4
epoch: 3
epoch: 4
description:
copyright:
- license: Apache-2.0
Expand Down Expand Up @@ -82,8 +82,12 @@ pipeline:
mkdir -p "${{targets.destdir}}"/bin/
mv bin/k3s "${{targets.destdir}}"/bin/_k3s-inner

# ensure `ctr` is also packaged
sed -i 's/for i in containerd crictl/for i in containerd crictl ctr/' ./scripts/package-cli

# Modify the packaging script to exclusively use symlinks to our moved "inner" binary
sed -i 's|ln -s k3s bin/$i|ln -s /bin/_k3s-inner bin/$i|g' ./scripts/package-cli
# Also create a copy of the symlink in /bin/ to support callers depending on $PATH
sed -i 's|ln -s k3s bin/$i|ln -s /bin/_k3s-inner ${{targets.destdir}}/bin/$i|g' ./scripts/package-cli

# Remove the upload portion from the upstream package-cli script
sed -e '/scripts\/build-upload/d' -i scripts/package-cli
Expand Down