mirror of
https://github.com/argoproj/argo-cd
synced 2026-04-21 17:07:16 +00: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:
parent
b320854f04
commit
275c5de627
2 changed files with 9 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue