Skip to content

Commit

Permalink
fix: health-checks for Elasticsearch (argoproj#13322)
Browse files Browse the repository at this point in the history
* fix: health-checks for Elasticsearch

Signed-off-by: Thomas Decaux <ebuildy@gmail.com>
Signed-off-by: ebuildy <ebuildy@gmail.com>

* fix tests

Signed-off-by: ebuildy <ebuildy@gmail.com>

---------

Signed-off-by: Thomas Decaux <ebuildy@gmail.com>
Signed-off-by: ebuildy <ebuildy@gmail.com>
  • Loading branch information
ebuildy authored and xiaowu.zhu committed Aug 9, 2023
1 parent 52e58dd commit f5ea1bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ if obj.status ~= nil then
hs.message = "Elasticsearch Cluster status is Green"
return hs
elseif obj.status.health == "yellow" then
hs.status = "Degraded"
hs.status = "Progressing"
hs.message = "Elasticsearch Cluster status is Yellow. Check the status of indices, replicas and shards"
return hs
elseif obj.status.health == "red" then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ tests:
message: "Elasticsearch Cluster status is Green"
inputPath: testdata/ready_green.yaml
- healthStatus:
status: Degraded
status: Progressing
message: "Elasticsearch Cluster status is Yellow. Check the status of indices, replicas and shards"
inputPath: testdata/ready_yellow.yaml
- healthStatus:
Expand Down

0 comments on commit f5ea1bf

Please sign in to comment.