Commit Graph

285 Commits (5981aa8b377b792676daceeee3a793a19121a184)

Author SHA1 Message Date
Chao Xu f9f5736b01 grep sed 2016-02-03 13:06:07 -08:00
derekwaynecarr 070dce1bec Fix DeleteCollection in FakeClient 2016-02-03 14:39:24 -05:00
Rudi Chiarito a0831a2378 Mass fix of Infof and co. missing the trailing "f", even when formatting placeholders are used 2016-02-03 11:34:59 -05:00
Wojciech Tyczynski 205e6899be Generate public deep-copy functions 2016-02-03 13:33:24 +01:00
k8s-merge-robot 843c11e06a Merge pull request #20452 from caesarxuchao/replace-client-kubelet
Auto commit by PR queue bot
2016-02-02 23:46:58 -08:00
Chao Xu cddd7b56a4 replace client with clientset in kubelet and other places 2016-02-02 20:28:45 -08:00
Chao Xu 66f5cd259d automatically generate the clientset 2016-02-02 16:06:43 -08:00
k8s-merge-robot 74c62aecc5 Merge pull request #20186 from lavalamp/import-boss
Auto commit by PR queue bot
2016-02-02 06:21:50 -08:00
k8s-merge-robot 2746b5e43d Merge pull request #20320 from caesarxuchao/add-discovery
Auto commit by PR queue bot
2016-02-01 14:35:27 -08:00
Clayton Coleman 8692d260f8 Use Parameter codec in request.VersionedParams() 2016-01-30 14:14:20 -05:00
Chao Xu 8531ef4979 change ingress and componentstatus plural form 2016-01-29 11:21:04 -08:00
Chao Xu dd357ed86a include DiscoveryClient in the generated clientset 2016-01-29 11:03:03 -08:00
Daniel Smith 46d12b185e Add 'import-boss': enforce go import restrictions. 2016-01-27 16:18:46 -08:00
k8s-merge-robot 67939eb933 Merge pull request #19958 from caesarxuchao/fix-resource-case
Auto commit by PR queue bot
2016-01-26 16:46:41 -08:00
k8s-merge-robot 3254df3a7c Merge pull request #19426 from smarterclayton/rewrite_tags
Auto commit by PR queue bot
2016-01-26 13:11:58 -08:00
Clayton Coleman 14a3aaf479 protobuf: During generation, copy protobuf tags back
The protobuf tags contain the assigned tag id, which then ensures
subsequent generation is consistently tagging (tags don't change across
generations unless someone deletes the protobuf tag).

In addition, generate final proto IDL that is free of gogoproto
extensions for ease of generation into other languages.

