Uploaded image for project: 'Service Binding'
  1. Service Binding
  2. APPSVC-1282

Implement ClusterEnvironment healthcheck

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Normal Normal
    • Primaza 0.1
    • None
    • Service Binding
    • None
    • AppSvc Sprint 237, AppSvc Sprint 238

      Owner: Architect:

      Francesco Ilario

      Story (Required)

      As a Primaza Administrator, I would like to have ClusterEnvironment healthchecks so that I know if target clusters are reachable and well-configured

      Background (Required)

      As defined in the Primaza architecture document, we need to define healthchecks for ClusterEnvironments.
      See epic for arch document link.

      Glossary

      See glossary in architecture document

      Out of scope

      • Reachability and Permission checks (they are implemented in APPSVC-1272)

      In Scope

      • Perform a check on each worker cluster every x seconds.

      Approach(Required)

      Healthchecks should be implemented in Primaza's controller. If needed, we can move it later in a different application.

      Check each worker cluster status in a timely fashion.
      The amount of seconds to wait between checks should be retrieved from an environment variable, and defaulted to 600 seconds.
      You can use concurrency to reduce time needed for checking all clusters, but it's not mandatory for now.

      ClusterEnvironment status must be updated with respect to healthcheck result. Both status.state and status.conditions must be updated.

      Demo requirements(Required)

      A great demo would demonstrate healthchecks on clusters in different conditions. Clusters status should vary and healthchecks should show that.

      Dependencies

      Edge Case

      NA

      BDD Tests

      You can find BDD Test specification for this story at in the Github Issue linked to this story

      Acceptance Criteria

      • Development
        Primaza checks whether target cluster are reachable and well-configured in a time-based fashion
      • QE
        There are test cases for healthchecks result being displayed in ClusterEnvironment conditions
      • Docs
        The docs page about ClusterEnvironment is updated with Healthcheck description
        Update architecture document with any changes while implementing

      INVEST Checklist

      Dependencies identified
      Blockers noted and expected delivery timelines set
      Design is implementable
      Acceptance criteria agreed upon
      Story estimated

       

      Legend

      Unknown
      Verified
      Unsatisfied

              bmuthuka Baiju Muthukadan
              rh-ee-filario Francesco Ilario
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: