-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support json response as cli output #37
Conversation
only problem i've noticed when testing is that the json output for hpas is different when no unused hpas are found because of a difference in the JSON functions. output for no unused hpas is: {} all other resources when there none unused return something like: {
"kor": {
"Deployments": null
}
} refactoring the json outputs to one standard should probably be discussed in a different issue. |
also some returning null and some returning an empty array: {
"default": {
"ConfigMap": [],
"Deployment": null,
"Hpa": null,
"Ingress": [],
"Pvc": [],
"Role": [],
"Secret": [],
"Service": null,
"ServiceAccount": [],
"Statefulset": null
}
} |
I can also add |
Won't this be cleaned up by the MR? |
I'll open an issue to align the json responses |
no because only I think we should handle everything else in different issues and close this one. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
to solve #35
@yonahd