Skip to content

Commit

Permalink
refactor: add log if image hasn't been pulled or mount is still in pr…
Browse files Browse the repository at this point in the history
…ogress
  • Loading branch information
vadasambar committed Nov 28, 2023
1 parent 35b085e commit 6ab7d35
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/mountexecutor/mountexecutor.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ func NewMountExecutor(o *MountExecutorOptions) *MountExecutor {
func (m *MountExecutor) StartMounting(o *MountOptions) error {

if pullstatus.Get(o.NamedRef) != pullstatus.Pulled || mountstatus.Get(o.VolumeId) == mountstatus.StillMounting {
klog.Infof("image '%s' hasn't been pulled yet (status: %s) or volume is still mounting (status: %s)",
o.NamedRef.Name(),
pullstatus.Get(o.NamedRef), mountstatus.Get(o.VolumeId))
return nil
}

Expand Down

0 comments on commit 6ab7d35

Please sign in to comment.