Commit Graph

7 Commits

Author SHA1 Message Date
Boshi LIAN
fe6a64351e update watch generator 2019-06-23 05:29:22 -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
7f6043a075 generator cmd param (#252) 2019-03-06 16:18:57 -08:00
Frederik Carlier
bc1cb6205c Watcher: notify the caller when the server closes the connection (#184)
* Watcher: Add onClosed event and callback

* Update the code generators to accept the onClose callback

* Re-generate API

* Update unit tests

* Fix unit test

* Watcher fixes/improvements:
- Run Task.Yield at the beginning to make sure we're running async
- Set Watching = false before invoking OnClosed, to make sure the callers see a consistent state.
2018-06-27 14:38:28 -07:00
Frederik Carlier
9253eeb2eb Fix issue where the watcher URLs would be prefixed with a '/'. This would lead to URLs such as https://localhost:8443//api/..., and the double // after the port number would case a 404 NOT FOUND response. (#164) 2018-05-29 19:42:34 -07:00
Frederik Carlier
bf4a7040d4 Add a common IKubernetesObject interface, expose type metadata (#152)
* - Implement common interface across all Kubernetes elements
- Add ApiVersion, Kind and Group properties

* Add IKubernetesObject interface

* Regenerate code

* Fixup after rebase

* Fixes after rebase, make method names consistent
2018-05-02 22:04:47 -07:00
Frederik Carlier
ebf8661641 Auto-generate Watcher code (for individual objects) (#148)
* Only keep WatchObjectAsync<T> in the manually-generated code

* Add a console application which can generate the various Watch methods

* Generate the Watch methods

* Use Nustache and templates to generate the watcher code

* Re-generate code
2018-04-30 15:07:27 -07:00