Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add configuration to filter health checks #3357

Merged
merged 4 commits into from
Feb 12, 2024

Conversation

jnlycklama
Copy link
Member

Description

Add configuration to filter health checks. Any health check can be added to this list, and it will be excluded from running.
Also fixed an issue with running the IDP health check locally - the http pipeline policy required a blob URI to run, which does not exist when running with Azurite

Related issues

Addresses #115147

Testing

Ran locally. Added single & multiple health check names to the list and saw that they were removed from execution. Also tried removing the config all together or using an empty list, in which case all of the health checks will run.

@jnlycklama jnlycklama requested a review from a team as a code owner February 9, 2024 23:28
else
{
// For local testing with Azurite
BlobContainerClient blobContainerClient = new BlobContainerClient(_externalStoreOptions.ConnectionString, _externalStoreOptions.ContainerName);
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be more guarded with env than the uri?

Copy link
Member Author

@jnlycklama jnlycklama Feb 10, 2024

Choose a reason for hiding this comment

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

This is how its done in the ExternalBlobClient

if (_externalStoreOptions.BlobContainerUri != null)

We could guard by the current environment, although technically environment doesn't matter here. If we for some reason wanted to switch to connecting to the blob store via ConnectionString instead of BlobContainerUri, the url generated in the else statement would still be accurate.

@jnlycklama jnlycklama merged commit c72aa5c into main Feb 12, 2024
17 checks passed
@jnlycklama jnlycklama deleted the personal/julyckla/healthCheckExcludeFilter branch February 12, 2024 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants