Skip to content
This repository has been archived by the owner on Apr 7, 2020. It is now read-only.

Enhance health check actuator with precheck function #627

Merged
merged 1 commit into from
Mar 23, 2020

Conversation

rfranzke
Copy link
Contributor

What this PR does / why we need it:
With this PR the generic health check actuator is enhanced. It can now take a pre-check function that is performed before the health check is executed. If it returns false then the health check will be skipped. This accommodates extensions that only want to perform their health checks conditionally based on the object's or the cluster's settings.

Release note:

The generic health check actuator can now take a pre-check function that is performed before the health check is executed. If it returns `false` then the health check will be skipped. This accommodates extensions that only want to perform their health checks conditionally based on the object's or the cluster's settings.

@rfranzke rfranzke requested a review from a team as a code owner March 22, 2020 10:40
@gardener-robot-ci-2 gardener-robot-ci-2 added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Mar 22, 2020
@gardener-robot-ci-3 gardener-robot-ci-3 added needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) and removed reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) labels Mar 22, 2020
@rfranzke rfranzke requested a review from danielfoehrKn March 22, 2020 10:43
@rfranzke rfranzke force-pushed the enhance/health-checks branch from 1354c49 to bd8ce80 Compare March 23, 2020 10:02
@rfranzke rfranzke requested a review from timuthy March 23, 2020 10:02
@gardener-robot-ci-1 gardener-robot-ci-1 added reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) and removed reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) labels Mar 23, 2020
@zanetworker
Copy link
Contributor

@rfranzke can you specify in what conditions is this needed, I can think of non-gardener setups that use some extensions (for testing), what else?

timuthy
timuthy previously approved these changes Mar 23, 2020
@rfranzke rfranzke force-pushed the enhance/health-checks branch from bd8ce80 to 85a0162 Compare March 23, 2020 10:28
@gardener-robot-ci-2 gardener-robot-ci-2 added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Mar 23, 2020
@rfranzke rfranzke requested a review from ialidzhikov March 23, 2020 10:28
@gardener-robot-ci-2 gardener-robot-ci-2 removed the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Mar 23, 2020
Copy link
Contributor

@ialidzhikov ialidzhikov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@rfranzke rfranzke merged commit 9575e7c into gardener-attic:master Mar 23, 2020
@rfranzke rfranzke deleted the enhance/health-checks branch March 23, 2020 10:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants