-
Notifications
You must be signed in to change notification settings - Fork 440
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
Create a must-gather for the operator #3150
Conversation
Signed-off-by: Israel Blancas <iblancasa@gmail.com>
Signed-off-by: Israel Blancas <iblancasa@gmail.com>
…rator into feature/3149
Signed-off-by: Israel Blancas <iblancasa@gmail.com>
…or into feature/3149
Signed-off-by: Israel Blancas <iblancasa@gmail.com>
…or into feature/3149
…or into feature/3149
…rator into feature/3149
…or into feature/3149
Signed-off-by: Israel Blancas <iblancasa@gmail.com>
…rator into feature/3149
…or into feature/3149
…rator into feature/3149
Signed-off-by: Israel Blancas <iblancasa@gmail.com>
…rator into feature/3149
…rator into feature/3149
Signed-off-by: Israel Blancas <iblancas@redhat.com>
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.
I'm fine with this PR as is, and this kind of tool doesn't really need extensive testing. But I would like to have some assurance that it actually works on a basic level. Is there some kind of E2E test we could do to verify that?
…rator into feature/3149
Signed-off-by: Israel Blancas <iblancas@redhat.com>
I added some unit tests and I think that should be enough. I'll ask for guidance from our QE expert to see if we can add some E2E tests but I think that can be done as part of a separate PR. |
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.
👍
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.
a couple of nits and a question
if err != nil { | ||
log.Fatalln(err) | ||
} | ||
err = cluster.GetOpenTelemetryCollectors() |
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.
Does it add collector logs?
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.
Just the collector. If you want, I can also add the collector logs but I would prefer to add it as part of a new PR. Otherwise, we will never merge this one.
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 do in a follow up PR
…rator into feature/3149
Signed-off-by: Israel Blancas <iblancas@redhat.com>
@pavolloffay I addressed your comments. Is this ok to merge? |
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.
just a nit for changelog
.chloggen/3149-add-must-gather.yaml
Outdated
change_type: enhancement | ||
|
||
# The name of the component, or a single word describing the area of concern, (e.g. collector, target allocator, auto-instrumentation, opamp, github action) | ||
component: instrumentation, collector |
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.
auto-instrumentation
if err != nil { | ||
log.Fatalln(err) | ||
} | ||
err = cluster.GetOpenTelemetryCollectors() |
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 do in a follow up PR
…rator into feature/3149
Description: adds
must-gather
tool for troubleshooting.I created it using Golang so we can add it directly to the operator container image.