-
Notifications
You must be signed in to change notification settings - Fork 1k
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
feat(ecs): Update Task HealthStatus logic #4496
Conversation
@allisaurus @clareliguori please review |
clouddriver-ecs/src/main/java/com/netflix/spinnaker/clouddriver/ecs/model/EcsTask.java
Outdated
Show resolved
Hide resolved
...rc/main/java/com/netflix/spinnaker/clouddriver/ecs/services/ContainerInformationService.java
Outdated
Show resolved
Hide resolved
...rc/main/java/com/netflix/spinnaker/clouddriver/ecs/services/ContainerInformationService.java
Outdated
Show resolved
Hide resolved
@pkandasamy91 I think this should be "feat(ecs)" instead of "fix", since we're adding criteria to how task health is considered. Also, I think this addresses spinnaker/spinnaker#5377 - can you mention that in the summary so it's explicit? |
Will update the title. I was thinking of it along the lines of task health should have been used to determine the task status in the first place so this would be a bug (considering the task is not actually successful but Spinnaker marking it a success). Thoughts? |
I agree it would've been preferred that health status was always taken into account, but we're now unlocking new capabilities (utilizing container health) and also changing the behavior of a core competency (evaluating task health -> deployment success/fail). Put another way: the behavior change is enough that I would vote against patching this to previous versions. Feels like a minor release kind of change re: expectations, etc. What do you think? |
Agree on this being a feat |
I definitely see how it can be both a fix and a feat. I agree, we should not patch this to previous versions, as this could potentially break existing customers, and the previous behaviour might have been relied upon by customers. I'll update the pr title to be a feature. |
5b35f29
to
a97dd82
Compare
...er-ecs/src/main/java/com/netflix/spinnaker/clouddriver/ecs/cache/client/TaskCacheClient.java
Show resolved
Hide resolved
cdca393
to
b6bca29
Compare
Feedback addressed :) |
Updated the TaskHealthStatus to be determined using the HealthStatus of the task. If a health check is defined a container within the task, wait for the task health status to be healthy, otherwise, use the task status.
Addresses: spinnaker/spinnaker#5377