1
0
mirror of https://github.com/rancher/norman.git synced 2025-09-24 20:48:18 +00:00
Commit Graph

37 Commits

Author SHA1 Message Date
Yuki Nishiwaki
129bbd3ca3 Configure HandshakeTimeout in websocket.Dialer
To prevent agent from being hung in the middle of Websocket Session
Handshake, We'd better to set HandshakeTimeout

Related to https://github.com/rancher/rancher/issues/21117
2019-06-26 00:55:50 +09:00
Darren Shepherd
d499db2294 Merge pull request #259 from Mikulas/domodify-nil
Fix DoModify crashing on nil objects
2019-03-28 12:10:53 -07:00
^_^void
f49de2f44d ensure resp.Body closed
In the old code, `resp` defined at line 215 will be rewrite at line 241. So that the `resp` after `defer` at both line 219 and 245 will operate the same one. And the other on leaks.
2019-03-27 20:34:04 +08:00
Mikuláš Dítě
e1ee288bd7 Fix DoModify crashing on nil objects 2019-03-19 14:07:00 +01:00
Darren Shepherd
093318714b Add ability to pass in WebSocket dialer 2018-07-31 14:10:23 -07:00
Darren Shepherd
19878010e4 Add Replace to generic client 2018-07-31 14:10:23 -07:00
Darren Shepherd
35d7571228 Improve client debug logging 2018-07-19 10:23:17 -07:00
Darren Shepherd
16ed673d50 Revert collection URL lookup 2018-07-19 10:23:17 -07:00
Darren Shepherd
23c18792d2 Add replace to client 2018-07-19 10:23:17 -07:00
Darren Shepherd
2706ddc350 Change default timeout to 1 minute 2018-07-19 10:23:17 -07:00
Darren Shepherd
413808be1d Make debug variable public 2018-07-19 10:23:17 -07:00
Darren Shepherd
fbc49a97af Make websocket dialer use same TLSClientConfig has http client 2018-07-19 10:23:17 -07:00
Darren Shepherd
da330debe9 Export NewAPIError and SetupRequest 2018-07-19 10:23:17 -07:00
Dan Ramich
98500d10f5 Update doAction to not expect a response
Problem:
doAction assumes that an action would have a response body which causes
JSON unmarshal errors

Solution:
Only attempt to Unmarshal when a response is expected
2018-04-27 15:27:40 -07:00
Dan Ramich
9846d7349c Add interface for APIBaseClient
Problem:
There are three clients based off the APIBaseClient so three code paths
are needed to make the same type of call in each client

Solution:
Add an interface so any client that satisfies it can be used to make
these calls
2018-04-10 22:48:58 -07:00
Darren Shepherd
ff60298f31 Move ObjectClient to different package 2018-04-03 14:09:16 -07:00
Dan Ramich
17c297e703 Add CollectionAction and update template to use collections 2018-04-03 12:55:33 -07:00
Darren Shepherd
510ed570d2 Add timeouts to rest clients 2018-04-02 15:46:10 -07:00
Darren Shepherd
fcf2b88855 Add some debug logging to see churn 2018-03-23 09:44:24 -07:00
Daishan Peng
dce4917fc2 fix list link for cluster type 2018-03-19 12:33:23 -04:00
Daishan Peng
a978cad0e8 add insecure flag, fix collection link, add yaml tags 2018-02-27 15:50:24 -07:00
Darren Shepherd
0f7c2968c9 Make controller and client more generic 2018-02-13 08:57:47 -07:00
Raul Sanchez
aa9c66a519 Feat: Added token suport to clientbase auth 2018-02-07 13:48:11 -08:00
Dan Ramich
d2d5892f3f Add option to pass in CAcert for verification
Problem:
Running a server with a self signed cert will cause tls errors

Solution:
Add abillity to pass in a cert file to use for tls verification
2018-01-31 20:57:39 +00:00
Darren Shepherd
e4d341fa65 Switch args in namespace methods 2018-01-18 23:41:45 +00:00
Darren Shepherd
1705b1753a Fix namespacing error in client 2018-01-12 14:39:58 +00:00
Darren Shepherd
10aa5a70b0 Add Patch to clients 2017-12-22 23:19:30 -07:00
Darren Shepherd
2550f12a9a Add offspring controller 2017-12-19 21:44:02 -07:00
Darren Shepherd
f07f35f319 Give access to unstructured client 2017-12-16 01:30:46 -07:00
Darren Shepherd
18d3f69aa8 Updates 2017-12-05 09:21:47 -07:00
Darren Shepherd
389d27b3e5 Updates 2017-11-28 14:28:25 -07:00
Darren Shepherd
38c9c5c6c3 Subcontext and mapping updates 2017-11-21 15:37:22 -07:00
Alena Prokharchyk
e5b52a20dc apis to api if group is empty 2017-11-14 13:38:35 -08:00
Darren Shepherd
9cb51e9a46 Generate clients in clientset style 2017-11-13 12:50:25 -07:00
Darren Shepherd
591b663b2d Changes to generator for deepcopygen 2017-11-11 17:07:09 -07:00
Darren Shepherd
f9b15a5e39 Change ById to ByID 2017-11-10 22:33:03 -07:00
Darren Shepherd
c8cab3f4f8 More initial dev 2017-11-10 21:46:30 -07:00