operator icon indicating copy to clipboard operation
operator copied to clipboard

PWX-38118: Health Checks

Open lpabon opened this issue 6 months ago • 3 comments

What this PR does / why we need it: Adds environment health checks when a new StorageCluster is installed.

Which issue(s) this PR fixes (optional) Closes #

Special notes for your reviewer: There are two major sections in this PR:

  1. The health check framework is under px/px-health-check. This framework will be removed from this repo and moved to its own repo at a later date so that other programs can include it easily. You may ignore it for the review if you want.
  2. The health checks and integration with the Operator. When the reconciler starts, it will check if the StorageCluster object has the portworx.io/health-check annotation:
  • if the annotation is set to skip, then the Health Checks will not run.
  • if the annotation is missing, then the Health Checks will execute. It will then set the annotation to false if it failed, or passed if it worked. If it fails the test, it will also return failure disallowing PxE to be installed.
  • if the annotation is set to false, it will again return an error disallowing PxE to be installed.
  • if the annotation is set to passed, it will not run.

Ignore the test coverage of px/px-health-check since that will be moved to a new repo after.

lpabon avatar Aug 15 '24 15:08 lpabon