feat: add Resource Kind in output #1069
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
It was very hard to tell the resource type of error object.
![image](https://private-user-images.githubusercontent.com/14049268/323190006-9b339525-06eb-47b4-adb6-5ca17f93a867.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ0NzEyNjAsIm5iZiI6MTcyNDQ3MDk2MCwicGF0aCI6Ii8xNDA0OTI2OC8zMjMxOTAwMDYtOWIzMzk1MjUtMDZlYi00N2I0LWFkYjYtNWNhMTdmOTNhODY3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI0VDAzNDI0MFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQxNDllNDVhZWU0OTYwNjY5Zjg1NDMzZTRlMzNhNDlkZGE5OTIzNWQxMzE4MjIxMDZjZmY5YTY3YWE0YTliOWImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.YbT0jC0nBcp3b5DqUYDEv0j_rVBhjXVRiOTgZ8wNUJE)
![image](https://private-user-images.githubusercontent.com/14049268/323190249-a500a3bd-ab93-45f2-8f60-27f3c86b2956.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ0NzEyNjAsIm5iZiI6MTcyNDQ3MDk2MCwicGF0aCI6Ii8xNDA0OTI2OC8zMjMxOTAyNDktYTUwMGEzYmQtYWI5My00NWYyLThmNjAtMjdmM2M4NmIyOTU2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI0VDAzNDI0MFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTA0YmRhZjgxOTUxY2I0MDM5ZjgzZGYwNzQzNTVjNDQxMDA3NWQwZDBkMWYwOTUzNTU0NDAzZGZlMzBlZTRlMDkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.zu4tf1JdGAmKy64yS3u4H-6ofEhVmv99B9L_feYlmNw)
I made me hard to deep dive to diagnostic with additional kubectl or other operation .
for example :
Below errors ,I have to guess they are pods:
But for below , just guess ? a pod again ? No, it's a deployment or statefulset :-)
![image](https://private-user-images.githubusercontent.com/14049268/323190578-81a60f71-4ca3-4648-89f3-24a3eac94685.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ0NzEyNjAsIm5iZiI6MTcyNDQ3MDk2MCwicGF0aCI6Ii8xNDA0OTI2OC8zMjMxOTA1NzgtODFhNjBmNzEtNGNhMy00NjQ4LTg5ZjMtMjRhM2VhYzk0Njg1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI0VDAzNDI0MFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTUyYTNlMTllZTZhZWNhMDUwMjY0NzIyYmViOTllZDA5NzI1MTVlMzBlZjJiZDI1OTlmZWUzZDQ4ZmVkYTBhZGQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.I7YK1kWWlwoOLmzcBzsSHkhktE6pitWhko7QzOKzYBc)
Closes #
📑 Description
✅ Checks
ℹ Additional Information
I use Hi-Yellow , correct me if better color suits.
![image](https://private-user-images.githubusercontent.com/14049268/323189644-efa3cc3a-04a8-4d16-a407-575f7a677872.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ0NzEyNjAsIm5iZiI6MTcyNDQ3MDk2MCwicGF0aCI6Ii8xNDA0OTI2OC8zMjMxODk2NDQtZWZhM2NjM2EtMDRhOC00ZDE2LWE0MDctNTc1ZjdhNjc3ODcyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI0VDAzNDI0MFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTYzMmY3YTZjZjNlZjQxOWJmNWQzMTcxNjZkZDU2NzcyZmYxZTI2NDQ4NjU0NWEyNTc3NjBmMTgzNWNlNzQ5OWQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Otj0F1kSJMATfNHYg6_PfWV68f6QFo2htnvwPbzkIcU)