File tree Expand file tree Collapse file tree 3 files changed +8
-66
lines changed Expand file tree Collapse file tree 3 files changed +8
-66
lines changed Original file line number Diff line number Diff line change @@ -53,17 +53,13 @@ public static IResourceBuilder<MinioContainerResource> AddMinioContainer(
53
53
var healthCheckKey = $ "{ name } _check";
54
54
55
55
builder . Services . AddHealthChecks ( )
56
- . Add ( new HealthCheckRegistration (
57
- healthCheckKey ,
58
- sp =>
59
- {
60
- var httpClient = sp . GetRequiredService < IHttpClientFactory > ( ) . CreateClient ( "miniohealth" ) ;
61
-
62
- return new MinioHealthCheck ( endpoint . Url , httpClient ) ;
63
- } ,
64
- failureStatus : default ,
65
- tags : default ,
66
- timeout : default ) ) ;
56
+ . AddUrlGroup ( options =>
57
+ {
58
+ var uri = new Uri ( endpoint . Url ) ;
59
+ options . AddUri ( new Uri ( uri , "/minio/health/live" ) , setup => setup . ExpectHttpCode ( 200 ) ) ;
60
+ options . AddUri ( new Uri ( uri , "/minio/health/cluster" ) , setup => setup . ExpectHttpCode ( 200 ) ) ;
61
+ options . AddUri ( new Uri ( uri , "/minio/health/cluster/read" ) , setup => setup . ExpectHttpCode ( 200 ) ) ;
62
+ } , healthCheckKey ) ;
67
63
68
64
builderWithResource . WithHealthCheck ( healthCheckKey ) ;
69
65
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ void Configure(DistributedApplicationOptions applicationOptions, HostApplication
79
79
var cfg = hostBuilderOptions . Configuration ??= new ( ) ;
80
80
cfg . AddInMemoryCollection ( new Dictionary < string , string ? >
81
81
{
82
- [ "DcpPublisher:RandomizePorts" ] = "false " ,
82
+ [ "DcpPublisher:RandomizePorts" ] = "true " ,
83
83
[ "DcpPublisher:DeleteResourcesOnShutdown" ] = "true" ,
84
84
[ "DcpPublisher:ResourceNameSuffix" ] = $ "{ Random . Shared . Next ( ) : x} ",
85
85
} ) ;
You can’t perform that action at this time.
0 commit comments