-
Notifications
You must be signed in to change notification settings - Fork 15
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
table_kubernetes_pod_disruption_budget #76
Conversation
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.
@mafrosis I have suggested some changes, please have a look. Also please add the test and docs of the table.
Heh, I used I'll have a look at the optional key columns comment, and push some changes. |
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.
@mafrosis I've left a few small comments, please take a look when you get a chance.
Thanks again for raising this PR!
order by | ||
namespace, name; | ||
``` | ||
|
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.
Please add some more example queries around minAvailable/maxUnavailable, for reference you can check this document.
@bigdatasourav @cbruno10 Gents, can you share some docs on writing/running the tests? I don't see to be able to find them. There's |
Hi @bigdatasourav, your earlier request to add better example queries made me frown, but this request to add integration testing CI to your project made me laugh out loud! I'm afraid I have only limited minutes between work, family & life to contribute to open source, so my time is short. At this stage the table works for my needs using just EDIT: To be clear, thanks for your review! Let me know if there are any functional changes that need fixing the code and I'm happy to update 😄 |
Hey @mafrosis , for some more background on why examples are helpful, all examples are visible on our Hub site, e.g., https://hub.steampipe.io/plugins/turbot/kubernetes/tables/kubernetes_node, which we host so users can learn how to query the table easily, interact with some of the more complex columns, and sometimes join tables together to get information effectively. You may have known all of this already, but I figured it may be helpful for you (and others reading) as to why we ask for so many examples for each table. Also, apologies for the confusion on the integration testing process. In this plugin, and others that use the same framework, we do create integration tests, but the instructions aren't clear, and up until now we've been the main ones creating integration tests. Because the process is unclear, we're happy to add an integration test for this table after merging it in. @bigdatasourav will do a further review tomorrow, but I anticipate the PR should be merged in by this time tomorrow roughly, and then released in an official version later this week. Thanks again for adding this new table and if you have any other questions, please let us know! |
Posting early working draft for review. Will add tests+docs.
https://pkg.go.dev/k8s.io/client-go@v0.24.3/kubernetes/typed/policy/v1beta1#PodDisruptionBudgetInterface