Sonarqube findings: status.go
Fix the Sonarqube scan findings.
- Define a variable instead of duplicating this literal "namespace: %s, name: %s, status: %s\n" 7 times.
- Refactor podStatus method to reduce its Cognitive Complexity from 58 to the 15 allowed. Too many levels of loops and if statements. Create helper functions to fix.
Edited by kevin.wilder