kubernetes-testing-framework icon indicating copy to clipboard operation
kubernetes-testing-framework copied to clipboard

Separate dumped k8s resources info by resource kind

Open randmonkey opened this issue 2 years ago • 0 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Problem Statement

The dumped k8s resources and events (results of kubectl get all and kubectl describe all) are put into a single file. The file is usually very large and hard to find wanted object. Since the result is generated by calling kubectl get <resourceKind> --all-namespaces -o yaml for each kind of resource, we could put the results into one file per resource kind to reduce the size of a single file and make each file clearer.

Proposed Solution

  • Output to a single file when we call kubectl get <resourceKind> --all-namespaces -o yaml
  • Name the file to the resource kind, and put the files to a directory kubectl_get_all
  • Do the similar thing to kubectl describe all

Additional information

No response

Acceptance Criteria

  • [ ] Results of kubectl get all and kubectl describe all are separated to a single file per resource kind

randmonkey avatar Apr 24 '23 03:04 randmonkey