Skip to content

Commit

Permalink
Remove deprecated timeout (no longer applicable)
Browse files Browse the repository at this point in the history
  • Loading branch information
winromulus committed Jul 27, 2020
1 parent 68575d1 commit 6d259fd
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/ES.Kubernetes.Reflector.Host/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,8 @@ public void ConfigureServices(IServiceCollection services)

services.AddSingleton(KubernetesClientConfiguration.BuildDefaultConfig());
services.AddHttpClient("kubernetes")
.AddTypedClient<IKubernetes>((httpClient, serviceProvider) =>
{
httpClient.Timeout=TimeSpan.FromSeconds(30);
return new k8s.Kubernetes(
serviceProvider.GetRequiredService<KubernetesClientConfiguration>(), httpClient);
})
.AddTypedClient<IKubernetes>((httpClient, serviceProvider) => new k8s.Kubernetes(
serviceProvider.GetRequiredService<KubernetesClientConfiguration>(), httpClient))
.ConfigurePrimaryHttpMessageHandler(s =>
s.GetRequiredService<KubernetesClientConfiguration>().CreateDefaultHttpClientHandler())
.AddHttpMessageHandler(KubernetesClientConfiguration.CreateWatchHandler);
Expand Down

0 comments on commit 6d259fd

Please sign in to comment.