You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enhance destroy-openshift-cluster.sh with improved logging and compatibility
Major improvements:
- Remove jq dependency: Use native Unix tools (grep, sed, awk) for JSON parsing
- Improve logging consistency: All output lines have [INFO] prefixes for better parsing
- Add flexible logging options:
- --log-file PATH for custom log locations
- --no-log to disable file logging
- Prioritize /var/log/openshift-destroy/ when accessible
- Add --no-color flag to disable colored output for CI/CD pipelines
- Highlight cluster names in cyan for better visibility
- Organize logging preamble with clean sections
- Apply consistent formatting to list mode output
The script now works on any system with standard Unix tools without
requiring jq installation, and provides flexible logging options for
different deployment scenarios.
0 commit comments