-
Notifications
You must be signed in to change notification settings - Fork 304
KubernetesClientConfiguration.JsonSerializerOptions
always returns null.
#1598
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
Comments
aot should not expose this prop as you can't config it |
Is it possible to register a serializer context for custom types used with |
it is not possible in aot if the main sdk good for you, aot is for performance scenarios only |
So it's currently not possible to use the |
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 |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close not-planned |
@k8s-triage-robot: Closing this issue, marking it as "Not Planned". In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Describe the bug
KubernetesClientConfiguration.JsonSerializerOptions
always returns null.The getter for this property calls the
KubernetesJson.AddJsonOptions
method which is empty.csharp/src/KubernetesClient/KubernetesClientConfiguration.cs
Lines 122 to 139 in 61e6b13
csharp/src/KubernetesClient.Aot/KubernetesJson.cs
Lines 76 to 78 in 61e6b13
Kubernetes C# SDK Client Version
KubernetesClient.Aot 15.0.1
Server Kubernetes Version
1.30.2
Dotnet Runtime Version
.net9
To Reproduce
Create a
KubernetesClientConfiguration
and call theJsonSerializerOptions
property.Expected behavior
A
System.Text.Json.JsonSerializerOptions
instance to be returned.Where do you run your app with Kubernetes SDK (please complete the following information):
Linux
The text was updated successfully, but these errors were encountered: