* Updated CertificateValidationCallBack to build the CaCert bundle with respect to the rootChain certs to verify that they are correct.
* Added a test cases and assets for when all the certs files are in the same file.
* Removed the hardcoded first cert as the chosen root cert
* swagger 1.24
* trim converter
* api group
* before moving method
* grouped api for client
* fix classic build
* fix e2e
* move all code to v8
* fix vis to
* bump ver
* fix authtest filename
* support gh nuget (#11)
* trim to fit net48
* add net48 support
* add very test framework
* add test body
* Revert "support gh nuget (#11)"
This reverts commit 5cdaf59690170be44e4554485fb2e89785a6a1cf.
* Follow up on unused using cleanup
* Revert
* Package upgrades
* LF
* Update README.md
Co-authored-by: Boshi Lian <farmer1992@gmail.com>
Co-authored-by: Boshi Lian <farmer1992@gmail.com>
* first lib model
* add missing files
* happy test
* add vanilla rest for extend
* fix new url pattern
* address comments
* add v to tag
* bump ver
* add missing file when ren
* support multi pkg
* fix gh action
* fix env var
* ren title
* use gh action to set ver
* remove unused
* remove unused
* CA1823 Avoid unused private fields
* CA1847 Use string.Contains(char) instead of string.Contains(string) with single characters
* IDE0005 Remove unnecessary import
* IDE0051 Private member is unused
* IDE0052 Private member is unread
* Ported GenericKubernetesApi from java along with other utilities
* Replace DeleteOptions for V1DeleteOptions
* Clean up and add clear()
* Clean up
* Removed TweakApiHandler
* Rename methods to follow "async" pattern
* Fix method naming
* Remove unneeded json property
* Rearrange httpsuccess logic
* Simplify dispose pattern
* Treat MockKubeServerFlags as flags
* Clean up flags logic
* Remove unneeded json properties
* Fix cs formatting
* Remove unused variable
* Move MockApi server options to seperate class and revert MockApi back to original
* Remove IRunnable
* Refactor config constants to use existing service account path
Update customResource example nuget packages + update example
Update httpClientFactory example nuget packages
Update nuget packages
Change DateTime to DateTimeOffset
Update tests nuget packages
Make KubernetesClient project reference instead of Nuget package reference
Co-authored-by: Boshi Lian <farmer1992@gmail.com>
Co-authored-by: Boshi Lian <farmer1992@gmail.com>
* support async enum watch
* honor ct and catch more exception
* fix format
* better flaky
* ct to for should throw
* make sure no npe
* fix nuget build
* fix watcher test
* check close before dispose
* Initial port of cache functions from java client
* Move lock in Cache.Replace to be less disruptive
* Remove IListerWatcher as it's not used at the moment
* Added todo in Cache.Get as reminder
* TApiType implement IKubernetesObject
* TApiType implement IKubernetesObject
* TApiType implement class along with IKubernetesObject
* Disable failing test until it can be figured out
* Ran `dotnet format --fix-whitespace --fix-style` to put formatting in compliance
* Moved contents of KubernetesClient.Util into KubernetesClient project
* Moved contents of KubernetesClient.Util into KubernetesClient project #2 :(
* Affects Yaml.LoadAllFrom* methods
* Doesn't require user to explicitly pass a mapping for known types
* Allows user to specify a mapping for custom types, if required
Some tools can generate kubeconfig files which use wildcard IPv4 or IPv6 addresses. For example, using k3d with --api-server=https://0.0.0.0:6433/ would generate a kubeconfig file like this:
```
apiVersion: v1
clusters:
- cluster:
certificate-authority-data: (...)
server: https://0.0.0.0:6433
name: k3d-k3s-default
```
Standard Kubernetes tools (like kubectl or Helm) correctly parse the 0.0.0.0 IP address and transform it 127.0.0.1; 3rd party tools like curl or wget will do the same on Unix systems.
This is default behavior on Unix but not on Windows. As a result, the .NET Kubernetes client will fail to work with kubeconfig files like this and you'll get HTTP exceptions.
Go has explicit workarounds for this (see 1a0b1cca4c), and this PR attemps to replicate these workarounds in the .NET client.
* fix delay ignored
* fix retry delay in ms
* fix retry delay in ms
* do not wait if timeout
* fix flasky test case
* delay to be timespan
* Revert "delay to be timespan"
This reverts commit 3a004b6a6904747fa5475adeadbf6e654082d809.