Skip to content

Commit

Permalink
happy net48
Browse files Browse the repository at this point in the history
  • Loading branch information
tg123 committed Oct 25, 2023
1 parent cfcddff commit 93170e0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/KubernetesClient/Kubernetes.ConfigInit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ public Kubernetes(KubernetesClientConfiguration config, params DelegatingHandler

if (config.SslCaCerts != null)
{
CaCerts = new X509Certificate2Collection(config.SslCaCerts.Select(c => new X509Certificate2(c)).ToArray());
var caCerts = new X509Certificate2Collection();
foreach (var cert in config.SslCaCerts)
{
caCerts.Add(new X509Certificate2(cert));
}
}

SkipTlsVerify = config.SkipTlsVerify;
Expand All @@ -35,9 +39,9 @@ public Kubernetes(KubernetesClientConfiguration config, params DelegatingHandler
InitializeFromConfig(config);
HttpClientTimeout = config.HttpClientTimeout;
jsonSerializerOptions = config.JsonSerializerOptions;
#if NETSTANDARD2_1_OR_GREATER || NET5_0_OR_GREATER
#if NETSTANDARD2_1_OR_GREATER || NET5_0_OR_GREATER
DisableHttp2 = config.DisableHttp2;
#endif
#endif
}

private void ValidateConfig(KubernetesClientConfiguration config)
Expand Down

0 comments on commit 93170e0

Please sign in to comment.