21 references to ProbeTags
Microsoft.Extensions.Diagnostics.Probes (9)
KubernetesProbesExtensions.cs (9)
53.AddTcpEndpointProbe(ProbeTags.Liveness, options => 63options.FilterChecks = (check) => check.Tags.Contains(ProbeTags.Liveness); 67options.FilterChecks = (check) => check.Tags.Contains(ProbeTags.Liveness) && originalPredicate(check); 70.AddTcpEndpointProbe(ProbeTags.Startup, options => 80options.FilterChecks = (check) => check.Tags.Contains(ProbeTags.Startup); 84options.FilterChecks = (check) => check.Tags.Contains(ProbeTags.Startup) && originalPredicate(check); 87.AddTcpEndpointProbe(ProbeTags.Readiness, (options) => 97options.FilterChecks = (check) => check.Tags.Contains(ProbeTags.Readiness); 101options.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);