Monat: April 2023

How to implement CRD Healthchecks for ArgoCD?

Blog

How to implement CRD Healthchecks for ArgoCD?

...~= nil then if obj.status.conditions ~= ...
...~= nil then for ...
...nil then for _, ...
...then for _, condition ...
...in ipairs(obj.status.conditions) do ...
...ipairs(obj.status.conditions) do ...
...do if ...
... if condition.type ...
... if condition.type == ...
...== "False" then ...
..."False" then ...
...then ...
... ...
... hs.status ...
... hs.status = ...
... hs.status = "Degraded" ...
...hs.status = "Degraded" ...
...= "Degraded" ...
..."Degraded" ...
... ...
... hs.message ...
... hs.message = ...
... hs.message = condition.message ...
...condition.message or condition.reason ...
...or condition.reason ...
...condition.reason ...
... ...
... return ...
... return hs ...
... return hs ...
... return hs ...
...return hs ...
...hs end ...
... end ...
... end ...
... end ...
... end ...
...end if ...
... if condition.type ...
... if condition.type == ...
...== "True" then ...
..."True" then ...
...then ...
... ...
... hs.status ...
... hs.status = ...
... hs.status = "Healthy" ...
...hs.status = "Healthy" ...
...= "Healthy" ...
..."Healthy" ...
... ...
... hs.message ...
... hs.message = ...
... hs.message = condition.message ...
...condition.message or condition.reason ...
...or condition.reason ...
...condition.reason ...
... ...
... return ...
... return hs ...
... return hs ...
... return hs ...
...return hs ...
...hs end ...
... end ...
... end ...
... end end ...
... end end ...
...end end end end return ...
... end end end return hs ‘’’ “hs” refers ...

Anzeigen

Warum Software verrostet und wie wir gegen den Verfall ankämpfen.