digitalocean / clusterlint

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

Return the correct node names in the node labels and taints check #138

Closed adamwg closed 2 years ago

adamwg commented 2 years ago

Previously a loop variable was being used for the node name in the diagnostic returned from the node labels and taints check. If the offending node wasn't the last one in the list, the wrong node name would be returned.

Add a test to reproduce the issue, and copy the loop variable to fix it.

Thanks @kimschles for reporting this issue!