You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(ecs): evaluate targetgroup healthcheck in instance healthcheck (#6307) (#6371)
* fix(ecs): include healthcheck status from targetgroups in instance healthcheck
* test(ecs): add tests for default behavior and targetgroup healthchecks
* fix(ecs): check null for loadBalancer attribute
* refactor(ecs): improve testing and use targetHealth to determine status only if containerHealthcheck is UNKNOWN
* fix(ecs): evaluate TargetHealth check if container deployed does have target groups associated
---------
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
(cherry picked from commit 7ce44a3)
Co-authored-by: Edgar Garcia <63310723+edgarulg@users.noreply.github.com>
Copy file name to clipboardExpand all lines: clouddriver-ecs/src/main/java/com/netflix/spinnaker/clouddriver/ecs/services/ContainerInformationService.java
Copy file name to clipboardExpand all lines: clouddriver-ecs/src/test/groovy/com/netflix/spinnaker/clouddriver/ecs/services/ContainerInformationServiceSpec.groovy
def service =newContainerInformationService(ecsCredentialsConfig,
@@ -50,7 +54,8 @@ class ContainerInformationServiceSpec extends Specification {
50
54
taskHealthCacheClient,
51
55
taskDefinitionCacheClient,
52
56
ecsInstanceCacheClient,
53
-
containerInstanceCacheClient)
57
+
containerInstanceCacheClient,
58
+
targetHealthCacheClient)
54
59
55
60
def'should return a proper health status'() {
56
61
given:
@@ -247,6 +252,142 @@ class ContainerInformationServiceSpec extends Specification {
247
252
'HEALTHY' | 'Up' | 'RUNNING'
248
253
}
249
254
255
+
def'should return Up health check status if task is running but healthcheck in container definition is null and targetHealthchecks related container is null'() {
def'should return health status based on target group if task is running but healthcheck in container definition is null and container has a targetHealthcheck defined'() {
def'should return health status based on target group if task is running but healthcheck in container definition is null and container has multiple targetHealthcheck related'() {
0 commit comments