Skip to content

Commit

Permalink
Revert image pulling http/s to base solely on /etc/containerd/certs.d (
Browse files Browse the repository at this point in the history
  • Loading branch information
alxtkr77 authored Sep 16, 2024
1 parent 488c709 commit 06a4b04
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions pkg/cri/containerd.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,12 +231,7 @@ func (c *Containerd) createContainer(image string,

// pull the v3io-fuse image
// [IG-23016] MountVolume.SetUp failed for volume storage in k8s 1.29
var cmd *exec.Cmd
if strings.Contains(image, ":80/") {
cmd = exec.Command("/usr/local/bin/ctr", "-n", "k8s.io", "images", "pull", "--plain-http", image)
} else {
cmd = exec.Command("/usr/local/bin/ctr", "-n", "k8s.io", "images", "pull", "--hosts-dir", "/etc/containerd/certs.d/", image)
}
cmd := exec.Command("/usr/local/bin/ctr", "-n", "k8s.io", "images", "pull", "--hosts-dir", "/etc/containerd/certs.d/", image)
output, err := cmd.CombinedOutput()
// Handle errors
if err != nil {
Expand Down

0 comments on commit 06a4b04

Please sign in to comment.