Commit Graph

50 Commits

Author SHA1 Message Date
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
8a39035055 fix flaky logger (#782)
* fix flaky logger

* update env related dep

* build info
2022-02-20 14:34:10 -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
eca9898902 API v1.23.0 + system.text.json + remove WatchXXX API (#750)
* gen v1.23.0

* fix converter

* bump ver

* update readme runtime

* fix warning

* update dep ver

* newtonjson -> system.text.json

* generate for new json api

* readme lf

* dotnet fmt

* dotnet fmt tests/

* dotnet fmt

* Revert "dotnet fmt"

This reverts commit e14c59076143fe2218ed899295a00762f0ea2bd6.

* fix err introduce by dotnet fmt

* fix test

* remove deprecated /watch api

* generate code after /watch removed

* remove /watch related code

* trim Microsoft.Rest.Serialization
2021-12-13 07:31:59 -08:00
Boshi Lian
e45fa773ba add net6 targets (#745)
* add net6 targets

* move to net6 builtin format

* e2e target

* make codeql happy
2021-11-15 19:39:25 -08:00
Boshi Lian
3643250f40 use net5 certificate api instead of 3rd api (#733)
* use net api for cert loading

* codeql happy?
2021-10-20 06:57:58 -07:00
Bliamoh
2d8915dff7 Update customResource example + bump nuget packages versions (#720)
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>
2021-10-14 09:02:51 -07:00
Remi Gaudin
3f178a7b78 Upgrade Microsoft.Rest.ClientRuntime from 2.3.10 to 2.3.23 (#702)
* Upgrade Microsoft.Rest.ClientRuntime from 2.3.10 to 2.3.23 (#699)

* Fix unit tests by setting kubernetesMock.CallBase = true (#699)
2021-09-29 05:21:45 -07:00
Boshi Lian
7bbf6aa374 Fix 710 (#711)
* fix template body not included

* new generated file

* trim unused ref
2021-09-21 15:48:48 -07:00
Boshi Lian
4e29dff8d2 expose IAsyncEnumerable API for watcher (#586)
* 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
2021-09-17 08:19:01 -07:00
David Dieruf
af53bf3cec Initial port of cache functions from java client (#665)
* 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 :(
2021-08-04 07:51:25 -07:00
Boshi Lian
308a15f43c fix sec issue (#647)
* fix sec issue

* update oidc instead

* Revert "update oidc instead"

This reverts commit c19672cdb99569e090edfbd06148162e0569c68c.
2021-06-21 02:57:26 -07:00
Brendan Burns
762c8af640 Add support for loading namespaces from pod configuration. (#640) 2021-06-14 16:22:08 -07:00
Jarrett Confrey
ac0f43b576 fix: oidc (#633)
* fix: oidc

* revert: verbose oidc logs

* fix: actually commit changes

* chore: cleanup var name

* chore: address pr feedback
2021-05-24 09:33:39 -07:00
Alex Vincent
0b9d6a6dd6 fix nuget symbols (#626) 2021-05-19 10:46:31 -07:00
Boshi Lian
225bb1f59b Gen v1.21.0 (#603)
* gen v1.21.0

* update version converter

* bump version to 5

* remove support of netstandard2.0

* update test dependency
2021-04-09 13:37:17 -07:00
Brendan Burns
7d66489cb4 Add a Prometheus handler. (#591)
* Add a Prometheus handler.

* Address comments
2021-04-09 08:53:05 -07:00
Boshi Lian
655a42c6bd add tcp keep alive hack to net5 target (#560)
* add tcp keep alive hack to net5 target

* remove unused code

* fix ep

* Update buildtest.yaml

* fix netstandard21

* fix space

* fix net5 warning

* more comment
2021-03-11 09:32:22 -08:00
arbielsk
143db15d03 OIDC support (#544)
* add minimal oidc support

* add OidcTokenProvider

* add null check for accessToken

* deal with missing client-secret in config

* fix formatting, typos

* remove commented line

* trigger github actions to check for non-deterministic test behavior

* Update src/KubernetesClient/Authentication/OidcTokenProvider.cs

Co-authored-by: Boshi Lian <farmer1992@gmail.com>

* Update src/KubernetesClient/Authentication/OidcTokenProvider.cs

Co-authored-by: Boshi Lian <farmer1992@gmail.com>

* cleanup

* add CA1723 to exceptions

* remove exception for CA1723, add CA1724 instead

Co-authored-by: Boshi Lian <farmer1992@gmail.com>
2021-01-19 14:07:59 -08:00
Boshi Lian
c0e96f516b deprecate net452 + generate model based on v1.20.0 (#536)
* remove most net452 related code

* first net4 remove

* migrate test proj to net5 base

* fix format

* update sta xunit to fix platform not support

* Squashed commit of the following:

commit 16e1f819058ad281e1571b356c10d4d6ce77cf38
Author: Boshi Lian <farmer1992@gmail.com>
Date:   Tue Dec 8 22:42:57 2020 -0800

    temp disable some version converter

commit 7d1a651f4e7d27d1e61c91f46f73ac8d04ea8ab9
Author: Boshi Lian <farmer1992@gmail.com>
Date:   Tue Dec 8 20:55:44 2020 -0800

    add missing watcher generator files

commit 3f3199aad269bf89406ea71d0bc63f1a7ec23245
Author: Boshi Lian <farmer1992@gmail.com>
Date:   Tue Dec 8 22:14:47 2020 +0000

    gen v1.20.0

* bump version to 4.0

* support empty spec

* fix version converter for generator

* add generated header

* fix warning

* rerun generator
2020-12-13 19:55:27 -08:00
Boshi Lian
5be3cff425 Style fix final (#523)
* all net5

* var

* SA1310

* SA1310

* allow 1031

* SA1805

* fix SA1642

* remove unused code

* allow sa1405

* isempty

* fix CA1714

* fix CA1806

* remove always false if

* fix format

* fix CA1062

* allow SA0001

* fix CA1062

* allow ca1034 and temp allow ca1835

* fix 16XX doc related warnings

* elm SA16XX

* elm SA16XX

* fix CA2213

* revert to pass all test

* move unclear rule to ruleset

* follow up of moving ruleset

* remove this

* fix test flaky
2020-11-22 14:52:09 -08:00
Boshi Lian
f59c13da0e Allow multi patch http content type header (#521)
* header from obj

* update git version mod

* remove json patch test

* test for json patch
2020-11-17 10:38:05 -08:00
Brendan Burns
1f16a7f147 Update YamlDotNet to 8.1.2 (#504) 2020-10-27 09:22:00 -07:00
Andrew Stakhov
f1a3586c43 Support for conversions between models of different versions (#420) 2020-05-20 16:28:19 -07:00
admilazz
f2e1c4b883 Remove Microsoft.AspNetCore.WebUtilities dependency (#419)
* Remove Microsoft.AspNetCore.WebUtilities dependency

* Fix more query-string handling

* Add unit test

* Merge with master
2020-04-20 09:33:40 -07:00
Andy Kernahan
3e94068d43 Improve Watcher thread utilisation. (#386)
* Add Watcher constructor overload which accepts the more general TextReader.

* Make CancelableStream delegate the async methods to the inner stream.

* Make CancelableStream dispose of the inner stream.

* Make PeekableStreamReader a decorator enabling direct delegation to the inner's asynchronous methods.

* Make CancelableStream.Flush respect the cancellation token.

* Rename CancellationTokenSourceSlim -> LinkedCancellationTokenSource.

* Specify 7.3 language version.
2020-03-31 19:45:27 -07:00
Boshi Lian
40026e40a5 update source link to release (#377) 2020-03-22 21:20:45 -07:00
Boshi Lian
7749ae07c8 revert move fraction internal (#366) 2020-03-10 15:19:37 -07:00
Boshi Lian
435ab5cd15 [breaking changes] cleanup targets (#361)
* remove target xamarin ios and android (supported by netstandard)

* remove 1.4

* build warning cleared

* remove bom

* fix ci failed
2020-03-08 15:57:34 -07:00
Pragya Mehta
e11cc58e56 Upgrade Microsoft.AspNetCore.WebUtilities to 2.2.0 for netstandard2.0 (#358)
* Upgrade Microsoft.AspNetCore.WebUtilities to 2.2.0 for netstandard2.0 and netcoreapp2.1

* Mking the change only for netstandard2.0
2020-02-13 16:50:18 -08:00
Leonardo
fa515869e2 Updated Nerdbank.GitVersioning to 3.0.5 (#350)
The old version had an issue with Mono on MacOSX which caused the build to fail. Now the build flows flawlessly
2020-01-22 16:34:49 -08:00
idubnori
f67aaec566 Fix - Not applied patch if path contains Uppercase (#330)
* Add JsonPatchTests

* Upgrade JsonPatch and Json.net, if netstandard2.0 or netcoreapp2.1
2019-12-05 17:42:49 -08:00
Frederik Carlier
8eb33b3de7 Use YamlDotNet 6.0.0, which is signed by default (#268) 2019-03-22 16:56:08 -07:00
Frederik Carlier
b43dfd1711 Enable SourceLink (#267) 2019-03-22 10:34:52 -07:00
Frederik Carlier
6b12a11786 Add MSBuild leg, for building NuGet package with Xamarin support (#266) 2019-03-22 10:32:50 -07:00
Frederik Carlier
4bcfaeb6dc Make MSBuild.Sdk.Extras private, it is a build-time only dependency. (#258) 2019-03-20 08:50:59 -07:00
Frederik Carlier
a0ab45a8c5 Bump NB.GV package (#257) 2019-03-20 08:49:02 -07:00
Brendan Burns
7e907d7c6f Re-add nerdbank while we setup the azure pipeline... (#255) 2019-03-12 15:18:39 -07:00
Boshi Lian
e0db2ae8bd add az pipepline yaml (#247)
* add az pipepline yaml

* use az pipeline versioning

* build on vsts condition
2019-03-04 16:12:39 -08:00
Pragya Mehta
972699bc71 Bump down Newtonsoft.Json package to 9.0.1 from 10.0.2. Add reference to System.ComponentModel.TypeConverter to fix build. (#230) 2019-01-24 12:16:46 -08:00
Brendan Burns
6bc54a68c4 Rev a couple of versions. (#225) 2018-12-10 22:41:19 -08:00
Brendan Burns
99dc2f7aaf Rev YamlDotNet library. (#211) 2018-10-25 21:25:01 -07:00
Jonathan Harrison
3cee7fbd93 Changes to support xamarin. (#200) 2018-09-09 20:00:45 -07:00
Rohan Nagar
ac99f43c84 Move Fractions library inside project (#194)
* Move Fractions library inside project

* Add README and license
2018-07-16 19:53:35 -07:00
Frederik Carlier
976fee2e0d Generate XML documentation for the KubernetesClient project (#168)
* Generate XML documentation for the KubernetesClient project

* Fix spacing
2018-06-01 11:27:00 -07:00
Frederik Carlier
3785ac3952 Strongly-name the KubernetesClient assembly (#76)
* Add a strong name to the KubernetesClient assembly

* Fix location of the .snk file

* Remove unneeded remove statement
2018-05-04 21:51:31 -07:00
Frederik Carlier
a5a15d7042 Use automatic versioning (#149)
* Use automatic versioning

* Don't do shallow clones
2018-04-30 15:08:09 -07:00
Brendan Burns
eea4c88f8e Rev the version number. (#139) 2018-04-20 12:42:04 -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