mirror of
https://github.com/argoproj/argo-cd.git
synced 2026-02-20 01:28:45 +01:00
fix: improves the Rabbit MQ resouce customization to better handle unknown conditions (#25941)
Signed-off-by: Patroklos Papapetrou <ppapapetrou76@gmail.com>
This commit is contained in:
committed by
GitHub
parent
b320854f04
commit
275c5de627
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user