csharp icon indicating copy to clipboard operation
csharp copied to clipboard

Officially supported dotnet Kubernetes Client library

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

this PR adds a non-generic Deserialise method to `KubernetesJson.cs` **Reason:** based on this [discussion](https://github.com/kubernetes-client/csharp/discussions/1683) adding a non generic `Deserialize` method gives the opportunity to use the same json serialisation mechanism...

cncf-cla: yes
size/M

`LeaderElector.TryAcquireOrRenew` was using the locally configured lease duration instead of the value from the Kubernetes object, breaking graceful step-downs where leaders signal their departure by setting lease duration to 1...

size/XS
cncf-cla: yes
do-not-merge/work-in-progress

**Describe the bug** LeaderElector.TryAcquireOrRenew [uses the lease duration from the local configuration](https://github.com/kubernetes-client/csharp/blob/8d0547bcff45b589aeecf4590683986c8581dbbb/src/KubernetesClient/LeaderElection/LeaderElector.cs#L195), instead of the Kubernetes object, assuming that the two values are the same. This might not be true...

lifecycle/rotten

At the moment, it does not appear that there is a straightforward way to determine whether a given Kubernetes type is namespaced. Having an IsNamespaced boolean property on the KubernetesEntityAttribute...

lifecycle/stale

In file, line https://github.com/kubernetes-client/csharp/blob/master/src/KubernetesClient/KubernetesClientConfiguration.ConfigFile.cs#L572 There is no check that the output was successful, so when it fails we get just a dump deserialization error. Can a simple check like string.IsNulOrEmpty...

lifecycle/rotten

- [x] Address @tg123's feedback about .NET Framework 4 compatibility - [x] Add `CertUtils.LoadFromPemText()` for all frameworks - [x] Use `ImportFromPem` for modern .NET (5.0+) - [x] Use BouncyCastle for...

cncf-cla: yes
size/L
ok-to-test

**Describe the bug** If i export a kubeconfig from Rancher there are three certificates present in the `certificate-authority-data`. `SetClusterDetails` in `KubernetesClientConfiguration.ConfigFile.cs` uses `X509CertificateLoader.LoadCertificate` to load the certificate, but that does...

- [ ] remove websocket, using http2 - [x] generate WatchXXX for easier api - [ ] remove remaining autorest package - [ ] refactor KubernetesClientConfiguration and Kubernetes, too many...

**Describe the bug** I using an extension method [WatchAsync()](https://github.com/kubernetes-client/csharp/blob/master/src/KubernetesClient/WatcherExt.cs#L77) for watching kubernetes resources. When server is closed the connection because the version used in request is too old (it doesn't...

I'm working on a series of package upgrades from an old project. In this case I'm trying to upgrade the KubernetesClient package from 3.0.7 to 17.0.4. This was done mainly...