nixos/kubernetes/kubelet: Fix sandbox image load on containerd 2.x (#364558)

This commit is contained in:
Christina Sørensen 2024-12-14 12:45:14 +01:00 committed by GitHub
commit 5d48167f78
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -345,9 +345,9 @@ in
echo "Seeding container image: ${img}"
${
if (lib.hasSuffix "gz" img) then
''${pkgs.gzip}/bin/zcat "${img}" | ${pkgs.containerd}/bin/ctr -n k8s.io image import --all-platforms -''
''${pkgs.gzip}/bin/zcat "${img}" | ${pkgs.containerd}/bin/ctr -n k8s.io image import -''
else
''${pkgs.coreutils}/bin/cat "${img}" | ${pkgs.containerd}/bin/ctr -n k8s.io image import --all-platforms -''
''${pkgs.coreutils}/bin/cat "${img}" | ${pkgs.containerd}/bin/ctr -n k8s.io image import -''
}
'') cfg.seedDockerImages}