1
0
mirror of https://github.com/rancher/norman.git synced 2025-09-18 08:14:56 +00:00
Commit Graph

55 Commits

Author SHA1 Message Date
Darren Shepherd
0decad85cb Drop status field if _export=true is set 2018-07-19 10:23:17 -07:00
Darren Shepherd
875bcf4b2d Change ToInternal to return error 2018-07-19 10:23:17 -07:00
Darren Shepherd
07d95eaf3f Refactor how CRD stores are created 2018-07-19 10:23:17 -07:00
Darren Shepherd
22fc71bcb6 refactor pointer to s 2018-07-19 10:23:17 -07:00
Darren Shepherd
938de659af For ByID if transformer returns nil and nil that means 404 2018-07-19 10:23:17 -07:00
Nathan Jenan
7fed8b17a8 Filter resources on default fields
This change gives norman the ability to filter api requests based on the
default value of fields.  Before, it would filter on the actual data in
the resource, and then apply default values to the resource before
returning.

Issue:
https://github.com/rancher/rancher/issues/13418
2018-05-16 10:15:34 -07:00
Darren Shepherd
e501f1f3c5 Move watch sharing to norman 2018-04-27 09:25:11 -07:00
Darren Shepherd
db37c4223d Fix deleting keys in maps 2018-04-23 08:43:36 -07:00
Darren Shepherd
3a8649c703 Add function to generate names 2018-04-14 23:40:25 -07:00
Alena Prokharchyk
7a9c998498 Namespace/name presence validation 2018-04-12 13:51:59 -07:00
Darren Shepherd
7218407a4e Fix 204 on DELETE 2018-04-10 22:49:39 -07:00
Darren Shepherd
4d46cbab5b Add more debug logging 2018-04-04 03:08:15 -07:00
Darren Shepherd
510ed570d2 Add timeouts to rest clients 2018-04-02 15:46:10 -07:00
Darren Shepherd
4cf9f645cd Refactor access control to return error not bool 2018-03-31 03:13:22 -07:00
Darren Shepherd
34fad5e159 Add schema to Transformer funcs 2018-03-23 08:42:53 -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
Darren Shepherd
47b787887b Delete unused code 2018-02-26 16:14:39 -07:00
Alena Prokharchyk
6753a90143 Options to transformer 2018-02-15 09:58:09 -07:00
Darren Shepherd
94b274ab75 add get to schemas that CanGet 2018-02-14 15:51:17 -07:00
Darren Shepherd
69f36e04a9 404 on schema not found 2018-02-14 15:51:17 -07:00
Darren Shepherd
722cedfe01 Major refactor of subcontexts 2018-02-09 13:45:22 -07:00
Craig Jellick
65807e9372 Distinguish between listing and getting
We now have resources (subtypes of authConfig) that can be retrieved
by ID but their collections are not viewable. This change is needed
to suppport that.
2018-01-31 19:30:51 -07:00
Craig Jellick
536d36c706 Fixes for subtypes
Change key method (used to find CRD that backs the schema) to use
baseType of the schema when it differs from the schema ID. This
will allow subtypes to use their base type's CRD store.

When creating CRD stores, do not create one for a schema if it is
a baseType.
2018-01-31 19:28:26 -07:00
Craig Jellick
990db51407 more collection action code 2018-01-20 01:12:19 -07:00
Darren Shepherd
76d8256085 Change merge logic 2018-01-18 23:41:45 +00:00
Darren Shepherd
b33c29d49e Fix subscription dropping after 30 seconds 2018-01-18 23:41:45 +00:00
Darren Shepherd
9e6ea56442 Changes to make conditions less chatty 2018-01-17 22:44:12 +00:00
Darren Shepherd
6f8ed342d9 Cleanup channels 2018-01-17 04:49:08 +00:00
Darren Shepherd
245c089cd5 Put in stubs for dynamic access control on schemas 2018-01-17 01:06:57 +00:00
Darren Shepherd
61330a3b69 Set namespace and name on object always 2018-01-16 05:06:10 +00:00
Darren Shepherd
ebb8cf093e Fix update on secrets 2018-01-03 05:46:29 +00:00
Darren Shepherd
b80039523f Fix update 2017-12-30 02:22:38 +00:00
Darren Shepherd
b5ebee3dfa Send k8s error bad as something other than 500 server error 2017-12-29 22:23:14 +00:00
Daishan Peng
026837668c use patch for update, fix namespace actions 2017-12-29 22:08:51 +00:00
Darren Shepherd
eec4103473 Make queryopts be a pointer 2017-12-28 16:49:51 +00:00
Darren Shepherd
1bc012f8e3 Add field.cattle.io/creatorId to each resource 2017-12-27 11:24:32 -07:00
Darren Shepherd
94c83962dd Import cleanup 2017-12-22 23:19:30 -07:00
Darren Shepherd
23e1d09278 Rename transfer.Store 2017-12-22 23:19:30 -07:00
Darren Shepherd
7a4a224a98 Add subtype store 2017-12-22 23:19:30 -07:00
Darren Shepherd
13be339349 Move CRD initialization out of CRDStore 2017-12-22 23:19:30 -07:00
Darren Shepherd
bfcad0d1b1 Enable access control 2017-12-18 13:59:56 -07:00
Darren Shepherd
830a21b54d Pass impersonation to k8s for C/U/D 2017-12-16 13:53:47 -07:00
Darren Shepherd
60e03d42c9 Fix schema pruning 2017-12-16 01:30:46 -07:00
Darren Shepherd
480747082c Return deleted object on delete if possible 2017-12-16 01:30:46 -07:00
Darren Shepherd
8c0d4bfe2e Use helper method 2017-12-13 17:24:41 -07:00
Darren Shepherd
406c0d9999 Many enhancements 2017-12-11 20:58:53 -07:00
Darren Shepherd
15e105a0ab Refactor types 2017-11-29 14:27:02 -07:00
Darren Shepherd
247d4fe74b Fix startup issues 2017-11-28 18:25:18 -07:00
Darren Shepherd
389d27b3e5 Updates 2017-11-28 14:28:25 -07:00