Skip to content
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

Adds commands to print default plugin definitions #1051

Merged
merged 1 commit into from
Dec 17, 2019
Merged

Adds commands to print default plugin definitions #1051

merged 1 commit into from
Dec 17, 2019

Conversation

johnSchnake
Copy link
Contributor

What this PR does / why we need it:
We have the sonobuoy gen command which prints a lot of
different types of resources and sonobuoy gen plugin which
prints custom plugin definitions. Sometimes it would be helpful
to be able to print the default e2e or sytemdlogs plugin definitions
so that they can be tweaked.

Added two commands sonobuoy gen plugins e2e and
sonobuoy gen plugins systemd-logs which does this.

Minor tweak to code organization to improve code reuse.

Which issue(s) this PR fixes
Fixes #991

Special notes for your reviewer:
These were just printing some data by hitting a code path that was already being used/tested. I didn't add any new tests for this code. Let me know if you want to add some basic one.

Release note:

Adds two subcommands (e2e and systemd-logs) to `sonobuoy gen plugin` which will print those plugin definitions respectively. This will hopefully make certain workflows easier by giving users a starting point for their plugin definition.

@johnSchnake
Copy link
Contributor Author

Thanks to @zubron I found the tests were failing because of some issue with the sonobuoy gen logic; still to be fixed but cd tests/integration && sonobuoy gen -p testImage/yaml/job-junit-passing-singlefile.yaml will output the default plugins and the specified plugin. This means that it is trying to run a full conformance run which causes the tests to time out.

We have the `sonobuoy gen` command which prints a lot of
different types of resources and `sonobuoy gen plugin` which
prints custom plugin definitions. Sometimes it would be helpful
to be able to print the default e2e or sytemdlogs plugin definitions
so that they can be tweaked.

Added two commands `sonobuoy gen plugins e2e` and
`sonobuoy gen plugins systemd-logs` which does this.

Minor tweak to code organization to improve code reuse.

Fixes #991

Signed-off-by: John Schnake <jschnake@vmware.com>
@johnSchnake johnSchnake merged commit e41ac6e into vmware-tanzu:master Dec 17, 2019
@johnSchnake johnSchnake deleted the printDefaultPluginConfigs branch December 17, 2019 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Facilitate printing the default plugin definitions
2 participants