csharp icon indicating copy to clipboard operation
csharp copied to clipboard

Officially supported dotnet Kubernetes Client library

Results 59 csharp issues
Sort by recently updated
recently updated
newest added

**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. ``` No node...

lifecycle/stale

**Describe the bug** I'm trying to use the library against a cluster protected by [Pinniped](https://pinniped.dev/) which uses a custom exec 'client.authentication.k8s.io/v1beta1' to authenticate the user. One of the arguments contains...

lifecycle/stale

Hi! I think that current implementation of `Watcher.Dispose()` is a bit lacking: https://github.com/kubernetes-client/csharp/blob/541abb00bd1472e86b37863822cce5415613806b/src/KubernetesClient/Watcher.cs#L217-L229 specifically between `_cts?.Cancel()` and `_cts?.Dispose()` calls, we should await for the `_watcherLoop` task to finish. Otherwise it...

Only one file requires the usage of `Fractions` and the implementation relies on it without a clear purpose; the numeric computations can all be worked out easily without relying on...

**Describe the bug** It looks like `SourceGenerationContext` lacks JSON serialization metadata for the `V1Patch` type, which causes patch requests to fail in AOT scenarios. **Kubernetes C# SDK Client Version** `15.0.1`...

In KubernetesClientConfiguration.IsInCluster, it uses service account token file as one check condition. ``` var tokenPath = Path.Combine(ServiceAccountPath, ServiceAccountTokenKeyFileName); if (!FileSystem.Current.Exists(tokenPath)) { return false; } ``` When set automountServiceAccountToken false(https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#opt-out-of-api-credential-automounting), there...

**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...

lifecycle/rotten

While investigating rare / hard to reproduce hangs, I noticed that MuxedStream.ReadAsync ignores the passed cancellation token. In the related StreamDemuxer class, the reads are done to the underlying web...

**Describe the bug** `VersionOperationsExtensions.GetCodeAsync` throws an exception in AOT scenarios. **Kubernetes C# SDK Client Version** `16.0.2` **Server Kubernetes Version** `1.26.1` **Dotnet Runtime Version** net9 **To Reproduce** Install `KubernetesClient.Aot`, and then...