1
0
mirror of https://github.com/rancher/norman.git synced 2025-08-02 07:59:20 +00:00
Commit Graph

457 Commits

Author SHA1 Message Date
^_^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
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
orangedeng
d71b4215d0 Fix embed mapper ignore list not working 2019-01-09 15:22:22 +08:00
Darren Shepherd
0557aa4ff3
Merge pull request #239 from ibuildthecloud/master
Change log level
2018-12-19 20:56:47 -07:00
Darren Shepherd
12f29fbf6d Change log level 2018-12-19 20:55:41 -07:00
Darren Shepherd
9599c43877
Merge pull request #238 from ibuildthecloud/master
Fix issues in patch generation
2018-12-19 11:32:37 -07:00
Darren Shepherd
c09551004f Fix issues in patch generation 2018-12-19 11:31:24 -07:00
Darren Shepherd
457c15b94a
Merge pull request #234 from ibuildthecloud/master
Various
2018-12-17 16:06:28 -07:00
Darren Shepherd
9bab510069 Add objectset API 2018-12-17 15:44:50 -07:00
Darren Shepherd
4350a8688b Add Interface to Clients 2018-12-17 15:44:50 -07:00
Darren Shepherd
77a8edaa99 Allow circular types to be imported 2018-12-17 15:44:50 -07:00
Darren Shepherd
a20e5736da Fix patch to require patchtype parameter 2018-12-17 15:43:21 -07:00
Darren Shepherd
9c8de64358 Add type constructors to make things a bit nicer 2018-12-17 15:43:21 -07:00
Darren Shepherd
b9bd7461bd If disablecontrollers don't start global controllers 2018-12-17 15:43:21 -07:00
Darren Shepherd
6782e638ac Force nil values to nil,nil interface 2018-12-17 15:43:21 -07:00
Darren Shepherd
5195fedee1
Merge pull request #237 from aiwantaozi/fix-float
Add default value to float type
2018-12-17 15:43:08 -07:00
Aiwantaozi
b681b841db Add default value to float type
Problem:
float type default value are convert to string now

Solution:
add default value for float

Issue:
https://github.com/rancher/rancher/issues/16958
2018-12-07 18:58:27 +08:00
Darren Shepherd
dc01b97134
Merge pull request #236 from dramich/slowleader
Add a flag to make leaderelection loooong
2018-12-06 09:52:32 -07:00
Dan Ramich
5cc5410e98 Add a flag to make leaderelection loooong 2018-12-05 15:04:27 -07:00
Darren Shepherd
38b634c751
Merge pull request #233 from ibuildthecloud/master
Drop revision check for lifecycle update
2018-11-28 09:59:09 -07:00
Darren Shepherd
3fcee106fd Drop revision check for lifecycle update 2018-11-28 09:58:09 -07:00
Darren Shepherd
1d24e0fc0b
Merge pull request #232 from ibuildthecloud/master
Fix bugs in lifecycle
2018-11-26 10:47:56 -07:00
Darren Shepherd
f1c772b7f1 Fix bugs in lifecycle 2018-11-26 10:46:27 -07:00
Darren Shepherd
146f45dafa
Merge pull request #226 from ibuildthecloud/master
New client style
2018-11-26 08:45:56 -07:00
Darren Shepherd
f88fcd7223 Fix bug where we don't trigger handlers on second start 2018-11-26 08:43:27 -07:00
Darren Shepherd
1561b42e18 Change changeset enqueuer to interface 2018-11-26 08:43:27 -07:00
Darren Shepherd
a036721900 New client style 2018-11-26 08:43:27 -07:00
Darren Shepherd
3632a2ab7a Add Track method 2018-11-26 08:33:11 -07:00
Craig Jellick
966530d6e9 avoid unnecessary allocation 2018-11-21 07:22:47 -07:00
Craig Jellick
63af681f23 List and Get retry logic
Some cloud provider k8s APIs have random timeouts on listing and getting.
This change introduces a retry on lists and gets.
2018-11-20 10:45:13 -07:00