You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Using KubernetesClient.Aot throws an exception when trying to create a configuration via KubernetesClientConfiguration.BuildConfigFromConfigFile() that utilizes AKS kubelogin.
Exception is
k8s.Exceptions.KubeConfigException: 'external exec failed due to uncaught exception: System.ArgumentNullException: Value cannot be null. (Parameter 'jsonTypeInfo')
at System.Text.Json.ThrowHelper.ThrowArgumentNullException(String parameterName)
at System.Text.Json.JsonSerializer.Deserialize(String json, JsonTypeInfo jsonTypeInfo)
at k8s.KubernetesJson.Deserialize[TValue](String json, JsonSerializerOptions jsonSerializerOptions)
at k8s.KubernetesClientConfiguration.ExecuteExternalCommand(ExternalExecution config)'
Describe the bug
Using
KubernetesClient.Aot
throws an exception when trying to create a configuration viaKubernetesClientConfiguration.BuildConfigFromConfigFile()
that utilizes AKSkubelogin
.Exception is
Kubernetes C# SDK Client Version
15.0.1
Server Kubernetes Version
1.30.6
Dotnet Runtime Version
.NET 9
To Reproduce
KubernetesClient
version 15.0.1 works correct when callingKubernetesClientConfiguration.BuildConfigFromConfigFile()
KubernetesClient.Aot
version 15.0.1 and try again - get an exceptionExpected behavior
Configuration should be created successfully.
KubeConfig
Please refer to the linked sample but here's relevant
users
section from my config specifically:Where do you run your app with Kubernetes SDK:
Additional context
The text was updated successfully, but these errors were encountered: