Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,12 @@ if obj.status ~= nil then
end
end

-- Treat transient/initial 'Unknown' condition as Progressing instead of Degraded.
-- The RabbitMQ operator sets these conditions to Unknown briefly while forming the cluster,
-- so mapping Unknown->Progressing prevents false Degraded states during normal reconciliation.
if clusterAvailable.status == "Unknown" or allReplicasReady.status == "Unknown" then
hs.status = "Degraded"
hs.message = "No statefulset or endpoints found"
hs.status = "Progressing"
hs.message = "Waiting for RabbitMQ cluster readiness (conditions unknown)"
return hs
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ tests:
message: Unknown 'foo' parameter
inputPath: testdata/degraded_badconfig.yaml
- healthStatus:
status: Degraded
message: No statefulset or endpoints found
status: Progressing
message: Waiting for RabbitMQ cluster readiness (conditions unknown)
inputPath: testdata/degraded_cluster_unknown.yaml
- healthStatus:
status: Degraded
message: No statefulset or endpoints found
status: Progressing
message: Waiting for RabbitMQ cluster readiness (conditions unknown)
inputPath: testdata/degraded_replicas_unknown.yaml
- healthStatus:
status: Progressing
Expand Down
Loading