digitalocean / clusterlint

A best practices checker for Kubernetes clusters. 🤠
Apache License 2.0
542 stars 45 forks source link

Make "details" for the label check stable #91

Closed adamwg closed 4 years ago

adamwg commented 4 years ago

The tests for #90 failed because the order of map iteration is non-deterministic, causing custom labels in the node label check to appear in random order in the diagnostic details. Sort the slice of labels so that the output is stable.