Dan Ramich
e40cd8f347
Update cluster_check to use interface if available
...
Problem:
cluster_check relies on reflect which is slow and causes a large
performance hit which is especially noticable on restart
Solution:
Add a new interface ObjectClusterName that objects can implement so
reflect isn't used for that type
2020-03-02 10:21:55 -07:00
Darren Shepherd
40d836d518
Merge pull request #352 from ibuildthecloud/master
...
Performance enhancement by using strings.Builder or bytes.Buffer
2020-03-01 21:46:21 -07:00
Darren Shepherd
21eb3aa63c
Performance enhancement by using strings.Builder or bytes.Buffer
2020-03-01 21:33:11 -07:00
Darren Shepherd
69ad517ced
Merge pull request #349 from vincent99/master
...
CSRF Cookie fixes
2020-02-26 12:30:07 -07:00
Vincent Fiduccia
f894f8fc5d
CSRF Cookie fixes
...
- Only set the cookie if it doesn't exist
- Always mark it secure (it was previously getting re-sent as not)
-.Check the value against the header even if there was no value (so that
a request that is missing the cookie but should have had one fails).
2020-02-24 15:50:44 -07:00
Darren Shepherd
9bd5ca9698
Merge pull request #348 from ibuildthecloud/clientconfig
...
Fix x-api-host when setting ports
2020-02-21 13:30:08 -07:00
Darren Shepherd
b16f3160d5
Fix x-api-host when setting ports
2020-02-21 13:17:25 -07:00
Darren Shepherd
bf773d0210
Merge pull request #347 from ibuildthecloud/clientconfig
...
Fix non-Linux build
2020-02-12 15:26:55 -07:00
Darren Shepherd
842289e01e
Fix non-Linux build
2020-02-12 15:26:36 -07:00
Darren Shepherd
041e160497
Merge pull request #345 from ibuildthecloud/clientconfig
...
Refactor k8s startup to return ClientConfig
2020-02-12 14:32:23 -07:00
Darren Shepherd
8d0eea5619
Update vendor
2020-02-12 14:19:36 -07:00
Darren Shepherd
309abf194c
Merge pull request #346 from ibuildthecloud/url
...
Make URL parsing logic match steve
2020-02-12 14:18:29 -07:00
Darren Shepherd
a455d0bc4f
Make URL parsing logic match steve
2020-02-12 14:13:10 -07:00
Darren Shepherd
732b9611fa
Refactor k8s startup to return ClientConfig
2020-02-12 14:04:40 -07:00
Dan Ramich
fc45a55d4d
Merge pull request #344 from rawmind0/pagination
...
Fix ListAll function on types_template.go to depaginate results on collection
2020-02-11 08:51:26 -07:00
rawmind0
1e35d1c396
Fix ListAll function on types_template.go to depaginate results on collection
2020-02-11 14:07:00 +01:00
Dan Ramich
40f8d46bcf
Merge pull request #343 from rawmind0/pagination
...
Added ListAll function on types_template.go to depaginate results on collection
2020-02-10 10:30:39 -07:00
rawmind0
9035b1ea41
Added ListAll function on types_template.go to depaginate results on collection
2020-02-10 11:26:04 +01:00
Darren Shepherd
99f434a2d0
Merge pull request #342 from ibuildthecloud/transaction
...
Don't rate limit the sync of handlers
2020-02-07 10:11:57 -07:00
Darren Shepherd
409c47c0cd
Don't rate limit the sync of handlers
2020-02-06 22:04:22 -07:00
Darren Shepherd
ef3920abad
Merge pull request #329 from jordanjean/proxy-support
...
Proxy Support
2020-02-05 21:25:42 -07:00
Darren Shepherd
6a8b7a440c
Merge pull request #341 from ibuildthecloud/transaction
...
Add EnqueueAfter
2020-02-05 21:18:04 -07:00
Darren Shepherd
fb2d75a6b8
Remove unused interfaces
2020-02-05 21:16:03 -07:00
Darren Shepherd
202dd06a36
Add EnqueueAfter
2020-02-05 21:16:03 -07:00
Darren Shepherd
34d59ccb8e
Merge pull request #340 from ibuildthecloud/transaction
...
Add ability to add handlers transactionally across controllers
2020-02-05 21:14:12 -07:00
Darren Shepherd
899cfdf49b
Add ability to add handlers transactionally across controllers
2020-02-05 20:47:25 -07:00
Brenda Rearden
9243731627
k3s options update
2020-02-04 17:16:55 -08:00
Darren Shepherd
9dd0f76a7e
Merge pull request #339 from ibuildthecloud/master
...
Move ratelimit to wrangler
2020-02-01 22:14:08 -07:00
Darren Shepherd
57e6592090
Update vendor
2020-02-01 22:12:12 -07:00
Darren Shepherd
52ab7b61fb
Move ratelimit to wrangler
2020-02-01 22:12:02 -07:00
Darren Shepherd
8833d8776b
Merge pull request #338 from ibuildthecloud/master
...
Add generic broadcaster
2020-01-31 21:28:55 -07:00
Darren Shepherd
8841c697b8
Add generic broadcaster
2020-01-31 21:27:45 -07:00
Dan Ramich
91885aeab2
Merge pull request #337 from dramich/random
...
Use kubernetes to generate names
2020-01-31 13:54:19 -07:00
Dan Ramich
8d7dd5fb27
Use kubernetes to generate names
2020-01-31 13:51:59 -07:00
Dan Ramich
acbc111463
Move session metrics to remotedialer
2020-01-29 08:49:56 -08:00
Dan Ramich
8d88f163f1
Vendor update
2020-01-29 08:49:56 -08:00
Darren Shepherd
768222c62d
Merge pull request #335 from ibuildthecloud/master
...
Make 1.17 behave like 1.16 to avoid ratelimiting
2020-01-23 22:06:18 -07:00
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