Merge pull request #29388 from ronnielai/image-gc-check

Automatic merge from submit-queue

Avoiding trying to gc images with no tags which are still in use

#29325
This commit is contained in:
k8s-merge-robot
2016-07-27 16:44:50 -07:00
committed by GitHub
7 changed files with 102 additions and 130 deletions

View File

@@ -1528,9 +1528,10 @@ func (r *Runtime) convertRktPod(rktpod *rktapi.Pod) (*kubecontainer.Pod, error)
ID: buildContainerID(&containerID{rktpod.Id, app.Name}),
Name: app.Name,
// By default, the version returned by rkt API service will be "latest" if not specified.
Image: fmt.Sprintf("%s:%s", app.Image.Name, app.Image.Version),
Hash: containerHash,
State: appStateToContainerState(app.State),
Image: fmt.Sprintf("%s:%s", app.Image.Name, app.Image.Version),
ImageID: app.Image.Id,
Hash: containerHash,
State: appStateToContainerState(app.State),
})
}