diff --git a/src/HealthChecks.UI/Core/Discovery/K8S/KubernetesDiscoveryHostedService.cs b/src/HealthChecks.UI/Core/Discovery/K8S/KubernetesDiscoveryHostedService.cs index 8da8cb7509..eabdd4802a 100644 --- a/src/HealthChecks.UI/Core/Discovery/K8S/KubernetesDiscoveryHostedService.cs +++ b/src/HealthChecks.UI/Core/Discovery/K8S/KubernetesDiscoveryHostedService.cs @@ -131,7 +131,7 @@ private async Task StartK8sServiceAsync(CancellationToken cancellationToken) _logger.LogError(ex, "An error occurred on kubernetes service discovery"); } - await Task.Delay(_discoveryOptions.RefreshTimeOnSeconds * 1000); + await Task.Delay(_discoveryOptions.RefreshTimeInSeconds * 1000); } } diff --git a/src/HealthChecks.UI/Core/Discovery/K8S/KubernetesDiscoveryOptions.cs b/src/HealthChecks.UI/Core/Discovery/K8S/KubernetesDiscoveryOptions.cs index 66051fc6fb..602cec2b96 100644 --- a/src/HealthChecks.UI/Core/Discovery/K8S/KubernetesDiscoveryOptions.cs +++ b/src/HealthChecks.UI/Core/Discovery/K8S/KubernetesDiscoveryOptions.cs @@ -18,7 +18,7 @@ internal class KubernetesDiscoverySettings public string? Token { get; set; } - public int RefreshTimeOnSeconds { get; set; } = 300; + public int RefreshTimeInSeconds { get; set; } = 300; public List Namespaces { get; set; } = new List(); }