Beautify cert based cluster scanning and output, using GitLab Duo /refactor
Code Summary
This update significantly improves the GitLab Kubernetes cluster scanner script that helps identify certificate-based clusters that need migration. The changes transform a basic utility into a more professional, user-friendly tool with:
- Better documentation through a proper docstring explaining the purpose and requirements
- Enhanced output formatting that makes cluster information more readable with clear section dividers
- A new function to format cluster details in a structured way, showing only the most relevant information
- More comprehensive cluster information display including creation dates, status, provider details, and creator information
- Summary statistics showing total counts of clusters found
- Improved organization with clear separation between group and project clusters
- Timestamp information in the output to track when scans were performed
- Better error handling and code structure
The script now presents information in a much more digestible format, making it easier for administrators to plan their Kubernetes cluster migrations.