-
Notifications
You must be signed in to change notification settings - Fork 640
Decouple Container Instance Health from the doctor. #4811
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
base: dev
Are you sure you want to change the base?
Conversation
…doctor implementation.
| InstanceHealthCheckStatusInitializing InstanceHealthCheckStatus = iota | ||
| InstanceHealthCheckStatusOk | ||
| InstanceHealthCheckStatusImpaired | ||
| ) |
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.
We should probably add back the comments we had for these const in the old ecs-agent/doctor/healthcheckstatus.go file
| InstanceHealthCheckTypeContainerRuntime = "ContainerRuntime" | ||
| InstanceHealthCheckTypeAgent = "Agent" | ||
| InstanceHealthCheckTypeEBSDaemon = "EBSDaemon" | ||
| InstanceHealthCheckTypeNvidia = "NvidiaAcceleratedHardware" |
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.
Where is this constant going to be used?
Summary
This change decouples Container Instance Health from the doctor. The primary changes are:
Implementation details
The instanceStatusMessages chan follows the existing pattern of for container health and metrics in the TCS client. The addition of the chan is optional when instantiating the client in order to maintain backwards compatibility.
Testing
Description for the changelog
Enhancement - Decouple Container Instance Health from the doctor.
Additional Information
Does this PR include breaking model changes? If so, Have you added transformation functions?
No
Does this PR include the addition of new environment variables in the README?
No
Licensing
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.