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
Boshi Lian
fb553c5c0d
refactor generator code ( #727 )
...
* refactor generator code
* remove unused files
* dotnet fmt
2021-10-14 06:55:19 -07:00
Boshi Lian
bc11d3aec2
httpclient to support different timeout for watch and regular api ( #725 )
...
* api for httpclient timeout
* testcases for global timeout
* update timeout to honor token
* generated files
2021-10-11 12:55:02 -07:00
Boshi Lian
78387dc44f
Fix 718 url not relative to baseuri ( #724 )
...
* trim starting / for api path
* regenerate with api path
2021-10-11 12:53:02 -07:00
Boshi Lian
6d90ddb722
add async foreach example ( #715 )
2021-09-29 15:34:44 -07:00
Boshi Lian
041f127136
add version matrix ( #716 )
2021-09-29 15:32:45 -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
463e2d94df
Fix 712 ( #713 )
...
* fix iter obj validate might npe
* generated models
2021-09-24 19:34:21 -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
6eea70326d
Inline tweak handler ( #706 )
...
* move tweak handler to template
* generated code
* remove handler from api
2021-09-17 08:23:01 -07:00
Boshi Lian
07ab21bb98
Fix log return disposed obj ( #705 )
...
* generator not to dispose stream
* new generated code
* test to cover log stream
2021-09-17 08:21:00 -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
Boshi Lian
61025a0255
add implicit cast back ( #696 )
2021-09-14 11:22:04 -07:00
Boshi Lian
b9032960e9
Inline watcher ( #681 )
...
* ignore more files
* inline watcher
* remove watcher handler
* generated files
* mark LineSeparatedHttpContent internal
* method removed
* fix warning
2021-09-14 11:20:05 -07:00
Boshi Lian
d66c914c86
Gen v1.22.0 ( #677 )
...
* generator to support bool?
* gen v1.22.0
* trim version convertor
* bump ver
2021-08-15 09:01:46 -07:00
Boshi Lian
3b8d3beab4
fix build warning ( #678 )
2021-08-10 10:40:40 -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
Boshi Lian
72afeafe96
fix flaky leader election tests ( #676 )
...
* force max thread
* add log
* use countdown to sync
* add logs
* add thread
2021-08-09 07:25:32 -07:00
Grégory Poircuitte
86e339a7f7
Fix typos ( #674 )
2021-08-04 07:53:24 -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
JHogue-80
0f0fc1a059
Fixed regex to quote strings with leading zeros ( #667 )
2021-07-21 18:05:51 -07:00
Weihan Li
f2d6d3c48a
Makes realFileSystem readonly ( #655 )
...
Makes `realFileSystem` read-only since it would not be updated
2021-07-01 08:45:55 -07:00
Mike Norgate
11273fe42f
fix leader election lease duration ( #653 )
...
* fix leader election lease duration
* fix cast
2021-06-27 06:58:51 -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
Boshi Lian
d2fa4dee25
expose tonumber of ResourceQuantity ( #639 )
2021-05-26 07:15:22 -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
Weihan Li
3ce35a74bf
Update TokenFileAuth to use async read file method ( #631 )
...
Fix typo
Use async method to read file token
2021-05-21 09:36:10 -07:00
Weihan Li
29c460d0ed
Public KubeConfigDefaultLocation ( #635 )
...
expose KubeConfigDefaultLocation so that user could use
2021-05-21 09:32:12 -07:00
Alex Vincent
0b9d6a6dd6
fix nuget symbols ( #626 )
2021-05-19 10:46:31 -07:00
Namra Prajapati
09f08d7659
Adding two new properties in ExternalExecution model. ( #620 )
2021-05-14 15:57:58 -07:00
Boshi Lian
9bea20bd4f
fix dateformat rejected ( #611 )
...
* fix dateformat rejected
* fix format
* fix format
2021-04-28 16:42:49 -07:00
AshenW0lf
9e4ea2743e
Update LICENSE ( #604 )
...
* Update LICENSE
Update the copyright notice within the licence agreement, as per the instructions under "APPENDIX: How to apply the Apache License to your work."
* Update LICENSE
Updated the date and licence holder for the copyright notice
2021-04-23 18:49:14 -07:00
Chad Jessup
2cbad3d429
Trimming double quote from parsed KUBECONFIG path. ( #608 )
...
Addresses #607 - trimming double quote when creating ```FileInfo```.
2021-04-20 11:04:34 -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
Ali Alp
17a89f2939
documentation syntaxt issues resolved ( #602 )
2021-04-08 11:21:11 -07:00
Boshi Lian
f827736bf1
fix nuget build ( #601 )
2021-04-08 07:56:57 -07:00
Benjamin Burns
57aef03afe
Default type map for YAML deserialization ( #599 )
...
* 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
2021-04-05 12:43:19 -07:00
Boshi Lian
edaeb1443a
fix partial chain ( #596 )
2021-04-02 14:52:12 -07:00
Boshi Lian
59352954c4
force http2 in handler ( #592 )
2021-03-24 11:36:08 -07:00
Boshi Lian
c4d1f852a2
better tcpkeepalive on linux ( #588 )
...
* make a opt for user to control the tcp keep alive
* apply workaround for linux
* fix fmt
2021-03-18 09:17:19 -07:00
Boshi Lian
cb9ca20d93
fix typo V1PathJsonConverter -> V1PatchJsonConverter ( #580 )
2021-03-11 09:36:22 -08:00
Boshi Lian
1b831ecf78
add apply patch type ( #579 )
2021-03-11 09:34:22 -08: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
Alex Meyer-Gleaves
d48e93c1f6
Support IgnoreUnmatchedProperties in YAML serialization ( #574 )
...
* Support IgnoreUnmatchedProperties in YAML serialization
* Remove unnecessary null-conditional operator
2021-03-02 12:35:20 -08:00
Alex Meyer-Gleaves
a4350d6c8f
Fix ObjectDisposedException thrown when calling Yaml.LoadAllFromFileAsync ( #573 )
2021-02-26 23:21:43 -08:00
Boshi Lian
b282b9571b
fix file not closed ( #571 )
2021-02-24 21:35:24 -08:00
Nick Kirby
a5614df8bc
Fix typos ( #565 )
...
This PR contains small typo corrections
2021-02-19 11:57:50 -08:00
Frederik Carlier
7025d50562
Regenerate API ( #564 )
2021-02-18 08:40:51 -08:00