1
0
mirror of https://github.com/rancher/norman.git synced 2025-08-22 17:15:51 +00:00
Commit Graph

766 Commits

Author SHA1 Message Date
Darren Shepherd
613a38bcef Make 1.17 behave like 1.16 to avoid ratelimiting 2020-01-23 22:04:14 -07:00
Darren Shepherd
6d86f4e37a
Merge pull request #334 from ibuildthecloud/master
Update to k8s v1.17.0
2020-01-23 15:38:41 -07:00
Darren Shepherd
591231685b Don't use metav1 internal version but public meta/v1 2020-01-23 15:37:24 -07:00
Darren Shepherd
507d06b83f Update to k8s v1.17.0 2020-01-23 15:34:38 -07:00
Dan Ramich
c95753fa57 Update controller to allow adding handlers after controller is running 2020-01-22 15:15:39 -08:00
Jordan JEAN
39e54730f9 Introduce proxy support 2020-01-07 17:40:07 +01:00
Darren Shepherd
5b9227fe32
Merge pull request #309 from nanorobocop/fix-crd-init
Use original crd if already exists
2019-12-09 09:37:39 -07:00
Darren Shepherd
3afadb987c Fix goroutine leak on failed sync() or before
A leak would occur if either a GenericController was created
and Sync() or Start() was never called or if Sync() failed.
2019-11-25 18:00:27 -07:00
kinarashah
2115b95249 change loglevel for watcher err
changing error level to debug, the error is already handled, new watcher
gets started after the current one is closed. Closing is not done by
rancher, it's a k8s behavior.
2019-11-18 13:35:27 -08:00
Dan Ramich
5a9f64e84e Update to add additional metrics 2019-11-18 09:16:05 -08:00
Dan Ramich
ee09ed5050
Merge pull request #322 from rmweir/add-unauth-check-2.4
[Forwardport] 2.4: Add unauthorized error check
2019-11-18 08:49:00 -08:00
rmweir
5af9463892 Add unauthorized error check 2019-11-15 18:21:32 -07:00
Dan Ramich
1fcac7eb4f
Merge pull request #318 from nanorobocop/namespaced-list-for-object-client
Add ListNamespaced method for ObjectClient
2019-11-11 12:20:53 -08:00
nanorobocop
8a250ebde2 Add ListNamespaced method for ObjectClient 2019-11-06 11:22:11 +09:00
kinarashah
0ac7dd6ccb show only err msg on watch 2019-10-03 10:43:45 -07:00
kinarashah
b1eb20740e check for v1.Status from errorReporter 2019-10-02 10:31:22 -07:00
kinarashah
e09204b630 NewClientErrorReporter 2019-09-30 09:47:04 -07:00
kinarashah
5bbe7031a6 vendor change 2019-09-30 09:47:04 -07:00
Mansur Marvanov
bfa0b88932 Use original crd if already exists 2019-09-30 20:35:31 +09:00
Darren Shepherd
a40a48add2
Merge pull request #306 from ibuildthecloud/log
Log etcd output
2019-09-17 14:15:48 -07:00
Darren Shepherd
dc07b0ad6a Log etcd output 2019-09-17 14:13:03 -07:00
Darren Shepherd
25c20af174
Merge pull request #304 from daxmc99/remove_remotedialer
Remove remotedialer
2019-09-06 16:02:28 -07:00
Dax McDonald
2c34cde588 Remove remotedialer 2019-09-06 14:44:43 -07:00
Luther Monson
7317090b9b response nil check 2019-08-29 15:36:13 -07:00
dax
cbeaf3e5bf Fix error shadowing 2019-08-29 15:27:56 -07:00
Luther
93f43c6a13 improve web socket error logging 2019-08-29 14:09:53 -07:00
Darren Shepherd
20a936b685
Merge pull request #300 from daxmc99/globalRB_gc_2.3
Global rolebindings garabage collection
2019-08-21 16:45:28 -07:00
Dax McDonald
1fff189de5 Remove PutClusterScoped from controllers 2019-08-21 13:45:52 -07:00
Dax McDonald
88a4fa4f24 Add PutClusterScoped to NewLifecycleAdapter & add imports 2019-08-21 13:36:22 -07:00
Dax McDonald
61e72a6bdb Change Error to Errorf 2019-08-19 16:42:53 -07:00
Darren Shepherd
cbc49d7ce7
Merge pull request #298 from ibuildthecloud/master
Disable servicelb and enable scheduler
2019-08-19 14:40:03 -07:00
Darren Shepherd
c02886cd48 Disable servicelb and enable scheduler 2019-08-19 14:39:07 -07:00
Darren Shepherd
9c5479f6e5
Merge pull request #297 from ibuildthecloud/master
Switch to go modules
2019-08-19 10:25:43 -07:00
Darren Shepherd
e27af3a6f2 Bump to golang 1.12.9 2019-08-19 10:14:08 -07:00
Darren Shepherd
40212fa263 Switch to go modules 2019-08-19 10:14:08 -07:00
Darren Shepherd
07c964e242 Move to some wrangler utils and k3s 2019-08-19 10:14:05 -07:00
gitlawr
f7bdda798a Pass delete options in proxy store
Problem:
There is no way to pass gracePeriodSeconds for force deletion