Add a flag --keep-gogoproto which preserves the gogoproto extensions in
the final IDL.
2016-01-26 11:41:21 -05:00
k8s-merge-robot d3b869ae14 Merge pull request #17922 from smarterclayton/split_codec
Auto commit by PR queue bot
2016-01-25 06:30:39 -08:00
nikhiljindal 0ab152ddf2 Adding an example apiserver 2016-01-22 11:52:16 -08:00
Clayton Coleman efe88e0818 Update client library to react to changes in Decoding 2016-01-22 13:27:24 -05:00
Clayton Coleman c1d932e44a Switch API objects to not register per version codecs
Remove Codec from versionInterfaces in meta (RESTMapper is now agnostic
to codec and serialization). Register api/latest.Codecs as the codec
factory and use latest.Codecs.LegacyCodec(version) as an equvialent to
the previous codec.
2016-01-22 01:10:21 -05:00
Chao Xu 0734248e42 Use lowercase names in individual typed clients 2016-01-21 15:01:47 -08:00
Chao Xu 030043b5be Ingress's plural 2016-01-21 15:01:47 -08:00
nikhiljindal 2ad642d370 Merge registered and latest and move to apimachinery 2016-01-21 14:42:21 -08:00
k8s-merge-robot 03ecde1277 Merge pull request #17535 from mesosphere/jdef_abspath_breaks_proxies
Auto commit by PR queue bot
2016-01-20 21:46:47 -08:00
Chao Xu ee6f03f55a Fix UpdateStatus 2016-01-20 21:15:07 -08:00
Chao Xu fb81b2278e client-gen now generates the fake client. 2016-01-19 17:27:17 -08:00
James DeFelice 75f487f7bf AbsPath should be compatible with proxy-prefixes:
- replace Config.Prefix with .Host and .APIPath
- Request .path promoted to .pathPrefix, .baseURL holds required prefix
2016-01-20 00:31:58 +00:00
Chao Xu 00b18446ac allow client-gen genereate typed client with only expansion methods 2016-01-14 12:13:01 -08:00
Chao Xu ec9771ccb6 add nonNamespaced comment tag; change the interface name 2016-01-14 10:46:08 -08:00
k8s-merge-robot ec78f3d5a9 Merge pull request #19349 from caesarxuchao/generate-updatestatus
Auto commit by PR queue bot
2016-01-13 16:51:33 -08:00
Chao Xu 5addb86f6a conditionally generate UpdateStatus method 2016-01-13 15:45:21 -08:00
k8s-merge-robot e7f29514ab Merge pull request #19307 from caesarxuchao/remove-namespaceifscoped
Auto commit by PR queue bot
2016-01-13 11:01:54 -08:00
k8s-merge-robot 9e66a8f134 Merge pull request #18855 from deads2k/gv-stop-reverse
Auto commit by PR queue bot
2016-01-13 01:37:31 -08:00
Chao Xu 64083a0576 Generate the clientset 2016-01-12 11:30:04 -08:00
Chao Xu 2e5da8b881 Merge pull request #19379 from caesarxuchao/manual-methods
client-gen: generate an interface which allows user to expand typed client's methods
2016-01-12 11:09:38 -08:00
Chao Xu a0489e8685 add expansion interface 2016-01-11 10:46:24 -08:00
k8s-merge-robot 9264340338 Merge pull request #17854 from smarterclayton/basic_proto
Auto commit by PR queue bot
2016-01-07 22:03:36 -08:00
Clayton Coleman b1e01875a1 go-to-protobuf: generate protobuf IDL and marshalers for Go structs 2016-01-06 21:09:20 -05:00
Chao Xu ea0086468c remove the use of NamespaceIfScoped from generated clients 2016-01-06 16:20:44 -08:00
Chao Xu f51da22bcf regenerate the typed clients 2016-01-05 16:20:46 -08:00
Chao Xu 4b1a1057b3 lowercase the names of the generated client files 2016-01-04 14:45:25 -08:00
deads2k e2d280a592 external versions no longer need reordering 2016-01-04 15:07:54 -05:00
Wojciech Tyczynski 5abdc2e944 Updage auto-generated files 2016-01-01 11:47:29 +01:00
Wojciech Tyczynski f9f840a1c6 Remove debug log 2015-12-30 14:42:02 +01:00
Wojciech Tyczynski baf97c9c5e First use of new deep-copy generator. 2015-12-29 18:06:09 +01:00
Wojciech Tyczynski 9d912e843b Update/verify client generator in scripts 2015-12-28 14:24:43 +01:00
Chao Xu ad484c79f7 pass runtime.Scheme as parameter to AddToScheme 2015-12-23 23:21:35 -08:00
Chao Xu 2b5b708b70 Refactor the API registration and installation 2015-12-23 22:44:25 -08:00
Clayton Coleman 6d4612c8d2 Remove redundant / complex client code 2015-12-22 14:29:15 -05:00
Wojciech Tyczynski ebc14e1a2e Regenerate clients 2015-12-21 11:12:25 +01:00
Wojciech Tyczynski b279227d83 Fix compile errors in DeleteCollection 2015-12-21 09:29:11 +01:00
k8s-merge-robot 730a6a1d55 Merge pull request #18685 from caesarxuchao/client-gen-output
Auto commit by PR queue bot
2015-12-18 10:55:05 -08:00
Chao Xu b61c9a4cf3 output of client-gen 2015-12-17 23:42:16 -08:00
Eric Tune ad97b9c728 Undo unintentional changes to goidl testdata
Introduced by #17940 due to bug.  Bug fixed by #18860.
2015-12-17 16:00:56 -08:00
Maciej Szulik 327c104460 Added ActiveDeadlineSeconds to jobs, allowing failing a job after
exceeding allowed time.
2015-12-17 15:26:42 +01:00
k8s-merge-robot cd59d1e59a Merge pull request #18700 from wojtek-t/fix_client_gen_script
Auto commit by PR queue bot
2015-12-16 23:57:08 -08:00
k8s-merge-robot b888fcc8ef Merge pull request #18743 from caesarxuchao/second-comment-blcok
Auto commit by PR queue bot
2015-12-16 13:57:36 -08:00
Wojciech Tyczynski 4473abf3b5 Update client-generator 2015-12-16 13:59:58 +01:00
k8s-merge-robot e309583ff1 Merge pull request #18473 from smarterclayton/change_runtime_object
Auto commit by PR queue bot
2015-12-16 04:24:22 -08:00
Chao Xu 5f0509a351 add SecondClosestCommentLines to go2idl types.Type 2015-12-15 22:30:58 -08:00
k8s-merge-robot fc7c70dba3 Merge pull request #18373 from deads2k/gv-codecfor
Auto commit by PR queue bot
2015-12-15 19:28:48 -08:00
k8s-merge-robot 5a024848f1 Merge pull request #18687 from caesarxuchao/expand-orderer
Auto commit by PR queue bot
2015-12-15 15:23:35 -08:00
Clayton Coleman 8f203a28f1 Change runtime.Object signature 2015-12-15 13:36:25 -05:00
Chao Xu 0a09bbbf57 add OrderTypes() to Orderer 2015-12-15 10:07:59 -08:00
deads2k 6e33403abf update CodecFor for GroupVersion 2015-12-15 10:56:00 -05:00
deads2k 7a83ce60e6 refactor group registration 2015-12-15 08:37:07 -05:00
Chao Xu 05e3cb8bfb adding a mock.testType to test the generated client code 2015-12-14 11:24:44 -08:00
Chao Xu a336ab1f3d address wojtek-t's comment 2015-12-11 10:27:54 -08:00
Chao Xu 80a8295bce update the client-gen to use the plural namer 2015-12-10 22:32:11 -08:00
Chao Xu e2a30aba7a add a plural namer 2015-12-10 22:32:11 -08:00
Chao Xu 0d7d4c04a2 split Package.Types to Types, Variables and Functions;
add DeclarationOf Kind.
2015-12-03 12:03:47 -08:00
k8s-merge-robot 537405feda Merge pull request #18147 from wojtek-t/fix_client_gen
Auto commit by PR queue bot
2015-12-03 11:01:51 -08:00
Wojciech Tyczynski 8952210304 Adjust client-gen to the new interfaces. 2015-12-03 11:54:33 +01:00
Daniel Smith ad925dd2e8 Add verification to code gen 2015-12-02 14:14:49 -08:00
Clayton Coleman 72df8bbfbe Allow go2idl to generate non-Go file types
Remove some indentation from file generation for specific languages,
allow SnippetWriter's io.Writer to be accessed, and add Path to
types.Name for languages where Package and Path can be disjoint.
2015-11-28 17:39:26 -05:00
Chao Xu 8d00e3514a add generator for group's client 2015-11-27 16:03:38 -08:00
k8s-merge-robot 14bebe343c Merge pull request #17757 from caesarxuchao/go2idl-add-functions
Auto commit by PR queue bot
2015-11-27 00:22:36 -08:00
Chao Xu ff099bd460 First step of adding clinet-gen: add the generator that generates client code
for top-level types.
2015-11-25 10:06:31 -08:00
Chao Xu 75cf28b7df Track Func in Universe 2015-11-24 21:22:30 -08:00
Wojciech Tyczynski 68d2824a45 Generate deep copies with framework. 2015-11-12 10:38:25 +01:00
Wojciech Tyczynski f991586db2 Support current package in RawNamer. 2015-11-09 13:31:18 +01:00
Daniel Smith 241551e36e set-gen example 2015-11-03 15:14:51 -08:00
Daniel Smith 048e42a36c new generator helper package, implements main() 2015-11-03 15:14:51 -08:00
Daniel Smith 4deda6ea98 Vendor in go1.5.1 dependency
* Changes to make vendored packages accept new home.
* Fix go2idl to import vendored packages.
2015-10-21 09:56:36 -07:00
Daniel Smith 5ac9b16ade First iteration of go2idl.
* Add support for pointers, map keys, more builtins, Alias types
* Support for packages & imports
* Add helper functions to types
* change generation interface
* fix naming/ordering
* SnippetWriter for templates
* Naming systems
* Use the standard packages for import resolution
* Documentation
2015-10-21 09:56:36 -07:00