-
Notifications
You must be signed in to change notification settings - Fork 613
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
Add restart count to TMDE v4 response #4166
Conversation
5ff0611
to
bc83af0
Compare
4e9befe
to
1278ff3
Compare
6db4637
to
0d00199
Compare
if !ok { | ||
// did not find container, continue on and try next container(s) | ||
// we don't return error here to avoid disrupting all of a TMDS response | ||
// on a single missing container. |
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.
Should we add a log at warning or debug level if the container cannot be found from the state?
Like https://github.com/aws/amazon-ecs-agent/blob/master/agent/handlers/v4/stats_response.go#L41-L46.
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.
yes I can add that
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.
Thanks!
* Add restart count to TMDE v4 response * Add warning log message if container is not found in internal state
* Add restart count to TMDE v4 response * Add warning log message if container is not found in internal state
* Add restart count to TMDE v4 response * Add warning log message if container is not found in internal state
* Add restart count to TMDE v4 response * Add warning log message if container is not found in internal state
Summary
Update v4 TMDE with the restart count of the container, if the container has a restart policy enabled.
Testing
unit tests updated, manual check on restart count being incremented as expected
Description for the changelog
NA
Licensing
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.