1
0
mirror of https://github.com/rancher/norman.git synced 2025-09-25 06:26:50 +00:00
Commit Graph

497 Commits

Author SHA1 Message Date
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
Guilhem Lettron
15538392b2 Registers metav1 resource types
More information here: 0d42e742da
2019-04-08 20:59:26 +02:00
Guilhem Lettron
9d7a35cf47 Add json:items to list objects
Fix apimachinery work on list objects

ef51ab1605/pkg/runtime/conversion.go (L46):6
2019-04-08 13:27:10 +02:00
rmweir
c55b1eed18 Track namespaces in options property
Now, identifies and assigns namespaces. Prior, the
backend listed items belongng to all namespaces in
all projects no matter what because they were not
being tracked. This led to longer request times
for projects that contained a fraction of total
resources. Now, rancher can filter project
resource requests; times are improved and
largely dependent on resource amount for the given
project.
2019-04-05 17:12:04 -07:00
rmweir
9836657574 Add no pagination option
There is now a recognized option for opting out of pagination.
Prior, passing a limit of -1 would set the pagination limit to
the default, 1000. Now, a value of -1 will set the pagination
limit to the max, likely resulting in a non paginated response.
2019-04-05 16:42:43 -07:00
Dan Ramich
be2ec71987 Vendor changes 2019-04-05 10:24:14 -07:00
Dan Ramich
67bb53a805 Generate fakes for controllers 2019-04-05 10:24:14 -07: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
Darren Shepherd
b91a32d13a Merge pull request #264 from xmh19936688/patch-2
ensure resp.Body closed
2019-03-28 12:09:06 -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
Bill Maxwell
e10534b012 Merge pull request #260 from drpebcak/drone-1-update-syntax
Drone 1 update syntax
2019-03-19 10:53:55 -07:00
Taylor Price
0ffbea147c drone 1.x syntax 2019-03-19 10:27:25 -07:00
Mikuláš Dítě
e1ee288bd7 Fix DoModify crashing on nil objects 2019-03-19 14:07:00 +01:00
Darren Shepherd
a265edee9d Merge pull request #257 from ibuildthecloud/legacy
Assign bearer token to InClusterConfig
2019-02-27 15:34:46 -07:00
Darren Shepherd
947cf67811 Assign bearer token to InClusterConfig 2019-02-27 15:32:26 -07:00
Nathan Jenan
61998c76e3 Adding code to address aks timeout issue 2019-02-22 09:58:55 -07:00
Dan Ramich
9ba19df9be Add Frame-Options header
Problem:
Frame-Options header is not being set, this is a potential secutiry
issue

Solution:
Set the header "X-Frame-Options:deny"
2019-02-15 16:45:10 -07:00
Nathan Jenan
362802224f Adding ability to replace schemas
This change makes it so that schemas can be replaced when they already exist.
This is to support the ability for kontainer drivers to update their dynamic
schemas.

Issue:
https://github.com/rancher/rancher/issues/17712
2019-02-13 14:38:22 -07:00
Darren Shepherd
2d37b1235b Merge pull request #252 from cjellick/label-map-fix
Fix concurrent map read/write
2019-02-12 13:48:21 -07:00
Craig Jellick
445b05f70c Fix concurrent map read/write
Problem:
If you set a resource's labels to a global/shared map variable,
norman will modify that map by adding a label. In race conditions,
this can cause a concurrent map read/write panic.

Solution:
Copy the map in norman before modifying it.
2019-02-12 13:06:49 -07:00