mirror of
https://github.com/argoproj/argo-cd
synced 2026-04-21 17:07:16 +00:00
* fix: ui add tooltips on repository url links and names (#9868) (#10108) * fix: ui add tooltips on repository url links and names (#9868) Signed-off-by: XieYanke <xieyanke007@gmail.com> * fix: yarn lint failure Signed-off-by: XieYanke <xieyanke007@gmail.com> Signed-off-by: XieYanke <xieyanke007@gmail.com> Signed-off-by: Vincent <vincent.gelot@akeneo.com> * Add feature for storage.cnrm.cloud.google.com/StorageBucketAccessControl Signed-off-by: Vincent <vincent.gelot@akeneo.com> Signed-off-by: XieYanke <xieyanke007@gmail.com> Signed-off-by: Vincent <vincent.gelot@akeneo.com> Co-authored-by: 谢烟客 <xieyanke007@gmail.com>
39 lines
No EOL
951 B
Lua
39 lines
No EOL
951 B
Lua
hs = {
|
|
status = "Progressing",
|
|
message = "Update in progress"
|
|
}
|
|
if obj.status ~= nil then
|
|
if obj.status.conditions ~= nil then
|
|
for i, condition in ipairs(obj.status.conditions) do
|
|
|
|
-- Up To Date
|
|
if condition.reason == "UpToDate" and condition.status == "True" then
|
|
hs.status = "Healthy"
|
|
hs.message = condition.message
|
|
return hs
|
|
end
|
|
|
|
-- Update Failed
|
|
if condition.reason == "UpdateFailed" then
|
|
hs.status = "Degraded"
|
|
hs.message = condition.message
|
|
return hs
|
|
end
|
|
|
|
-- Dependency Not Found
|
|
if condition.reason == "DependencyNotFound" then
|
|
hs.status = "Degraded"
|
|
hs.message = condition.message
|
|
return hs
|
|
end
|
|
|
|
-- Dependency Not Ready
|
|
if condition.reason == "DependencyNotReady" then
|
|
hs.status = "Suspended"
|
|
hs.message = condition.message
|
|
return hs
|
|
end
|
|
end
|
|
end
|
|
end
|
|
return hs |