Commit Graph

69 Commits

Author SHA1 Message Date
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
dependabot[bot]
96832da8b7 Bump System.IdentityModel.Tokens.Jwt from 6.22.0 to 6.22.1 (#987)
Bumps [System.IdentityModel.Tokens.Jwt](https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet) from 6.22.0 to 6.22.1.
- [Release notes](https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/releases)
- [Changelog](https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/blob/dev/CHANGELOG.md)
- [Commits](https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/commits)

---
updated-dependencies:
- dependency-name: System.IdentityModel.Tokens.Jwt
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-29 08:32:38 -07:00
dependabot[bot]
ca4e350924 Bump System.IO.Abstractions from 17.0.24 to 17.1.1 (#979)
Bumps [System.IO.Abstractions](https://github.com/TestableIO/System.IO.Abstractions) from 17.0.24 to 17.1.1.
- [Release notes](https://github.com/TestableIO/System.IO.Abstractions/releases)
- [Commits](https://github.com/TestableIO/System.IO.Abstractions/compare/v17.0.24...v17.1.1)

---
updated-dependencies:
- dependency-name: System.IO.Abstractions
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-17 08:55:12 -07:00
dependabot[bot]
a9785c40bc Bump IdentityModel.OidcClient from 5.0.1 to 5.0.2 (#972)
Bumps [IdentityModel.OidcClient](https://github.com/IdentityModel/IdentityModel.OidcClient) from 5.0.1 to 5.0.2.
- [Release notes](https://github.com/IdentityModel/IdentityModel.OidcClient/releases)
- [Commits](https://github.com/IdentityModel/IdentityModel.OidcClient/compare/5.0.1...5.0.2)

---
updated-dependencies:
- dependency-name: IdentityModel.OidcClient
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-08 12:35:57 -07:00
dependabot[bot]
e7441f0a8e Bump System.IdentityModel.Tokens.Jwt from 6.21.0 to 6.22.0 (#964)
Bumps [System.IdentityModel.Tokens.Jwt](https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet) from 6.21.0 to 6.22.0.
- [Release notes](https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/releases)
- [Changelog](https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/blob/dev/CHANGELOG.md)
- [Commits](https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/commits)

---
updated-dependencies:
- dependency-name: System.IdentityModel.Tokens.Jwt
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-27 15:25:54 -07:00
dependabot[bot]
0625fd69b1 Bump System.IO.Abstractions from 17.0.23 to 17.0.24 (#959)
Bumps [System.IO.Abstractions](https://github.com/TestableIO/System.IO.Abstractions) from 17.0.23 to 17.0.24.
- [Release notes](https://github.com/TestableIO/System.IO.Abstractions/releases)
- [Commits](https://github.com/TestableIO/System.IO.Abstractions/compare/v17.0.23...v17.0.24)

---
updated-dependencies:
- dependency-name: System.IO.Abstractions
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-21 14:17:16 -07:00
dependabot[bot]
8d0ec6bb16 Bump IdentityModel.OidcClient from 5.0.0 to 5.0.1 (#956)
Bumps [IdentityModel.OidcClient](https://github.com/IdentityModel/IdentityModel.OidcClient) from 5.0.0 to 5.0.1.
- [Release notes](https://github.com/IdentityModel/IdentityModel.OidcClient/releases)
- [Commits](https://github.com/IdentityModel/IdentityModel.OidcClient/compare/5.0.0...5.0.1)

---
updated-dependencies:
- dependency-name: IdentityModel.OidcClient
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-19 11:43:27 -07:00
dependabot[bot]
04109599a8 Bump System.IO.Abstractions from 17.0.21 to 17.0.23 (#954)
Bumps [System.IO.Abstractions](https://github.com/TestableIO/System.IO.Abstractions) from 17.0.21 to 17.0.23.
- [Release notes](https://github.com/TestableIO/System.IO.Abstractions/releases)
- [Commits](https://github.com/TestableIO/System.IO.Abstractions/compare/v17.0.21...v17.0.23)

---
updated-dependencies:
- dependency-name: System.IO.Abstractions
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-18 16:51:23 -07:00
dependabot[bot]
45758721e5 Bump System.IdentityModel.Tokens.Jwt from 6.13.1 to 6.21.0 (#935)
Bumps [System.IdentityModel.Tokens.Jwt](https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet) from 6.13.1 to 6.21.0.
- [Release notes](https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/releases)
- [Changelog](https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/blob/dev/CHANGELOG.md)
- [Commits](https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/compare/6.13.1...6.21.0)

---
updated-dependencies:
- dependency-name: System.IdentityModel.Tokens.Jwt
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-10 22:47:47 -07:00
dependabot[bot]
26e7dca6b5 Bump IdentityModel.OidcClient from 4.0.0 to 5.0.0 (#923)
Bumps [IdentityModel.OidcClient](https://github.com/IdentityModel/IdentityModel.OidcClient) from 4.0.0 to 5.0.0.
- [Release notes](https://github.com/IdentityModel/IdentityModel.OidcClient/releases)
- [Commits](https://github.com/IdentityModel/IdentityModel.OidcClient/compare/4.0.0...5.0.0)

---
updated-dependencies:
- dependency-name: IdentityModel.OidcClient
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-09 18:01:47 -07:00
dependabot[bot]
256324c7fb Bump Portable.BouncyCastle from 1.8.10 to 1.9.0 (#929)
Bumps [Portable.BouncyCastle](https://github.com/novotnyllc/bc-csharp) from 1.8.10 to 1.9.0.
- [Release notes](https://github.com/novotnyllc/bc-csharp/releases)
- [Commits](https://github.com/novotnyllc/bc-csharp/compare/pcl-v1.8.10...pcl-v1.9.0)

---
updated-dependencies:
- dependency-name: Portable.BouncyCastle
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-09 09:57:46 -07:00
dependabot[bot]
35435ccbfd Bump prometheus-net from 5.0.1 to 6.0.0 (#916)
Bumps [prometheus-net](https://github.com/prometheus-net/prometheus-net) from 5.0.1 to 6.0.0.
- [Release notes](https://github.com/prometheus-net/prometheus-net/releases)
- [Changelog](https://github.com/prometheus-net/prometheus-net/blob/master/History)
- [Commits](https://github.com/prometheus-net/prometheus-net/compare/v5.0.1...v6.0.0)

---
updated-dependencies:
- dependency-name: prometheus-net
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-08 07:51:47 -07:00
dependabot[bot]
ca9396a21d Bump System.IO.Abstractions from 13.2.47 to 17.0.21 (#919)
Bumps [System.IO.Abstractions](https://github.com/TestableIO/System.IO.Abstractions) from 13.2.47 to 17.0.21.
- [Release notes](https://github.com/TestableIO/System.IO.Abstractions/releases)
- [Commits](https://github.com/TestableIO/System.IO.Abstractions/compare/v13.2.47...v17.0.21)

---
updated-dependencies:
- dependency-name: System.IO.Abstractions
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-07 09:09:36 -07:00
stan-sz
9e6e2f0baa Standardize TargetFramwork for VisualStudio IDE (#810)
* 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>
2022-03-29 13:01:26 -07:00
Boshi Lian
57037f0070 move kubectl config and yaml related to model module (#806)
* move yaml and config to models module

* better naming

* address comments
2022-03-28 16:57:12 -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
Weihan Li
0f09a330bc Support for package icon file (#800) 2022-03-21 19:19:44 -07:00
Boshi Lian
01b2aa832c cleanup folders (#792)
* unify folders

* move dep and target outside
2022-03-07 10:06:55 -08:00
Weihan Li
c11e205a01 Update System.Text.Json dependency (#791)
* Update System.Text.Json dependency

* Update System.Text.Json dependency condition
2022-02-27 22:35:34 -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
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