Commit Graph

284 Commits

Author SHA1 Message Date
Brendan Burns
06380095b4 Remove forward slashes from paths. (#323) 2019-12-19 16:45:32 -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
Brendan Burns
8a615c275a Add an exception for certs known not to work. (#322) 2019-11-21 20:29:28 -08:00
Brendan Burns
aadeb74af9 Add an initial github action. (#324)
* Add a new workflow.

* Update gitignore.
2019-11-08 22:03:39 -08:00
Boshi Lian
35f54a779f make windows happy (#314) 2019-10-22 16:04:12 -07:00
Boshi Lian
a95400bd50 watcher to support empty response (#313)
* Add a WatchAsync method.

* proposal for watcher async

* fix and add testcase for async watch

* try fix build
2019-10-22 16:02:13 -07:00
Boshi Lian
8ab95b6b92 gen v1.16.0 (#312)
* gen v1.16.0

* update version.json
2019-10-02 15:16:08 -07:00
Brendan Burns
d9bca19e77 Fix port-forward example (#309) 2019-09-30 00:53:38 -07:00
Brendan Burns
239125a85d Fix YAML serialization for IntOrString values. (#310) 2019-09-30 00:47:37 -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
Kumar Abhishek
fcd8c166da Merge pull request #287 from tg123/gen_v1.15.0
gen v1.15.0
2019-07-24 18:42:21 -07:00
Boshi Lian
e3e5ee9a41 fix build 2019-06-24 04:25:54 -07:00
Boshi Lian
d5074f8888 run generator again 2019-06-23 05:30:00 -07:00
Boshi LIAN
fe6a64351e update watch generator 2019-06-23 05:29:22 -07:00
Boshi Lian
3805988160 gen v1.15.0 2019-06-23 11:34:04 +00:00
Xin Yan
d6cb191be5 add websocket auth support for .net standard 2.0 support (#281)
* add websocket auth support for .net standard 2.0 support

* format file
2019-05-14 09:43:18 -07:00
Brendan Burns
e42916a316 Rev minikube version. (#283)
Also disable ubuntu build since it's broken.
2019-05-11 20:42:48 -07:00
Frederik Carlier
466e33995d Prototype Exec API (#271) 2019-04-01 14:18:34 -07:00
Boshi Lian
644cf76009 Gen v1.14.0 (#275)
* gen v1.14.0

* update watcher generator for 1.14
2019-03-28 11:51:58 -07:00
Boshi Lian
be4fa2489f Merge pull request #274 from qmfrederik/workarounds/disable-resharper
Temporarily disable the Resharper checks
2019-03-26 11:18:51 -07:00
Frederik Carlier
fad7cfe53f Temporarily disable the Resharper checks 2019-03-26 14:57:30 +01:00
Frederik Carlier
7b8a36c99e Add Linux & macOS leg to CI, add code coverage (#264) 2019-03-25 16:29:12 -07:00
Tom Kerkhove
a58f908685 Remove double "Usage" in docs (#270)
Remove double "Usage" in docs
2019-03-24 15:43:05 -07:00
Gaz Iqbal
fd1736f3e7 fixed KubernetesClientConfiguration.BuildConfigFromConfigFile not respecting the currentContext parameter (#269) 2019-03-22 17:00:09 -07:00
Brendan Burns
bf995e55c6 Improve README.md with better example and descriptions. (#250)
* Improve README.md with better example and descriptions.

* Address comments.
2019-03-22 16:58:09 -07: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
cd7cda5836 Mark all Fractions classes as internal (#265)
* Mark all Fractions classes as internal

* Rename the Fractions namespace to k8s.Internal.Fractions
2019-03-22 10:30:51 -07:00
Frederik Carlier
161015ab86 Update CI dependencies (#261)
* Update CI dependencies

* Use Ubuntu Xenial
2019-03-21 16:26:17 -07:00
Frederik Carlier
425d4f81f0 Update NuGet dependencies for the Tests project (#260) 2019-03-20 08:55:04 -07:00
Frederik Carlier
9ae3cb38fc Fix build warnings in the StreamDemuxerTests (#259)
* Make sure StreamDemuxer.Start() returns immediately.

* Make MockWebSocket.RecieveAsync cancellable

* Fix staging
2019-03-20 08:53:04 -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
60ffd20a7c Rev to 1.5 (#256) 2019-03-12 15:36:15 -07:00
Brendan Burns
7e907d7c6f Re-add nerdbank while we setup the azure pipeline... (#255) 2019-03-12 15:18:39 -07:00
etchang
9bdaf132d4 Add bundle certificate support (#253)
* initial

* add some comments

* cleanup

* var

* Use X509Certificate2cCollection

* add missing asset files

* address comments
2019-03-11 06:39:28 -07:00
Boshi Lian
f6b58d535a gen v1.13.4 (#254) 2019-03-08 16:54:55 -08:00
Boshi Lian
7f6043a075 generator cmd param (#252) 2019-03-06 16:18:57 -08:00
Brendan Burns
de99b2b6b4 Improve the default client loading code. (#251)
* Improve the default client loading code.

* Address comments.
2019-03-06 01:26:04 -08: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
Brendan Burns
5422eb0bcc Update dotnet on OS X to 2.2 (#246) 2019-02-27 10:49:19 -08:00
Brendan Burns
948d78c1bd Fix elliptic curve certs and add a unit test (#243)
* Fix a elipitic curve certs and add a unit test.

* Address comments.

* Change the key to be OSX compatible.
2019-02-27 10:45:21 -08:00
Brendan Burns
e95e01c6e9 Fix documentation of how to regenerate the client code. (#244) 2019-02-19 02:19:40 -08:00
Boshi Lian
406df57f9d pretend to support chain (#245) 2019-02-15 11:57:24 -08:00
Daniel Semedo
a349292fc2 Update Program.cs (#240) 2019-02-12 21:40:09 -08:00
itowlson
9f1669b0cb Fix up YAML serialisation to understand AutoRest property renaming (#209) 2019-02-11 21:07:00 -08:00
maganvill
9bbe42201f Introducing KubernetesClientConfiguration.ClientCertificateKeyStoreFl… (#237)
* Introducing KubernetesClientConfiguration.ClientCertificateKeyStoreFlags to specify how private key is imported

* Type-o
2019-02-06 22:58:08 -08:00
Roy Lenferink
4d193e4c1c Updated OWNERS file to include link to docs (#238) 2019-02-05 22:10:52 -08:00
Xin Yan
5adf9a3841 bug fix - remove port bytes during port forwarding (#233)
* fix a race condition.
when multiple call to GetStream happens around the same time, on the
same inputIndex, a race condition will cause this.buffers.Add() to throw
exception.

* add WebSocket server certificate validation support for net 452

* port forwarding bug fix

In StreamDemuxer, if the buffer is created before connection is established, the port bytes are not removed when
the bytes are delivering to the client. Repro code looks like (the key is to call remoteStreams.Start AFTER
GetStream):

  var ws = await kubernetesClient.WebSocketNamespacedPodPortForwardAsync (... )
  var remoteStreams = new StreamDemuxer(ws);
  var stream = remoteStreams.GetStream(0, 0);
  remoteStreams.Start();

This change filters out the port bytes which are the 2nd and 3rd bytes sent in all cases.

* incorporate review feedbacks.
add an enum StreamType to StreamDemuxer so it knows whether / how
the data stream should be handled.

* add tests, fix skip bytes scenario for multiple streams

* add more tests for verifying content.

* simplify code a bit
2019-02-01 14:57:09 -08:00