diff --git a/content/master/guides/crossplane-with-argo-cd.md b/content/master/guides/crossplane-with-argo-cd.md index 928ef9f67..bf0e8fdde 100644 --- a/content/master/guides/crossplane-with-argo-cd.md +++ b/content/master/guides/crossplane-with-argo-cd.md @@ -174,6 +174,14 @@ data: end end + if condition.type == "Installed" then + if condition.status == "False" then + health_status.status = "Degraded" + health_status.message = condition.message + return health_status + end + end + if contains({"Ready", "Healthy", "Offered", "Established", "ValidPipeline", "RevisionHealthy"}, condition.type) then if condition.status == "True" then health_status.status = "Healthy" diff --git a/content/v1.20/guides/crossplane-with-argo-cd.md b/content/v1.20/guides/crossplane-with-argo-cd.md index 23fd31db8..26c330693 100644 --- a/content/v1.20/guides/crossplane-with-argo-cd.md +++ b/content/v1.20/guides/crossplane-with-argo-cd.md @@ -168,6 +168,14 @@ data: end end + if condition.type == "Installed" then + if condition.status == "False" then + health_status.status = "Degraded" + health_status.message = condition.message + return health_status + end + end + if contains({"Ready", "Healthy", "Offered", "Established"}, condition.type) then if condition.status == "True" then health_status.status = "Healthy" diff --git a/content/v2.0-preview/guides/crossplane-with-argo-cd.md b/content/v2.0-preview/guides/crossplane-with-argo-cd.md index 920a3daa8..f7839c62d 100644 --- a/content/v2.0-preview/guides/crossplane-with-argo-cd.md +++ b/content/v2.0-preview/guides/crossplane-with-argo-cd.md @@ -167,6 +167,14 @@ data: end end + if condition.type == "Installed" then + if condition.status == "False" then + health_status.status = "Degraded" + health_status.message = condition.message + return health_status + end + end + if contains({"Ready", "Healthy", "Offered", "Established"}, condition.type) then if condition.status == "True" then health_status.status = "Healthy" diff --git a/content/v2.0/guides/crossplane-with-argo-cd.md b/content/v2.0/guides/crossplane-with-argo-cd.md index 928ef9f67..bf0e8fdde 100644 --- a/content/v2.0/guides/crossplane-with-argo-cd.md +++ b/content/v2.0/guides/crossplane-with-argo-cd.md @@ -174,6 +174,14 @@ data: end end + if condition.type == "Installed" then + if condition.status == "False" then + health_status.status = "Degraded" + health_status.message = condition.message + return health_status + end + end + if contains({"Ready", "Healthy", "Offered", "Established", "ValidPipeline", "RevisionHealthy"}, condition.type) then if condition.status == "True" then health_status.status = "Healthy" diff --git a/content/v2.1/guides/crossplane-with-argo-cd.md b/content/v2.1/guides/crossplane-with-argo-cd.md index 928ef9f67..bf0e8fdde 100644 --- a/content/v2.1/guides/crossplane-with-argo-cd.md +++ b/content/v2.1/guides/crossplane-with-argo-cd.md @@ -174,6 +174,14 @@ data: end end + if condition.type == "Installed" then + if condition.status == "False" then + health_status.status = "Degraded" + health_status.message = condition.message + return health_status + end + end + if contains({"Ready", "Healthy", "Offered", "Established", "ValidPipeline", "RevisionHealthy"}, condition.type) then if condition.status == "True" then health_status.status = "Healthy" diff --git a/content/v2.2/guides/crossplane-with-argo-cd.md b/content/v2.2/guides/crossplane-with-argo-cd.md index 928ef9f67..bf0e8fdde 100644 --- a/content/v2.2/guides/crossplane-with-argo-cd.md +++ b/content/v2.2/guides/crossplane-with-argo-cd.md @@ -174,6 +174,14 @@ data: end end + if condition.type == "Installed" then + if condition.status == "False" then + health_status.status = "Degraded" + health_status.message = condition.message + return health_status + end + end + if contains({"Ready", "Healthy", "Offered", "Established", "ValidPipeline", "RevisionHealthy"}, condition.type) then if condition.status == "True" then health_status.status = "Healthy"