Skip to content

Commit

Permalink
Added more test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
lblackstone committed Nov 30, 2018
1 parent 3a84349 commit 07905e0
Show file tree
Hide file tree
Showing 2 changed files with 754 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/await/apps_statefulset.go
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,11 @@ func (sia *statefulsetInitAwaiter) aggregatePodErrors() ([]string, []string) {
scheduleErrorCounts := map[string]int{}
containerErrorCounts := map[string]int{}
for _, pod := range sia.pods {
// Filter down to only Pods owned by the active ReplicaSet.
if !isOwnedBy(pod, sia.statefulset) {
continue
}

// Check the pod for errors.
checker := makePodChecker()
checker.check(pod)
Expand Down
Loading

0 comments on commit 07905e0

Please sign in to comment.