Max Korp
91b33a9763
Ensure that closed watchers are always stopped
...
This would cause a new watcher to be started without ever cleaning up the old one, which was causing memory leaks.
2018-09-21 16:47:57 -07:00
Darren Shepherd
37bae85b96
Return proper v1.Status error, not masking marshaling error
2018-09-20 09:34:36 -07:00
Nathan Jenan
e2fa956b64
Add dynamic field to field struct
...
This change adds a dynamic field indicator to the field struct. This is so
we can remove the dynamic fields from an existing schema before merging the
dynamic schema and actual schema to prevent removed dynamic fields form being
incorrectly left behind on the schema.
Issue:
https://github.com/rancher/rancher/issues/12698
2018-09-18 10:14:28 -07:00
Darren Shepherd
3a7e3090fb
Merge pull request #191 from antmanler/filter-namesapces
...
Enable filter namespaces on server side
2018-09-14 14:17:54 -07:00
Nathan Jenan
915dc06a9d
Revert "Revert "Don't strip strings on output""
...
This reverts commit 4bcc025ae3
.
2018-09-10 20:34:17 -07:00
antmanler
c7abb57dea
Only checks on ModifierEQ
2018-09-01 14:54:47 +08:00
Darren Shepherd
012759b2f8
Drop Config from ClientGetter interface
2018-08-31 10:42:48 -07:00
Dan Ramich
27ebab5e48
Add label to objects created through norman
2018-08-29 15:30:05 -07:00
Alena Prokharchyk
1d3cf7aee8
Log forget error in debug
2018-08-25 15:44:50 -07:00
antmanler
c159270dc1
Enable filter namespaces on server side
2018-08-24 09:13:43 +08:00
Dan Ramich
12c3f92bed
Revert changes to template for controllers
2018-08-23 14:48:08 -07:00
Daishan Peng
643868f4a6
add method to compare if error has tmp file path
...
add a method to check if the error message contains a tmp file path. It
is to prevent updating resource's condition forever and causing the
controller flapping. https://github.com/rancher/rancher/issues/15103
2018-08-17 15:39:50 -07:00
Craig Jellick
4bcc025ae3
Revert "Don't strip strings on output"
...
This reverts commit 5e344d90cd
.
Tested this and it broke more scenarios
2018-08-17 14:28:10 -07:00
Nathan Jenan
316a8acc04
Fixing bug in Norman where references to a schema were improperly deleted.
...
This is to support pluggable kontainer drivers.
Issue:
https://github.com/rancher/rancher/issues/12698
2018-08-13 10:18:42 -07:00
Darren Shepherd
04c7130e5f
Add changed method
2018-08-13 10:00:02 -07:00
Darren Shepherd
5e344d90cd
Don't strip strings on output
2018-08-13 10:00:02 -07:00
kinarashah
58f46da754
return on first try if err is not conflict
...
Resolves : rancher/rancher#14940
2018-08-04 10:50:35 -07:00
Daishan Peng
33b13aaf9d
use background delete
2018-07-31 18:29:57 -07:00
Darren Shepherd
9620967ad5
Fallback to custom decoder
2018-07-31 18:24:07 -07:00
Darren Shepherd
5a8ca5f1e5
Only set type if id is set
2018-07-31 14:10:23 -07:00
Darren Shepherd
093318714b
Add ability to pass in WebSocket dialer
2018-07-31 14:10:23 -07:00
Darren Shepherd
19878010e4
Add Replace to generic client
2018-07-31 14:10:23 -07:00
Darren Shepherd
bfc612cdcb
Remove unused offspring controller
2018-07-31 14:10:23 -07:00
Darren Shepherd
b9de8d4273
More verbose error message when reflection fails
2018-07-31 14:10:23 -07:00
Darren Shepherd
fb7c8a27e9
Support uint32
2018-07-31 14:10:23 -07:00
Darren Shepherd
1459e6f3a5
Support maps and slices of pointers
2018-07-31 14:10:23 -07:00
Darren Shepherd
dde4ff79de
Fix merging of fields that are maps of other types
2018-07-31 14:10:23 -07:00
Darren Shepherd
88184ca7fe
Use framer to avoid invalid parsing of the stream
2018-07-31 14:10:23 -07:00
Bill Maxwell
de9510b940
Default to noop metric provider
...
With the built in prom. metrics provider, the k8s machinery doesnt
deregister metrics when controllers are removed. So over time as
things like clusters are created or removed the metrics are not
cleaned up. The metrics types for the cache and queue are also
very large. They can take ~1GB of RAM in a 100 cluster setup.
Also, Rancher is not exposing these stats so they are unobservable.
2018-07-27 12:50:44 -07:00
Dan Ramich
0953e9e976
Update template to include created label
2018-07-25 09:31:30 -07:00
loganhz
2af274f953
API-UI 1.1.5
...
https://github.com/rancher/rancher/issues/13732
2018-07-24 14:33:56 -07:00
Darren Shepherd
d985e01035
Add type before and after
2018-07-19 23:56:06 -07:00
Darren Shepherd
c032c4611f
Update vendor
2018-07-19 10:23:17 -07:00
Darren Shepherd
9324ec8b09
Add Optional to access mapper
2018-07-19 10:23:17 -07:00
Darren Shepherd
dca6c2e43d
Add searching to date fields by default
2018-07-19 10:23:17 -07:00
Darren Shepherd
c29825b3db
Rename IsEmpty to IsAPIObjectEmpty
2018-07-19 10:23:17 -07:00
Darren Shepherd
c3512e7097
Add yaml formatting for pretty edit mode
2018-07-19 10:23:17 -07:00
Darren Shepherd
843a604715
Fix replace logic
2018-07-19 10:23:17 -07:00
Darren Shepherd
7b6bca9b64
Add util methods to convert to idiomatic json/yaml key formats
2018-07-19 10:23:17 -07:00
Darren Shepherd
1d4a52cb31
make type conversion and field validation public util methods
2018-07-19 10:23:17 -07:00
Darren Shepherd
58723a866e
Formatting change for generated client
2018-07-19 10:23:17 -07:00
Darren Shepherd
35d7571228
Improve client debug logging
2018-07-19 10:23:17 -07:00
Darren Shepherd
64a3b83d23
Add slice.StringsEquals
2018-07-19 10:23:17 -07:00
Darren Shepherd
6bab9eed93
Allow API to run through k8s service proxy
2018-07-19 10:23:17 -07:00
Darren Shepherd
f33accee7c
Add InputFormatter that runs before the builder/validation
2018-07-19 10:23:17 -07:00
Darren Shepherd
16ed673d50
Revert collection URL lookup
2018-07-19 10:23:17 -07:00
Darren Shepherd
c0cece100c
Add CodeName to Move Mapper
2018-07-19 10:23:17 -07:00
Darren Shepherd
51ea2cd7f6
Rename method
2018-07-19 10:23:17 -07:00
Darren Shepherd
88e3507f72
Change some logging to debug
...
# Conflicts:
# controller/generic_controller.go
# vendor.conf
2018-07-19 10:23:17 -07:00
Darren Shepherd
003c94dd27
Add root mapper
2018-07-19 10:23:17 -07:00