fix cronjob sort bug, daemonsets status bug, add ingress to v1alpha3 (#2541)

Signed-off-by: Jeff <zw0948@gmail.com>
This commit is contained in:
zryfish
2020-07-22 19:33:25 +08:00
committed by GitHub
parent 1096eb8adb
commit 24c06da9bc
7 changed files with 236 additions and 7 deletions

View File

@@ -106,12 +106,16 @@ func (c *cronJobSearcher) Search(namespace string, conditions *params.Conditions
}
}
sort.Slice(result, func(i, j int) bool {
return c.compare(result[i], result[j], orderBy) && !reverse
if reverse {
return !c.compare(result[i], result[j], orderBy)
} else {
return c.compare(result[i], result[j], orderBy)
}
})
r := make([]interface{}, 0)
for _, i := range result {
r = append(r, i)
for i := range result {
r = append(r, result[i])
}
return r, nil
}