Commit Graph

30 Commits

Author SHA1 Message Date
Boshi Lian
0d718cbc56 adopt newer source generator (#1417)
* build on net8

* fix fmt

* remove net8 for build

* fix fmt

* fix file load

* mv proj

* fix path

* address comment

* address comments
2023-10-10 18:49:47 +02:00
Boshi Lian
013fc6e06f embed KubernetesClient.Models and KubernetesClient.Basic into client sdk (#1407)
* cleanup using

* cleanup classic

* clean up nuget

* bump ver

* fix pipeline

* remove commit by accident
2023-09-26 11:03:12 -07:00
Boshi Lian
abf6950cae Proposal: user defined model version explicit converter (#1211)
* introduce user defined model version explicit convertor

* bump ver
2023-03-03 09:14:58 -08:00
Boshi Lian
c404c00bc2 Version 9.0: Based on Swagger 1.25 (#995)
* swagger 1.25

* update version converter

* bump version

* move missing models to models proj

* hide util for further cleanup

* hide more public api

* update version matrix
2022-09-05 12:52:54 -07:00
Boshi Lian
fd6f920e40 chunk websocket frame when buff > 15M (#981)
* ws is now chunked

* remove chunk in example

* fix build
2022-08-21 13:29:36 -07:00
Manuel Menegazzo
7d019b4ae3 .NET Core service worker DI example (#951)
* Added example source code

* Fix namespace name

* Added example source code

* Fix namespace name

* Fix sln file

* Update Program.cs

* Updated IKubernetes DI registration
2022-08-02 22:15:52 -07:00
Manuel Menegazzo
39e7d98c36 ASP.NET core web api DI example (#950)
* Added example source code

* Removed unnecessary nuget package
2022-07-13 16:36:56 -07:00
Manuel Menegazzo
033364746a Console example of OpenTelemetry tracing (#944)
* Added DI container initialization

* Added httpclient service creation

* Improved minimal example of OpenTelemetry console

* Update Program.cs

* Removed TargetFramework from .csproj
2022-07-11 09:07:48 -07:00
Boshi Lian
b5e1e9c858 init kubectl (#830)
* init kubectl

* swagger version into assembly
2022-04-18 14:55:51 -07:00
Arzu Suleymanov
6ff5460812 Restart sts daemonset deployment example (#819)
* chore : csr approval example using json patch net package

* chore : use top level feature, remove k8s client and use reference instead

* chore : remove target framework

* fix : remove redundant reference package

* feat : implement restart sts, daemonset & deployment option using patch

* refactor : optimize code and resolve warnings
2022-04-04 16:19:36 -07:00
Boshi Lian
8575548cd9 Kubernetes.Classic: add support for netstandard2.0 and net48 (#808)
* 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.
2022-04-03 16:35:42 -07:00
kibernetik542
92ccac423a chore : csr approval example using json patch net package (#816)
* chore : csr approval example using json patch net package

* chore : use top level feature, remove k8s client and use reference instead

* chore : remove target framework

* fix : remove redundant reference package
2022-04-01 15:08:33 -07:00
Boshi Lian
8e8619130a netstandard2 extendable lib model, basic rest (#793)
* 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
2022-03-23 16:25:20 -07:00
Boshi Lian
01b2aa832c cleanup folders (#792)
* unify folders

* move dep and target outside
2022-03-07 10:06:55 -08:00
Boshi Lian
0d719f1fc6 7.1 remove old autorest (#785)
* init removal

* clean up warning

* bump ver to 7.1

* fix build

* custom http client no long supported

* cleanup unused types

* fix npe

* remove service client

* modern ssl settings

* fix test

* fix client cert null

* fix ctor

* cleanup
2022-02-25 13:33:23 -08:00
Boshi Lian
250a45741e move all generated code to c# source generator (#756)
* remove the dependency of unprocessed swagger file

* all code generator

* good bye generated code

* remove generator cmd from sln

* eliminate generated folder

* fix multi target build

* disable dotnet fmt due to cannot load lib generator

* fix race

* fix race for multi target
2021-12-22 17:16:44 -08:00
Boshi Lian
743e859889 source generators: (#753)
* introduce net5 source generator: version convert

* remove unused generator related files
2021-12-19 08:59:24 -08:00
Boshi Lian
f515fb4d76 add generic create (#744)
* add generic create

* flaky test on test env
2021-11-12 12:06:28 -08:00
David Dieruf
4ff1ea49b8 Ported GenericKubernetesApi from java along with other utilities (#682)
* 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
2021-11-03 10:52:34 -07:00
Boshi Lian
b8f78e4641 port autorest2 template to local generate tools (#669)
* port autorest to watch generator

* rename KubernetesWatchGenerator -> KubernetesGenerator

* add validate

* fix format

* fix generate code warnings

* fix line ending

* fix missing property found by comp check

* do not new http method
2021-08-09 07:27:32 -07:00
Ali Kanso
0e3cb942d1 Custom Resource example (#540)
* CR example

* minor changes
2020-12-19 08:26:25 -08:00
Boshi Lian
af7be8603a E2E test with minikube on gh action (#513)
* add minikube as e2e test server

* fix format

* update env

* force no skip

* fix then

* finish skip test

* add skip blocker

* fix path

* output skipped case

* enable test env var

* final merge

* add missing file
2020-11-01 12:30:51 -08:00
Ludovic Alarcon
5411bb6651 Nodes and pods metrics (#466)
* Add models for node metrics

* Add models for pod metrics

* Add extension method for node metrics

* Add extension method for pods metrics

* dotnet format

* fix type: use of interface type

* Add metrics sample

* Add tests for node and pod metrics
2020-08-02 21:53:42 -07:00
David Parks
e00f67abd4 Add another couple of constructors to Fix #279 (#302)
* Add support for HttpClientFactory with KubernetesClientConfiguration

* Add an example with http client factory

* ensure sample uses the latest version of C#
2019-09-23 21:33:25 -07:00
Boshi Lian
d01446718d add patch example (#189)
* add patch example

* fix typo
2018-07-09 06:50:39 -07:00
Frederik Carlier
ebf8661641 Auto-generate Watcher code (for individual objects) (#148)
* Only keep WatchObjectAsync<T> in the manually-generated code

* Add a console application which can generate the various Watch methods

* Generate the Watch methods

* Use Nustache and templates to generate the watcher code

* Re-generate code
2018-04-30 15:07:27 -07:00
Adam Friedman
ea62ca00e0 Move projects to subdirectories of /src and /tests (#134)
kubernetes-client/csharp#127
2018-04-04 22:13:45 -07:00
Adam Friedman
c0a42ad884 Custom validation of server certificate for WebSockets (#103)
* Improve SSL customisation for WebSockets

kubernetes-client/csharp#102

* First test for exec-in-pod over WebSockets.

Also, implement basic mock server for testing WebSockets.

kubernetes-client/csharp#102

* Attempt to handle raciness of Watcher tests.

kubernetes-client/csharp#102

* Attempt to handle raciness of ByteBuffer test.

kubernetes-client/csharp#102
2018-03-19 22:03:28 -07:00
Cole Mickens
2a2e013181 remove BOM from UTF-8 files 2017-09-14 10:47:41 -07:00
Sergio Moreno
ac27f7b704 added visual studio solution file 2017-07-24 20:55:49 +02:00