-
Notifications
You must be signed in to change notification settings - Fork 173
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
Conversation
…rnal store health check
else | ||
{ | ||
// For local testing with Azurite | ||
BlobContainerClient blobContainerClient = new BlobContainerClient(_externalStoreOptions.ConnectionString, _externalStoreOptions.ContainerName); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
dicom-server/src/Microsoft.Health.Dicom.Blob/Features/ExternalStore/ExternalBlobClient.cs
Line 76 in 7d750be
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.
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.