Uploaded image for project: 'OpenShift GitOps'
  1. OpenShift GitOps
  2. GITOPS-2018

Subscription health check marks it degraded for InstallPlanMissing condition being true even if the operator has no issues

    XMLWordPrintable

Details

    • False
    • None
    • False
    • Hide
      Before this fix, Subscription health check was marked degraded for missing InstallPlan when more than 5 operators are installed in a project. With this fix, Subscription health check will not be marked as degraded for missing InstallPlan if more than 5 operators are installed in a project.
      Show
      Before this fix, Subscription health check was marked degraded for missing InstallPlan when more than 5 operators are installed in a project. With this fix, Subscription health check will not be marked as degraded for missing InstallPlan if more than 5 operators are installed in a project.

    Description

      There is an issue with the health check for subscription object in ArgoCD.

      A project can have max 5 InstallPlan objects. Whenever more than 5 operators are installed in a project, the oldest InstallPlan gets deleted. This is the default behaviour.

      Now if the operators are managed in ArgoCD as apps, the operator whose subscription has 'InstallPlanMissing' condition true is marked degraded which shouldn't always be the case. The operator works fine and just the InstallPlan being missing doesn't affect it's functionality. Also it shows all good on the Installed Operators page. Hence it shouldn't be marked degraded in GitOps just because InstallPlan is missing.

      The health check conditions need changes.

      https://github.com/argoproj/argo-cd/blob/master/resource_customizations/operators.coreos.com/Subscription/health.lua#L11

      Attachments

        Activity

          People

            isequeir@redhat.com Ishita Sequeira
            rhn-support-alosingh Alok Singh
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: