-
Notifications
You must be signed in to change notification settings - Fork 345
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
Show logs for a specific plugin #868
Show logs for a specific plugin #868
Conversation
Add a new flag to the `logs` command to show the logs only for a specific plugin. If not provided, or no pods are found for the plugin, default to showing all logs. We didn't have a way to uniquely identify pods for a plugin, so this change adds a new label when creating Pods and DaemonSets which can be used to filter the pods. This means that the flag will not work for older versions of Sonobuoy, but it will still default to showing all logs which was the original behaviour. Signed-off-by: Bridget McErlean <[email protected]>
1b08517
to
54094f1
Compare
Codecov Report
@@ Coverage Diff @@
## master #868 +/- ##
==========================================
+ Coverage 46.9% 47.18% +0.27%
==========================================
Files 75 75
Lines 4863 4881 +18
==========================================
+ Hits 2281 2303 +22
+ Misses 2450 2448 -2
+ Partials 132 130 -2
Continue to review full report at Codecov.
|
Seems like that LGTM but I'm going to run it manually to double check and then I'll approve. |
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.
Worked as expected for sonobuoy logs
and sonobuoy logs --follow
👍
The |
What this PR does / why we need it:
Add a new flag to the
logs
command to show the logs only for aspecific plugin. If not provided, or no pods are found for the plugin,
default to showing all logs.
We didn't have a way to uniquely identify pods for a plugin, so this
change adds a new label when creating Pods and DaemonSets which can
be used to filter the pods. This means that the flag will not work
for older versions of Sonobuoy, but it will still default to showing
all logs which was the original behaviour.
Signed-off-by: Bridget McErlean [email protected]
Which issue(s) this PR fixes
Release note: