1
0
mirror of https://github.com/rancher/norman.git synced 2025-08-30 13:28:48 +00:00
Commit Graph

735 Commits

Author SHA1 Message Date
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
Craig Jellick
b694ecb0eb Log panics as error
The defaul http server logs panics to the server's log handler.
That goes to debug level and thus panics are not seen when running
rancher at a normal log level.

This fixes the problem by catching the panic at the top level norman
http handler and logging them as errors there.
2019-02-11 11:59:18 -07:00
Darren Shepherd
5078dd2c63
Merge pull request #246 from ibuildthecloud/legacy
Fix bug that doesn't print errors
2019-02-01 15:35:06 -07:00
Darren Shepherd
a719648e4b Fix bug that doesn't print errors 2019-02-01 15:05:55 -07:00
Darren Shepherd
196df5ed9d
Merge pull request #245 from alena1108/jan29
MinLength verification bug fix
2019-01-29 14:57:22 -07:00
Alena Prokharchyk
cf3f1e303f MinLength verification bug fix 2019-01-29 13:55:47 -08:00
Darren Shepherd
fe50543a2e
Merge pull request #244 from StrongMonkey/inputid
don't compare inputid
2019-01-15 13:25:55 -07:00
Daishan Peng
6b6d3f5542 don't compare inputid 2019-01-15 13:11:40 -07:00
Darren Shepherd
2f51258e53
Merge pull request #243 from ibuildthecloud/legacy
Allow discovery of API clients
2019-01-11 17:02:39 -07:00
Darren Shepherd
1fd5af67a4 Allow discovery of API clients 2019-01-11 16:56:51 -07:00
Darren Shepherd
ad8537c903
Merge pull request #242 from ibuildthecloud/legacy
Add ratelimiting to objectset apply
2019-01-11 09:18:30 -07:00
Darren Shepherd
de17bf5b75 Add ratelimiting to objectset apply 2019-01-11 09:11:58 -07:00
Darren Shepherd
d9246af8e9
Merge pull request #241 from orangedeng/fix-embed-ignore-list
Fix embed mapper ignore list not working
2019-01-11 09:07:48 -07:00