Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
qianjun1993 committed Jan 18, 2021
1 parent 16b154a commit fe306ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/tapp/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -1271,8 +1271,8 @@ func isUpdating(pod *corev1.Pod) bool {
pod.Namespace, pod.Name, expectedImage, status.Image, status.ImageID)
return true
} else if oldStatus, ok := inPlaceUpdateState.LastContainerStatuses[status.Name]; ok {
// oldStatus means this Container should be changed in updating, then we check the ImageID and ImageTag.
// if the new ImageID is same as the old and the imageTag is different from the expect, the pod is updating
// oldStatus means this Container should be changed in updating, then we check the ImageID and Image tag.
// if the new ImageID is same as the old and the image tag is different from the expect, the pod is updating
if oldStatus.ImageID == status.ImageID && !isSameImage(expectedImage, status.Image) {
klog.V(5).Infof("Pod %s/%s is updating: %v(expected) vs %v(got), imageId: %v",
pod.Namespace, pod.Name, expectedImage, status.Image, status.ImageID)
Expand Down

0 comments on commit fe306ac

Please # to comment.