Made a change to avoid calling _httpResponse.Content.ReadAsStringAsync() and deserialize from the content stream. (#731)

* Avoid calling _httpResponse.Content.ReadAsStringAsync() and deserialize from the content stream

Made a change to avoid calling _httpResponse.Content.ReadAsStringAsync() and deserialize from the content stream, which significantly reduced memory utilization.
Created Kubernetes.cs file and moved constructors and couple methods from the Kubernetes.cs.template to the Kubernetes.cs

Generated Kubernetes.cs will be in a separate commit.

* Separate commit for generated Kubernetes.cs
This commit is contained in:
Vladimir Khvostov
2021-10-20 09:55:58 -04:00
committed by GitHub
parent 43f8922d20
commit e7de93dd10
6 changed files with 4752 additions and 19544 deletions

View File

@@ -137,7 +137,7 @@ namespace k8s
private X509Certificate2 ClientCert { get; }
private bool SkipTlsVerify { get; }
partial void CustomInitialize()
private void CustomInitialize()
{
DeserializationSettings.Converters.Add(new V1Status.V1StatusObjectViewConverter());
SerializationSettings.DateFormatString = "yyyy'-'MM'-'dd'T'HH':'mm':'ss.ffffffK";