21 references to ProbeTags
Microsoft.Extensions.Diagnostics.Probes (9)
KubernetesProbesExtensions.cs (9)
57.AddTcpEndpointProbe(ProbeTags.Liveness, options => 67options.FilterChecks = (check) => check.Tags.Contains(ProbeTags.Liveness); 71options.FilterChecks = (check) => check.Tags.Contains(ProbeTags.Liveness) && originalPredicate(check); 74.AddTcpEndpointProbe(ProbeTags.Startup, options => 84options.FilterChecks = (check) => check.Tags.Contains(ProbeTags.Startup); 88options.FilterChecks = (check) => check.Tags.Contains(ProbeTags.Startup) && originalPredicate(check); 91.AddTcpEndpointProbe(ProbeTags.Readiness, (options) => 101options.FilterChecks = (check) => check.Tags.Contains(ProbeTags.Readiness); 105options.FilterChecks = (check) => check.Tags.Contains(ProbeTags.Readiness) && originalPredicate(check);
Microsoft.Extensions.Diagnostics.Probes.Tests (12)
KubernetesProbesExtensionsTests.cs (12)
44var livenessRegistration = new HealthCheckRegistration("liveness", Mock.Of<IHealthCheck>(), null, new[] { ProbeTags.Liveness }); 45var startupRegistration = new HealthCheckRegistration("startup", Mock.Of<IHealthCheck>(), null, new[] { ProbeTags.Startup }); 46var readinessRegistration = new HealthCheckRegistration("readiness", Mock.Of<IHealthCheck>(), null, new[] { ProbeTags.Readiness }); 48var livenessConfig = config.Get(ProbeTags.Liveness); 54var startupConfig = config.Get(ProbeTags.Startup); 60var readinessConfig = config.Get(ProbeTags.Readiness); 86Assert.Equal(1, config.Get(ProbeTags.Liveness).TcpPort); 87Assert.Equal(2, config.Get(ProbeTags.Startup).TcpPort); 88Assert.Equal(3, config.Get(ProbeTags.Readiness).TcpPort); 114Assert.Equal(1, config.Get(ProbeTags.Liveness).TcpPort); 115Assert.Equal(2, config.Get(ProbeTags.Startup).TcpPort); 116Assert.Equal(3, config.Get(ProbeTags.Readiness).TcpPort);