1
0
mirror of https://github.com/rancher/norman.git synced 2025-07-31 06:42:05 +00:00
Commit Graph

61 Commits

Author SHA1 Message Date
Darren Shepherd
4350a8688b Add Interface to Clients 2018-12-17 15:44:50 -07:00
Darren Shepherd
a20e5736da Fix patch to require patchtype parameter 2018-12-17 15:43:21 -07:00
Darren Shepherd
9c8de64358 Add type constructors to make things a bit nicer 2018-12-17 15:43:21 -07:00
Darren Shepherd
f1c772b7f1 Fix bugs in lifecycle 2018-11-26 10:46:27 -07:00
Darren Shepherd
a036721900 New client style 2018-11-26 08:43:27 -07:00
Darren Shepherd
49a49464b7 rename field to privateTypes 2018-11-09 10:07:22 -07:00
Darren Shepherd
fa4bdda91b Switch handler return type to runtime.Object 2018-11-06 09:55:18 -07:00
Darren Shepherd
03ab04b638 Generator and build cleanup 2018-10-30 23:01:41 -07:00
Darren Shepherd
77869d26b3 Handlers return object and error 2018-10-30 09:57:37 -07:00
Darren Shepherd
e0dbf6c51e Generate factory methods for clients 2018-10-22 10:52:03 -07:00
Darren Shepherd
c71b5d3258 Delete unused code 2018-10-22 10:51:51 -07:00
Darren Shepherd
611d7cb0f1 Add support for k8s 1.12 2018-10-09 19:30:04 -07:00
Darren Shepherd
a5698a8e86 Add method to client to get GenericController 2018-09-24 09:00:20 -07:00
Dan Ramich
12c3f92bed Revert changes to template for controllers 2018-08-23 14:48:08 -07:00
Dan Ramich
0953e9e976 Update template to include created label 2018-07-25 09:31:30 -07:00
Darren Shepherd
58723a866e Formatting change for generated client 2018-07-19 10:23:17 -07:00
Darren Shepherd
23c18792d2 Add replace to client 2018-07-19 10:23:17 -07:00
Alena Prokharchyk
d7ac071df7 Include namespace to not found msg 2018-07-11 16:33:48 -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
zionwu
79b91ea33c Add hostname tag and fix dnsLabel validation issue 2018-05-18 08:27:25 -07:00
Dan Ramich
e6973cb055 Update action generation code
Problem:
Action generation code does not account for a resource action that does not
have an output

Solution:
Update template to output all actions
2018-04-27 09:26:01 -07:00
Darren Shepherd
ff60298f31 Move ObjectClient to different package 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
d20a37adbe Update CanList API 2018-03-31 03:25:04 -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
Daishan Peng
a978cad0e8 add insecure flag, fix collection link, add yaml tags 2018-02-27 15:50:24 -07:00
Darren Shepherd
e4d341fa65 Switch args in namespace methods 2018-01-18 23:41:45 +00:00
Darren Shepherd
67264fa498 Fix generator for new access control 2018-01-17 01:11:22 +00:00
Craig Jellick
905797b50f Add suport for cluster scoped controllers
Some worload controllers need to watch resoruces in the mangement plane
and react to them. But, they should only react to resources that
correspond to their cluster. This adds framework support for that.
2018-01-16 09:04:15 -07:00
Darren Shepherd
af105c2bc7 Add name to handlers 2018-01-16 05:10:36 +00:00
Darren Shepherd
9ce12b1644 Don't generate the ID field 2018-01-16 05:10:36 +00:00
Darren Shepherd
162f6088af Add intOrString and dnsLabel types 2017-12-29 22:23:14 +00:00
Darren Shepherd
6c007d23ef Add GetNamespace and DeleteNamespace calls 2017-12-29 22:23:14 +00:00
Darren Shepherd
a212c8c192 Use CodeName in ranhcer client 2017-12-22 23:47:31 -07:00
Darren Shepherd
36e9738cde Add base64 type 2017-12-22 23:19:30 -07:00
Darren Shepherd
10aa5a70b0 Add Patch to clients 2017-12-22 23:19:30 -07:00
Darren Shepherd
2550f12a9a Add offspring controller 2017-12-19 21:44:02 -07:00
Darren Shepherd
774304612e Add util methods to client 2017-12-16 01:30:46 -07:00
Darren Shepherd
4044cb0141 Generate scheme objects 2017-12-16 01:30:46 -07:00
Darren Shepherd
b7be5d9d3c Return modified obj from lifecycle adapter 2017-12-13 17:24:41 -07:00
Craig Jellick
b92477719d Properly namespace key on lookup 2017-12-11 20:25:05 -07:00
Darren Shepherd
c385e4d5be Rename initialize to create 2017-12-05 14:15:52 -07:00
Darren Shepherd
18d3f69aa8 Updates 2017-12-05 09:21:47 -07:00
Darren Shepherd
15e105a0ab Refactor types 2017-11-29 14:27:02 -07:00
Darren Shepherd
9be32ca0a5 run goimports for native types 2017-11-28 16:10:50 -07:00
Darren Shepherd
9ae8c8e1a7 Fix imports 2017-11-28 15:59:04 -07:00
Darren Shepherd
c93f63f15e Fix imports 2017-11-28 14:53:16 -07:00