You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the solution you'd like
We currently allow sonobuoy run --plugin but if you have numerous plugins this can get tedious and is more frustrating to script around.
I'd like to be able to specify something like sonobuoy run --plugin-dir or --plugins which may take a directory.
I think this would just be a shortcut for adding all those plugins one-by-one and wouldn't require much effort.
Anything else you would like to add:
I don't think this has to be overthought or have complex interaction with the existing --plugin flag. I think it is reasonable to allow both to be set and they are all just additive (i.e. it would be valid to say --plugins lotsOfPluginsInThisDir --plugin alsoAddThisOne.yaml
I am hitting this because of the integration suite we are putting together and I am currently creating lots of yaml plugin definitions and want to run them all.
The text was updated successfully, but these errors were encountered:
I don't think it would be hard to just change the flag handling to even let --plugin just handle files or directories. If it is a directory it will just load all the *.yaml files it finds in that directory.
It will prevent a new flag from being needed and just expands the use of that flag in a pretty resaonable way IMO.
If someone specifies `sonobuoy run|gen --plugin X` then X ought to
be allowed to be either a single plugin file or a directory of plugins.
To avoid dropping errors intentionally or processing lots of unnecessary
files, when processing a directory, we only consider *.yaml files. We
also do not recurse deeper into the directory.
Fixes#906
Signed-off-by: John Schnake <[email protected]>
Describe the solution you'd like
We currently allow
sonobuoy run --plugin
but if you have numerous plugins this can get tedious and is more frustrating to script around.I'd like to be able to specify something like
sonobuoy run --plugin-dir
or--plugins
which may take a directory.I think this would just be a shortcut for adding all those plugins one-by-one and wouldn't require much effort.
Anything else you would like to add:
I don't think this has to be overthought or have complex interaction with the existing
--plugin
flag. I think it is reasonable to allow both to be set and they are all just additive (i.e. it would be valid to say--plugins lotsOfPluginsInThisDir --plugin alsoAddThisOne.yaml
I am hitting this because of the integration suite we are putting together and I am currently creating lots of yaml plugin definitions and want to run them all.
The text was updated successfully, but these errors were encountered: