Skip to content

Commit

Permalink
more tests and fix for caching issue in lookups
Browse files Browse the repository at this point in the history
  • Loading branch information
jrjyipee committed Aug 10, 2018
1 parent 974d683 commit 133b94b
Show file tree
Hide file tree
Showing 6 changed files with 1,101 additions and 245 deletions.
7 changes: 7 additions & 0 deletions daemonset.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ package main
import (
"context"
// "fmt"
"sort"
"strings"
)

Expand Down Expand Up @@ -67,6 +68,12 @@ func getDaemonSetPods(ctx context.Context, d daemonSet) *[]pod {
results[idx] = pr.p
}

sort.Slice(
results,
func(i, j int) bool {
return *results[i].Metadata.Name < *results[j].Metadata.Name
})

return &results
}

Expand Down
Loading

0 comments on commit 133b94b

Please sign in to comment.