Skip to content

Commit cc7d1fb

Browse files
committed
Include condition for inactive MRD
Includes a condition in the Lua snippet for counting an inactive MRD as healthy. Signed-off-by: Tom van Dinther <39470469+tvandinther@users.noreply.github.com>
1 parent 519f8b2 commit cc7d1fb

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

content/master/guides/crossplane-with-argo-cd.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ data:
175175
end
176176
177177
if contains({"Ready", "Healthy", "Offered", "Established", "ValidPipeline", "RevisionHealthy"}, condition.type) then
178-
if condition.status == "True" then
178+
if condition.status == "True" or (condition.type == "Established" and condition.reason == "InactiveManagedResource") then
179179
health_status.status = "Healthy"
180180
health_status.message = "Resource is up-to-date."
181181
end

content/v2.0/guides/crossplane-with-argo-cd.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ data:
175175
end
176176
177177
if contains({"Ready", "Healthy", "Offered", "Established", "ValidPipeline", "RevisionHealthy"}, condition.type) then
178-
if condition.status == "True" then
178+
if condition.status == "True" or (condition.type == "Established" and condition.reason == "InactiveManagedResource") then
179179
health_status.status = "Healthy"
180180
health_status.message = "Resource is up-to-date."
181181
end

content/v2.1/guides/crossplane-with-argo-cd.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ data:
175175
end
176176
177177
if contains({"Ready", "Healthy", "Offered", "Established", "ValidPipeline", "RevisionHealthy"}, condition.type) then
178-
if condition.status == "True" then
178+
if condition.status == "True" or (condition.type == "Established" and condition.reason == "InactiveManagedResource") then
179179
health_status.status = "Healthy"
180180
health_status.message = "Resource is up-to-date."
181181
end

0 commit comments

Comments
 (0)