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

pin to v1 containerd shim #35268

Closed
wants to merge 2 commits into from
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
58 changes: 4 additions & 54 deletions k3s.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
package:
name: k3s
version: 1.31.2.1
epoch: 3
epoch: 4
description:
copyright:
- license: Apache-2.0
dependencies:
runtime:
- busybox
- conntrack-tools
- containerd-shim-runc-v2
# TODO(joshrwolf): Bump to v2 when upstream bumps containerd
- containerd-shim-runc-v2~1
- ip6tables # this pulls in iptables as well
- kmod
- libseccomp
Expand Down Expand Up @@ -65,10 +66,8 @@ pipeline:
./scripts/download
- uses: go/bump
with:
deps: go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/[email protected] google.golang.org/[email protected] github.com/golang-jwt/jwt/[email protected]
deps: go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/[email protected] google.golang.org/[email protected] github.com/opencontainers/[email protected]
- runs: |
sed -i '/VERSION_RUNC=$(get-module-version github.com\/opencontainers\/runc)/a VERSION_RUNC="v1.1.14"' ./scripts/version.sh

# Override the go version check at runtime to always match the go version at build time
# Ref: https://github.com/k3s-io/k3s/pull/9054
GOVERSION=$(go env GOVERSION)
Expand Down Expand Up @@ -224,55 +223,6 @@ subpackages:
portmap --version
portmap --help

- name: k3s-images
description: "pre-packaged k3s core runtime images"
pipeline:
- runs: |
set -e -u -x

_arch=$(go env GOARCH)

images=""
while read -r line
do
repo=$(echo $line | cut -d ':' -f 1)
tag=$(echo $line | cut -d ':' -f 2)

# Replace upstream images with cgr.dev equivalents only if they exist
case $repo in
docker.io/rancher/klipper-helm|docker.io/rancher/klipper-lb|docker.io/rancher/local-path-provisioner|docker.io/rancher/mirrored-pause)
# TODO: Replace these known gaps with cgr variants
image="$repo:$tag@$(crane digest $repo:$tag)"
;;
docker.io/rancher/mirrored-metrics-server)
image=$(crane digest --full-ref cgr.dev/chainguard/metrics-server:latest)
;;
docker.io/rancher/mirrored-coredns-coredns)
image=$(crane digest --full-ref cgr.dev/chainguard/coredns:latest)
;;
docker.io/rancher/mirrored-library-busybox)
image=$(crane digest --full-ref cgr.dev/chainguard/busybox:latest)
;;
docker.io/rancher/mirrored-library-traefik)
image=$(crane digest --full-ref cgr.dev/chainguard/traefik:latest)
;;
*)
echo "unaccounted for image: $repo:$tag"
exit 1
;;
esac

images="$images $image"
done < ./scripts/airgap/image-list.txt

echo "Pulling images locally..."
echo $images

_images_path="${{targets.subpkgdir}}"/var/lib/rancher/k3s/agent/images
mkdir -p $_images_path

crane pull $images $_images_path/k3s-airgap-images-$_arch.tar

update:
enabled: true
# Ignore any release-candidate tags
Expand Down
Loading