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
Darren Shepherd
0decad85cb
Drop status field if _export=true is set
2018-07-19 10:23:17 -07:00
Darren Shepherd
23c18792d2
Add replace to client
2018-07-19 10:23:17 -07:00
Darren Shepherd
2706ddc350
Change default timeout to 1 minute
2018-07-19 10:23:17 -07:00
Darren Shepherd
413808be1d
Make debug variable public
2018-07-19 10:23:17 -07:00
Darren Shepherd
fbc49a97af
Make websocket dialer use same TLSClientConfig has http client
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
6db31068a0
Add edit/export modes and drop default resource fields if empty
2018-07-19 10:23:17 -07:00
Darren Shepherd
da330debe9
Export NewAPIError and SetupRequest
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
Darren Shepherd
0e3bc2dfca
Get name/namespace from metadata/name,namespace not name,namespaceId
2018-07-19 10:23:17 -07:00
Darren Shepherd
0d782dfe15
when embedding optional element if schema isn't found ignore
2018-07-19 10:23:17 -07:00
Darren Shepherd
f8f079c3b9
Add Conflict constant
2018-07-19 10:23:17 -07:00
Alena Prokharchyk
57e8282a33
k8s vendor to 1.10.5
2018-07-11 16:44:45 -07:00
Alena Prokharchyk
26d279bce1
Fixes to adapt to 1.10.5
2018-07-11 16:44:45 -07:00
Alena Prokharchyk
d7ac071df7
Include namespace to not found msg
2018-07-11 16:33:48 -07:00
Dan Ramich
aecae32b4a
Fix pagination
...
Problem:
Pagination is not showing up
Solution:
Pagination was being created properly but then dropped in favor of an
empty version. Save the pagination on the context so it can be accessed
later and not reset.
2018-06-25 15:34:52 -07:00
Craig Jellick
388faeb89e
Use logrus to log errors and panics
...
This changes the framework from using glog to using logrus, which is
what the rest of code uses.
2018-06-22 16:19:49 -07:00
Alena Prokharchyk
e03c72e855
DnsLabelRestricted type to validate against RFC 1035
...
k8s uses restricted format for services
dnsLabelRestricted: dns1035LabelFmt string = "[a-z]([-a-z0-9]*[a-z0-9])?"
dnsLabel:dns1123LabelFmt string = "[a-z0-9]([-a-z0-9]*[a-z0-9])?"
2018-06-19 09:47:36 -07:00
Craig Jellick
df1aea6651
Support for backend types
...
Allows users to specify "backend" types that will have kubernetes
controllers and clients generated but no Rancher client generated.
The intended use to allow for creating a CRD and the supporting code
without having to expose the CRD in the Rancher API.
2018-06-19 09:38:20 -07:00
Prachi Damle
d70f95a3d6
Changes to Mapper embed to insert nil value if applicable for a schema field
2018-06-11 10:53:23 -07:00
Daishan Peng
59c4a298e8
add yaml support
2018-06-04 16:44:48 -07:00