Skip to content

Commit

Permalink
Add ErrInvalidImageName
Browse files Browse the repository at this point in the history
  • Loading branch information
Luiz Felipe Takakura committed Aug 15, 2019
1 parent 65c8cce commit 9f109c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions models/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,5 @@ var InvalidPodWaitingStates = []string{
"ErrImageNeverPull",
"ErrImagePullBackOff",
"CrashLoopBackOff",
"ErrInvalidImageName",
}
1 change: 1 addition & 0 deletions models/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,7 @@ func IsPodReady(pod *v1.Pod) bool {
// - ErrImageNeverPull
// - CrashLoopBackOff
// - ErrImagePullBackOff
// - ErrInvalidImageName
func ValidatePodWaitingState(pod *v1.Pod) error {

for _, invalidState := range InvalidPodWaitingStates {
Expand Down

0 comments on commit 9f109c0

Please sign in to comment.