-
Notifications
You must be signed in to change notification settings - Fork 348
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
Provide flags to disable non plugin related operations #682
Comments
Hi @leodotcloud , A few thoughts:
All that being said we (1) want to make things easier for users and (2) even though we intend for queries to go to their own plugin which could be skipped entirely I have no idea of how priorities will shift. I think that a flag/field for skipping the query logic would be appropriate. Tag me in the PR and thanks for the contribution! |
I'm considering nixing this in light of some discussion about what functionality already exists. The idea is that we should be able to just stop the queries almost completely by just setting However I just found a bug that was causing this to not be the case. After that goes it, it seems like it is just about making it more well known how to tweak query options. I'm open to expanding that, but I don't think the flag is strictly necessary then. Will update again once that goes in with a more clear example and caveats about it. |
With the fixes that went in this is fairly easy, just needing to provide the empty (non-nil) resources config setting. The only thing that is gathered are the logs for the namespace sonobuoy was in which is helpful for understanding many results anyways.
Note: the worker image has to be set here because this is on master right now (and I just pushed a publish master image) but not on the last "released" version. You could also use
For now I'm going to close this since there is an existing workaround. If you feel strongly that you still want these log queries removed as well then we can continue the discussion. |
Describe the solution you'd like
When using sonobuoy with a plugin, (https://github.com/heptio/sonobuoy/blob/master/pkg/discovery/discovery.go#L111) there is no need to run the other steps in this function. Like there is no need to run the queries in different namespaces. Having flags like
--disable-queries
might be useful to avoid breaking usage.If this is an acceptable thing, I can quickly make a PR with the changes.
The text was updated successfully, but these errors were encountered: