dotnet-operator-sdk icon indicating copy to clipboard operation
dotnet-operator-sdk copied to clipboard

[feature]: Support of YamlDotNet 16

Open mmgerald opened this issue 1 year ago • 0 comments

Is your feature request related to a problem? Please describe.

YamlDotnet looks like they have made some breaking changes in the latest release: https://github.com/aaubry/YamlDotNet/releases/tag/v16.0.0 specifically to ReadYaml and WriteYaml in IYamlTypeConverter.cs leaving any descendant in the KubernetesClient library broken (i.e., IntOrStringYamlConverter).

(see also https://github.com/kubernetes-client/csharp/issues/1573)

Describe the solution you would like

Update KubernetesClient to recent version. I've already asked for a new release that includes dependency to v16 of YamlDotNet

Additional Context

The type initializer for 'k8s.KubernetesYaml' threw an exception. TValue Deserialize[TValue](System.String, Boolean) at k8s.KubernetesYaml.Deserialize[TValue](String yaml, Boolean strict) at k8s.KubernetesYaml.LoadFromStreamAsync[T](Stream stream, Boolean strict) at k8s.KubernetesClientConfiguration.LoadKubeConfigAsync(FileInfo kubeconfig, Boolean useRelativePaths)

mmgerald avatar Aug 12 '24 13:08 mmgerald