vardhaman22
32b73ab511
replace deprecated wait.Poll with wait.PollUntilContextTimeout
2023-08-31 12:19:28 +05:30
Jiaqi Luo
5d579d3486
bump Go to 1.19 and fix errores golangci-lint reports
2022-12-02 19:55:36 -07:00
Steffan Tucker
1e41884a06
Fix golangci-lint issues
...
As part of updating dapper files, golangci-lint was set to be used. This
caused a lot of lint issues to crop up, which this fixes.
2022-07-26 10:40:30 -06:00
niusmallnan
47a7b0a1a1
Fix DeleteOption encoding errors for norman api
2021-12-29 13:30:35 +08:00
Jacob Payne
b32c167679
added typer to store
2021-10-25 08:50:05 -07:00
Sergey Nasovich
599fa929ab
Updated CRDs to v1 API
2021-06-21 16:08:58 -04:00
Prachi Damle
4f61211d52
Adding impersonate-extra headers
2021-03-15 16:48:29 -07:00
rmweir
b2f581c82a
Change context in realWatch
...
Using the watch is ultimately share and should use the store's
context. Using the requests context may cause the watch to end
too early.
2020-06-09 14:02:14 -07:00
Darren Shepherd
4b0a7e6b91
Rebase on lasso
2020-05-16 21:59:53 -07:00
Darren Shepherd
f677c5bc3d
Update to k8s 1.18
2020-03-26 13:07:32 -07:00
Darren Shepherd
b2d111fe7f
Expire RBAC cache earlier on watches
2020-03-21 16:03:06 -07:00
Sebastiaan van Steenis
5c74e1ee1e
Move debug log to trace
2020-03-11 20:37:25 -07:00
Darren Shepherd
e03aedc397
CRD creation should return error
2020-03-05 21:29:41 -07:00
Dan Ramich
8d7dd5fb27
Use kubernetes to generate names
2020-01-31 13:51:59 -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
5b9227fe32
Merge pull request #309 from nanorobocop/fix-crd-init
...
Use original crd if already exists
2019-12-09 09:37:39 -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
kinarashah
0ac7dd6ccb
show only err msg on watch
2019-10-03 10:43:45 -07:00
kinarashah
b1eb20740e
check for v1.Status from errorReporter
2019-10-02 10:31:22 -07:00
kinarashah
e09204b630
NewClientErrorReporter
2019-09-30 09:47:04 -07:00
Mansur Marvanov
bfa0b88932
Use original crd if already exists
2019-09-30 20:35:31 +09:00
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