Solution:
Get deletion options in query params and pass it in proxy store
2019-08-09 08:26:23 -07:00
Darren Shepherd
043a1c919d
Merge pull request #291 from ukinau/Configure-WebSocket-Handshake
Configure HandshakeTimeout in websocket.Dialer
2019-07-03 17:02:24 -07:00
rmweir
2da1bd2ffc Add enable function and addFeature functions
Added enable function to schemas. This allows filtering of schemas
which is a required part of feature flagging in rancher. Added
addFeature functions to controller template for adding handlers that
can be disabled if their associated feature is disabled.
2019-07-02 12:18:40 -07:00
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
dax
f5744043a6 Refactor set of cluster scoped handlers
Problem: Cluster scoped gc was taking significantly longer to complete
than before 7387aa5. This was due to a large number of list calls and
the time needed to iterate over them.

Solution: Instead of requesting every type than Rancher uses, a
seperate map appended to when a cluster scoped handler
is created. The full map of all GroupVersionResources is kept as a
fallback for the use case where user controllers may exist on another
host other than the current leader.
2019-05-28 18:48:15 -07:00
Dan Ramich
ea122abac5 Update dev mode env var to CATTLE_DEV_MODE 2019-05-03 08:59:02 -07:00
kinarashah
1cd0504405 set secure for CSRF cookie 2019-05-01 13:29:53 -07:00
gitlawr
f18ee0dedb Do not wrap a wrapped schema store
Problem:
Pagination is broken when the schema store is wrapped twice

Solution:
Do not wrap a wrapped schema store
2019-05-01 13:00:08 -07:00
Dan Ramich
5bf0d4b458 Update dev envvar 2019-04-23 16:18:42 -07:00
rmweir
5b40a73366 Add IsNotFound error check
Added function for checking if an error has code 404 (is not found).
2019-04-23 13:13:43 -07:00
dax
7387aa53a5 Record cluster scoped handlers
Problem: Cluster scoped handlers were not being cleaned up without
manually writing garbage collection functions.

Solution: All cluster scoped handlers will be recorded in a global map
in a generic format so that they can be removed by a generic function.
2019-04-23 12:25:39 -07:00
Dan Ramich
01a9966237 Fix file name for mocks 2019-04-11 09:34:19 -07:00
Darren Shepherd
03b89d4fb7
Merge pull request #268 from dramich/genin
Generate fakes for controllers
2019-04-10 09:44:29 -07:00
Darren Shepherd
431c5ea988
Merge pull request #273 from guilhem/patch-1
Fix listing
2019-04-09 09:59:14 -07:00