-
Notifications
You must be signed in to change notification settings - Fork 295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KubernetesClient.Aot args IList<string> serialization error #1570
Comments
seems so, would you like to send a pr to fix it? |
We could pick it up, but, at first glance I don't really see where that would be done in YamlDotNet. There doesn't seem to be a serialization context like in System.Text.Json? |
It seems that all the But adding It might be related to aaubry/YamlDotNet#740 (comment) And if i'm reading this: aaubry/YamlDotNet#884 it might fix itself in a few days. |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
Describe the bug
If a kubernetes client config contains string lists (for example, at users[*].user.exec.args), the yaml serializer throws that it can't deserialize the node into IList.
Kubernetes C# SDK Client Version
14.0.2
Server Kubernetes Version
N\A
Dotnet Runtime Version
net8
To Reproduce
Create a config that contains a user that needs to "exec" with arguments, for example kube oidc login (see KubeConfig)
Expected behavior
Being able to deserialize the config, including the args list.
KubeConfig
Where do you run your app with Kubernetes SDK (please complete the following information):
Reproducable in RoslynPad or dotnet console application:
Additional context
in the JsonSerializationContext for AOT source generation you'd have to include
[JsonSerializable(typeof(IList<string>))]
, my guess would be that there is something similar for YamlDotNet?The text was updated successfully, but these errors were encountered: