Dan Ramich
9846d7349c
Add interface for APIBaseClient
...
Problem:
There are three clients based off the APIBaseClient so three code paths
are needed to make the same type of call in each client
Solution:
Add an interface so any client that satisfies it can be used to make
these calls
2018-04-10 22:48:58 -07:00
kinarashah
93bfc4ea3a
Check for cluster name in annotations
2018-04-06 10:21:13 -07:00
Darren Shepherd
4d46cbab5b
Add more debug logging
2018-04-04 03:08:15 -07:00
Darren Shepherd
50ffce9804
Add namespace indexer to controllers
2018-04-04 03:08:15 -07:00
Darren Shepherd
ff60298f31
Move ObjectClient to different package
2018-04-03 14:09:16 -07:00
Darren Shepherd
ebb7ecc23f
Use custom self URL for links
2018-04-03 14:09:16 -07:00
Dan Ramich
17c297e703
Add CollectionAction and update template to use collections
2018-04-03 12:55:33 -07:00
Darren Shepherd
510ed570d2
Add timeouts to rest clients
2018-04-02 15:46:10 -07:00
Dan Ramich
9f2b71df50
Update generator to handle collection as an output
2018-04-02 11:35:50 -07:00
Darren Shepherd
5c92744615
Try three times to remove finalizer
2018-04-02 04:27:50 -07:00
Darren Shepherd
d20a37adbe
Update CanList API
2018-03-31 03:25:04 -07:00
Darren Shepherd
4cf9f645cd
Refactor access control to return error not bool
2018-03-31 03:13:22 -07:00
Dan Ramich
7edec77619
Add ability to generate collection actions
...
Problem:
Collections have actions but are not accessable through the types
clients
Solution:
Update template and generator to output actions living on collections
2018-03-31 03:13:13 -07:00
Darren Shepherd
e9373e3511
Preserve selfLink in data
2018-03-29 15:58:51 -07:00
Alena Prokharchyk
2a236600f2
Merge pull request #116 from kinarashah/uproll
...
actionLinkByID
2018-03-28 10:22:07 -07:00
Darren Shepherd
cff992b3b4
Ignore for nullable enums
2018-03-26 19:06:15 -07:00
Darren Shepherd
41c044bb25
Make ints not nullable by default
2018-03-26 18:07:03 -07:00
kinarashah
b2e8d86797
actionLinkByID
2018-03-25 11:37:45 -07:00
Darren Shepherd
35fb4dfb92
Add Required mapper
2018-03-23 16:26:05 -07:00
Darren Shepherd
fcf2b88855
Add some debug logging to see churn
2018-03-23 09:44:24 -07:00
Darren Shepherd
34fad5e159
Add schema to Transformer funcs
2018-03-23 08:42:53 -07:00
Darren Shepherd
bcb8076caa
Allow types that start with cluster or project
2018-03-22 15:55:44 -07:00
Darren Shepherd
b5aef8d08d
Don't log conflicts as much
2018-03-22 15:55:44 -07:00
Daishan Peng
dce4917fc2
fix list link for cluster type
2018-03-19 12:33:23 -04:00
Nathan Jenan
0ada2dfa79
Add IsConflict to httperror
...
Add an IsConflict function to httperror package. The purpose of this
change is to allow the testing of APIErrors in a controlled and
centralized way.
Supports functionality in issue:
https://github.com/rancher/rancher/issues/11378
2018-03-15 09:29:34 -07:00
Craig Jellick
723fdccf80
Add function for parsing and validating an action
2018-03-15 09:10:03 -07:00
Craig Jellick
ba0bb125c9
Use request.PostForm instead of request.Form when
...
PostForm will ignore URL query parameters and will only look at the
body. This is much more useful for actions, which have a query param
that is the action name, but the a json body. WIthout this change,
the only "field" found when parsing an action body is the name of the
action.
2018-03-15 09:10:03 -07:00
Craig Jellick
cd5dee7857
User proper type field when converting array
...
Previously we were passing the name of the field, not the type
2018-03-15 09:10:03 -07:00
Darren Shepherd
e0efa84d62
Forgot to assign value
2018-03-04 22:41:12 -07:00
Darren Shepherd
1f0f16a832
Change defaulting logic
2018-03-04 22:06:50 -07:00
Darren Shepherd
1e9982bd45
Change NewErrors signature
2018-03-03 21:53:38 -07:00
Darren Shepherd
de91ccaa71
Add ByID param so transformer to known
2018-03-03 20:07:29 -07:00
Darren Shepherd
410b3efe86
Pass in schema to Filter/FilterList
2018-03-02 23:12:42 -07:00
Craig Jellick
d9307fc2f7
Fix url escaping
...
When parsing URL paths, unescape them so that characters that needed escaped
in order to be placed in the a path segment are returned to their original
form.
2018-03-01 21:44:19 -07:00
Craig Jellick
4bcfb14aba
Use escaped path for url parsing
2018-03-01 16:29:49 -07:00
Darren Shepherd
f59a6072cf
Default empty strings
2018-03-01 14:29:27 -07:00
Alena Prokharchyk
65e6d1cc46
Index out of range fix in batchMove
2018-02-27 18:35:08 -07:00
Daishan Peng
a978cad0e8
add insecure flag, fix collection link, add yaml tags
2018-02-27 15:50:24 -07:00
Darren Shepherd
ee25c89cfd
More mappers
2018-02-27 15:20:09 -07:00
Alena Prokharchyk
ef95950ff9
Transfrom fix
2018-02-27 10:16:20 -07:00
Darren Shepherd
47b787887b
Delete unused code
2018-02-26 16:14:39 -07:00
Darren Shepherd
2a6c821309
Add subContext data to validation
2018-02-26 16:14:39 -07:00
Alena Prokharchyk
5bce948e06
Merge pull request #100 from alena1108/feb26
...
Translate field to annotation only when not nil
2018-02-26 12:02:31 -08:00
Alena Prokharchyk
50be08fe26
Translate field to annotation only when not nil
2018-02-26 11:29:35 -08:00
Darren Shepherd
2399924e8c
Marshal default to correct type
2018-02-22 08:23:39 -07:00
Darren Shepherd
ad73d37172
Update vendor
2018-02-20 12:51:55 -07:00
Darren Shepherd
3985a73858
Add leader election wrapper
2018-02-20 12:51:55 -07:00
Craig Jellick
193c79e3fb
Merge pull request #97 from cjellick/api-errors
...
API error improvements
2018-02-15 17:04:48 -07:00
Craig Jellick
daaccc2c2c
API error improvements
...
Log underlying causes of APIErrors (if it is available).
Also, some general cleanup.
2018-02-15 17:01:31 -07:00
Alena Prokharchyk
6753a90143
Options to transformer
2018-02-15 09:58:09 -07:00