Skip to content

Commit 007b9c3

Browse files
committed
Address comments: move Connected check
Signed-off-by: Arnaud Farbos <[email protected]>
1 parent e227e9e commit 007b9c3

File tree

1 file changed

+2
-2
lines changed
  • resource_customizations/ceph.rook.io/CephCluster

1 file changed

+2
-2
lines changed

resource_customizations/ceph.rook.io/CephCluster/health.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ end
4747

4848
-- Check state - https://github.com/rook/rook/blob/v1.17.7/pkg/apis/ceph.rook.io/v1/types.go#L621
4949
if obj.status.state ~= nil then
50-
if hs.status == "Healthy" or hs.status == "Connected" then
50+
if hs.status == "Healthy" then
5151
append_to_message("Ceph cluster state is " .. obj.status.state)
52-
if obj.status.state == "Created" then
52+
if obj.status.state == "Created" or obj.status.state == "Connected" then
5353
hs.status = "Healthy"
5454
elseif obj.status.state == "Error" then
5555
hs.status = "Degraded"

0 commit comments

Comments
 (0)