Commit Graph

263 Commits

Author SHA1 Message Date
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
Brendan Burns
588807fb44 Add a port-forwarding example. (#232)
* Add a port-forwarding example.

* Address comments.
2019-01-29 12:32:15 -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
Xin Yan
29b066286f add WebSocket server certificate validation for net452 (#231)
* 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
2019-01-24 12:06:34 -08:00
Cengiz Ilerler
05273b7db7 added support for GCP (#227)
fixes #226

neither GCP one nor Azure one supports renew expired token feature
2018-12-23 21:09:23 -08:00
Boshi Lian
1600e44b00 generate for 1.13 (#223)
* generate for 1.13 and bump ver to 1.4

* fix examples for 1.13

* update outdated cert
2018-12-11 21:10:39 -08:00
Aaron Roney
b7f79c924f Remove requirement for certificate authority and certificate authority data in kubeconfig. (#222)
* Remove requirement for certificate authority data in kubeconfig.

* Update src/KubernetesClient/KubernetesClientConfiguration.ConfigFile.cs

Update casing of `URL` at @itowlson suggestion.

Co-Authored-By: twitchax <twitchax@gmail.com>
2018-12-11 21:08:55 -08:00
Brendan Burns
6bc54a68c4 Rev a couple of versions. (#225) 2018-12-10 22:41:19 -08:00
itowlson
7c9cc88d38 Create KubernetesClientConfiguration from pre-loaded K8SConfiguration (#213)
* Create KubernetesClientConfiguration from pre-loaded K8SConfiguration

* Tweaked a couple more doc strings

* Fix duplicated tests

* Give the new method a more informative name
2018-10-26 23:25:22 -07:00
Brendan Burns
355d4a3927 Rev OS X SDK for dotnet (#217) 2018-10-26 23:04:22 -07:00
Brendan Burns
0b1669d5a5 Rev ASPNetCore version (#216) 2018-10-26 23:03:19 -07:00
Brendan Burns
aa1c880301 Disable a test on OS X because it started failing for unknown reasons (#218) 2018-10-26 22:50:22 -07:00
Xin Yan
25523d1985 fix a race condition. (#212)
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.
2018-10-25 22:21:27 -07:00
Brendan Burns
99dc2f7aaf Rev YamlDotNet library. (#211) 2018-10-25 21:25:01 -07:00
Boshi Lian
df3381607a run generate script for k8s 1.12 (#205)
* generate for 1.12

* run watch generator

* bump version
2018-10-03 13:38:37 -07:00
Boshi Lian
9372e3291f align files to .editorconfig (#203)
* align files to .editorconfig

* fix space cause build failed
2018-09-27 10:50:39 -07:00
Brandon McNama
09a8c8773a Update install-linux.sh (#201)
Fix typos
2018-09-13 13:41:51 -07:00
Jonathan Harrison
3cee7fbd93 Changes to support xamarin. (#200) 2018-09-09 20:00:45 -07:00
Nikhita Raghunath
397a582ff0 Add CONTRIBUTING.md (#199) 2018-08-19 15:46:42 -07:00
Brendan Burns
722d4e09d3 Regenerate code. (#197) 2018-08-07 16:28:43 -07:00
Brendan Burns
3551f03258 Add support for Azure AAD based authentication. (#193) 2018-07-19 08:07:47 -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