crossplane/docs

[Web Bug] - Configuring Crossplane with Argo CD

Opened this issue · 0 comments

"return health_status" in the following block is erroneous logic - object has 3 statuses, Sync can be False, but since Ready is True and was first in the loop, recon will turn out to a healthy resource, this is wrong.

      if condition.type == "Ready" then
        if condition.status == "True" then
          health_status.status = "Healthy"
          health_status.message = "Resource is up-to-date."
          **return health_status**
        end
      end

URL: https://docs.crossplane.io/v1.18/guides/crossplane-with-argo-cd/