Kubernetes Submit Queue
8214f7bb29
Merge pull request #45839 from caesarxuchao/client-gen-vendor
...
Automatic merge from submit-queue
let client-gen understand vendor
This is extracted from #44784 , where we move external api types to k8s.io/api. After the move, the types will locate at vendor/k8s.io/api/xxx. However, gengo index the parsed package using the import path, which is stripped of the vendor/ prefix, so we'll need to strip the vendor/ prefix as necessary in client-gen.
This PR doesn't produce any change to the generated clientset yet since all types are still in the kubernetes repo.
2017-05-18 17:45:35 -07:00
Chao Xu
9288025c28
let client-gen understand vendor
2017-05-16 20:29:38 -07:00
Andy Goldstein
84da322766
client-gen: honor groupName overrides in customArgs
...
If there is a comment of the form "// +groupName=somegroup" or
"// +groupName=somegroup.foo.bar.io", use the first field (somegroup) as
the name of the group in customArgs.GroupVersions and
customArgs.GroupVersionToInputPath.
2017-05-15 16:52:09 -04:00
Dr. Stefan Schimanski
ee8ce696d6
client-gen: create private registry for fake clientset
2017-02-28 15:25:10 +01:00
Dr. Stefan Schimanski
92c36bed4a
client-set: use clientset internal scheme
2017-02-22 19:03:25 +01:00
Dr. Stefan Schimanski
49c536baee
client-gen: general cleanup
2017-02-22 19:03:25 +01:00
Jordan Liggitt
4b3462456a
Stop including full arguments list in generated clients
...
Including custom arguments means adding any new group/version results in a diff of all generates clients in all groups/versions
2017-01-31 11:13:37 -05:00
Chao Xu
850729bfaf
include multiple versions in clientset
...
update client-gen to use the term "internalversion" rather than "unversioned";
leave internal one unqualified;
cleanup client-gen
2016-10-29 13:30:47 -07:00
Michal Fojtik
aea9b486a0
clientgen: allow to pass custom apiPath when generating client sets
2016-10-06 11:27:29 +02:00
Chao Xu
75cc05de82
manual changes to let client-gen use versioned options
2016-10-04 20:39:29 -07:00
Daniel Smith
e67cf8a264
gofmt
2016-09-22 13:42:46 -07:00
Daniel Smith
2709f07c71
rewrite import paths
2016-09-22 13:42:46 -07:00
guangxuli
faf2d2c4b1
add break may be better in the loop
2016-09-13 15:41:48 +08:00
Chao Xu
bb6b087a06
some improvement to client-gen
2016-08-25 15:26:07 -07:00
Tim Hockin
4a00a0fd6d
go2idl: Allow multiple values for a comment-tag
...
This means that tags like:
// +foo=bar
// +foo=bat
..will produce []string{"bar", "bat"}. This is needed for later commits which
will want to use this to make code generation more self contained.
2016-07-07 16:49:46 -07:00
David McMahon
ef0c9f0c5b
Remove "All rights reserved" from all the headers.
2016-06-29 17:47:36 -07:00
Eric Chiang
a3467a06cb
client-gen: allow doc comment to override API group name
2016-05-25 14:16:45 -07:00
nikhiljindal
73895c0418
Updating client-gen to support a user specified override on the resources to be included in generated client
2016-05-13 14:12:58 -07:00
Chao Xu
4b5ef393c8
client-gen: use serializer instead of codec for versioned client
2016-04-19 13:42:07 -07:00
Chao Xu
08fc35018a
Client-gen: handle dotted package name
2016-04-14 10:04:58 -07:00
goltermann
a3104ba96c
Final vet fixes; enabling vet checks in verify scripts.
2016-04-13 13:51:51 -07:00
Chao Xu
027710baf5
client-gen now generates the "generated by" comment in doc.go
2016-04-05 15:24:31 -07:00
Chao Xu
0d37fbdff9
changes in client-gen
2016-03-29 14:49:12 -07:00
Chao Xu
d83175571d
include the client-gen arguments in the generated files
2016-03-14 10:28:20 -07:00
Chao Xu
ad46715f51
generate fake client for release_1_2
2016-02-17 16:10:02 -08:00
Chao Xu
e482501e8c
rename file names
2016-02-16 10:08:51 -08:00