-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Prepare docker autodiscover in 6.7 for ECS and dedotting #10899
Conversation
func (d *Provider) emitContainer(event bus.Event, flag string) { | ||
container, meta := d.generateMetaDocker(event) | ||
var host string | ||
if len(container.IPAddresses) > 0 { |
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.
Looks like if the condition here is hit, we'll return nil
for container
and this line will panic
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.
Good catch, this also affects 7.0 branch that I already merged 🙁 I will open another PR to fix it in master.
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.
Fixed here and opened PR for master/7.0 #10928
thanks for taking this on @jsoriano. |
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.
LGTM
Partial backport of #10898 to 6.7
Summary of backported changes:
Co-Authored-By: kaiyan-sheng kaiyan.sheng@elastic.co
Co-Authored-By: Nicolas Ruflin spam@ruflin.com