UNCLASSIFIED - NO CUI

Sonarqube findings: status.go

Fix the Sonarqube scan findings.

  1. Define a variable instead of duplicating this literal "namespace: %s, name: %s, status: %s\n" 7 times.
  2. 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