gitlawr
f7bdda798a
Pass delete options in proxy store
...
Problem:
There is no way to pass gracePeriodSeconds for force deletion
Solution:
Get deletion options in query params and pass it in proxy store
2019-08-09 08:26:23 -07:00
rmweir
2da1bd2ffc
Add enable function and addFeature functions
...
Added enable function to schemas. This allows filtering of schemas
which is a required part of feature flagging in rancher. Added
addFeature functions to controller template for adding handlers that
can be disabled if their associated feature is disabled.
2019-07-02 12:18:40 -07:00
gitlawr
f18ee0dedb
Do not wrap a wrapped schema store
...
Problem:
Pagination is broken when the schema store is wrapped twice
Solution:
Do not wrap a wrapped schema store
2019-05-01 13:00:08 -07:00
rmweir
c55b1eed18
Track namespaces in options property
...
Now, identifies and assigns namespaces. Prior, the
backend listed items belongng to all namespaces in
all projects no matter what because they were not
being tracked. This led to longer request times
for projects that contained a fraction of total
resources. Now, rancher can filter project
resource requests; times are improved and
largely dependent on resource amount for the given
project.
2019-04-05 17:12:04 -07:00
Nathan Jenan
61998c76e3
Adding code to address aks timeout issue
2019-02-22 09:58:55 -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
Darren Shepherd
611d7cb0f1
Add support for k8s 1.12
2018-10-09 19:30:04 -07:00
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
3a7e3090fb
Merge pull request #191 from antmanler/filter-namesapces
...
Enable filter namespaces on server side
2018-09-14 14:17:54 -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
antmanler
c159270dc1
Enable filter namespaces on server side
2018-08-24 09:13:43 +08: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
88184ca7fe
Use framer to avoid invalid parsing of the stream
2018-07-31 14:10:23 -07:00
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