mirror of
https://github.com/argoproj/argo-cd.git
synced 2026-02-20 01:28:45 +01:00
feat: Add suspended status in custom resource health for flux resources (#19508)
Signed-off-by: Adrian Berger <adrian.berger@bedag.ch>
This commit is contained in:
@@ -1,4 +1,9 @@
|
||||
local hs = {}
|
||||
if obj.spec.suspend ~= nil and obj.spec.suspend == true then
|
||||
hs.message = obj.kind .. " is suspended"
|
||||
hs.status = "Suspended"
|
||||
return hs
|
||||
end
|
||||
if obj.status ~= nil then
|
||||
if obj.status.conditions ~= nil then
|
||||
local numProgressing = 0
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
local hs = {}
|
||||
if obj.spec.suspend ~= nil and obj.spec.suspend == true then
|
||||
hs.message = obj.kind .. " is suspended"
|
||||
hs.status = "Suspended"
|
||||
return hs
|
||||
end
|
||||
if obj.status ~= nil then
|
||||
if obj.status.conditions ~= nil then
|
||||
local numProgressing = 0
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
local hs = {}
|
||||
if obj.spec.suspend ~= nil and obj.spec.suspend == true then
|
||||
hs.message = obj.kind .. " is suspended"
|
||||
hs.status = "Suspended"
|
||||
return hs
|
||||
end
|
||||
if obj.status ~= nil then
|
||||
if obj.status.conditions ~= nil then
|
||||
local numProgressing = 0
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
local hs = {}
|
||||
if obj.spec.suspend ~= nil and obj.spec.suspend == true then
|
||||
hs.message = obj.kind .. " is suspended"
|
||||
hs.status = "Suspended"
|
||||
return hs
|
||||
end
|
||||
if obj.status ~= nil then
|
||||
if obj.status.conditions ~= nil then
|
||||
local numProgressing = 0
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
local hs = {}
|
||||
if obj.spec.suspend ~= nil and obj.spec.suspend == true then
|
||||
hs.message = obj.kind .. " is suspended"
|
||||
hs.status = "Suspended"
|
||||
return hs
|
||||
end
|
||||
if obj.status ~= nil then
|
||||
if obj.status.conditions ~= nil then
|
||||
local numFailing = 0
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
local hs = {}
|
||||
if obj.spec.suspend ~= nil and obj.spec.suspend == true then
|
||||
hs.message = obj.kind .. " is suspended"
|
||||
hs.status = "Suspended"
|
||||
return hs
|
||||
end
|
||||
if obj.status ~= nil then
|
||||
if obj.status.conditions ~= nil then
|
||||
local numProgressing = 0
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
local hs = {}
|
||||
if obj.spec.suspend ~= nil and obj.spec.suspend == true then
|
||||
hs.message = obj.kind .. " is suspended"
|
||||
hs.status = "Suspended"
|
||||
return hs
|
||||
end
|
||||
if obj.status ~= nil then
|
||||
if obj.status.conditions ~= nil then
|
||||
local numProgressing = 0
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
local hs = {}
|
||||
if obj.spec.suspend ~= nil and obj.spec.suspend == true then
|
||||
hs.message = obj.kind .. " is suspended"
|
||||
hs.status = "Suspended"
|
||||
return hs
|
||||
end
|
||||
if obj.status ~= nil then
|
||||
if obj.status.conditions ~= nil then
|
||||
local numProgressing = 0
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
local hs = {}
|
||||
if obj.spec.suspend ~= nil and obj.spec.suspend == true then
|
||||
hs.message = obj.kind .. " is suspended"
|
||||
hs.status = "Suspended"
|
||||
return hs
|
||||
end
|
||||
if obj.status ~= nil then
|
||||
if obj.status.conditions ~= nil then
|
||||
local numProgressing = 0
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
local hs = {}
|
||||
if obj.spec.suspend ~= nil and obj.spec.suspend == true then
|
||||
hs.message = obj.kind .. " is suspended"
|
||||
hs.status = "Suspended"
|
||||
return hs
|
||||
end
|
||||
if obj.status ~= nil then
|
||||
if obj.status.conditions ~= nil then
|
||||
local numProgressing = 0
|
||||
|
||||
Reference in New Issue
Block a user