Skip to content

Commit f1a9c63

Browse files
committed
fix: image not mounting if the image already exists on the node
1 parent 80505aa commit f1a9c63

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/pullexecutor/pullexecutor.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,13 @@ func (m *PullExecutor) StartPulling(o *PullOptions) error {
7575
shouldPull := o.PullAlways || !m.mounter.ImageExists(o.Context, o.NamedRef)
7676
if shouldPull {
7777
klog.Infof("pull image %q ", o.Image)
78+
pullstatus.Update(o.NamedRef, pullstatus.StillPulling)
7879
if err = puller.Pull(o.Context); err != nil {
7980
pullstatus.Update(o.NamedRef, pullstatus.Errored)
8081
return errors.Errorf("unable to pull image %q: %s", o.NamedRef, err)
8182
}
8283
}
84+
pullstatus.Update(o.NamedRef, pullstatus.Pulled)
8385
return nil
8486
}
8587

0 commit comments

Comments
 (0)