Skip to content

Commit

Permalink
fix format for image name
Browse files Browse the repository at this point in the history
  • Loading branch information
DiptoChakrabarty authored May 24, 2022
1 parent 93ffa91 commit f6ba2be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/plugin/driver/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func IsPodFailing(pod *v1.Pod) (bool, string) {
_ := pod.Spec.Containers.
elapsedPodTime := time.Since(pod.Status.StartTime.Time)
if elapsedPodTime > maxWaitForImageTime && (waiting.Reason == "ImagePullBackOff" || waiting.Reason == "ErrImagePull") {
errstr := fmt.Sprintf("Failed to pull image %v for container %v within %v. Container is in state %v",cstatus.Image, cstatus.Name, maxWaitForImageTime, waiting.Reason)
errstr := fmt.Sprintf("Failed to pull image %v for container %v within %v. Container is in state %v", cstatus.Image, cstatus.Name, maxWaitForImageTime, waiting.Reason)
return true, errstr
}
}
Expand Down

0 comments on commit f6ba2be

Please sign in to comment.