Commit Graph

116 Commits (d55666043bf00a30c0698c5dbbd1645769f91c34)

Author SHA1 Message Date
Chao Xu 69932aecb0 Let discoveryClient use RESTClient;
Ignore 403 and 404 error when discovering server-supported group/version
2015-10-29 09:55:32 -07:00
Wojciech Tyczynski f650abaafa Use ugorji/go/codec for decoding jsons. 2015-10-16 10:12:08 +02:00
Chao Xu f3caff2a79 testapi.Experimental -> testapi.Extensions 2015-10-09 15:15:35 -07:00
Chao Xu 347d53ff2e v1alpa1->v1beta1 2015-10-09 15:06:28 -07:00
Chao Xu 0b7e3c7dd1 experimental/v1alpha1->extensions/v1beta1 2015-10-09 15:01:33 -07:00
Brendan Burns 8998219686 Add a method for encoding directly to a io.Writer and use it for HTTPx 2015-09-24 15:52:09 -07:00
k8s-merge-robot 6d2c2440e9 Merge pull request #14203 from caesarxuchao/encode-unversioned
Auto commit by PR queue bot
2015-09-21 18:59:32 -07:00
Chao Xu ab5c1f6710 let encoder handle unversioned objects
address lavalamp's comments

address lavalamp's comments

address lavalamp's comments

add a TODO based on lavalamp's comment

add a TODO based on lavalamp's comment
2015-09-21 15:57:45 -07:00
Clayton Coleman a02bcefa10 Allow []string to be converted to *int64
Not something we hit before
2015-09-21 12:02:03 -04:00
liguangbo 4df68f03a3 change iff to if and only if to improve annotation readability 2015-09-16 08:29:36 +00:00
kargakis f9bca7bc7d handle structs 2015-09-03 15:49:24 +02:00
kargakis 6c32e071f4 Dont output nil; test nil & omitempty 2015-09-03 15:32:19 +02:00
kargakis edfaa480cf queryparams: Handle pointer fields in structs 2015-09-03 13:45:31 +02:00
Piotr Szczesniak eb01d49783 Merge pull request #12556 from uluyol/copynilinterface
Properly handle nil interfaces in DeepCopy.
2015-08-12 09:54:02 +02:00
Piotr Szczesniak 1df0267f4a Merge pull request #12551 from eparis/underscore-to-dash
Update code and docs to use - in flag names instead of _
2015-08-12 07:16:31 +02:00
Muhammed Uluyol bc8bc37282 Properly handle nil interfaces in DeepCopy.
Running reflect.ValueOf(X) where X is a nil interface will return
a zero Value. We cannot get the type (because no concrete type is
known) and cannot check if the Value is nil later on due to the way
reflect.Value works. So we should handle this case by immediately
returning nil. We cannot type-assert a nil interface to another
interface type (as no concrete type is assigned), so we must add
another check to see if the returned interface is nil.
2015-08-11 17:59:32 -07:00
Kris Rousey 565189f5b8 Correcting all go vet errors 2015-08-11 13:55:37 -07:00
Eric Paris 5aa495cdad Update code to use - in flag names instead of _ 2015-08-11 16:31:52 -04:00
Marek Grabowski 5f9cefc1d8 Merge pull request #12441 from vlajos/typofixes-vlajos-20150807
typofix - https://github.com/vlajos/misspell_fixer
2015-08-10 16:33:52 +02:00
Veres Lajos 9f77e49109 typofix - https://github.com/vlajos/misspell_fixer 2015-08-08 22:31:48 +01:00
Kris Rousey 6e64a63a84 Adding a way to decode to a specified version.
This is largely needed as a way to get a versioned client without
requiring everyone to switch to versioned types at once.
2015-08-07 14:16:24 -07:00
Mike Danese 8e33cbfa28 rewrite go imports 2015-08-05 17:30:03 -07:00
Alex Mohr 366b382901 Merge pull request #10200 from caesarxuchao/resthandler-validate-version
verify and default APIVersion in createHandler, verify APIVersion in UpdateResource
2015-08-04 13:09:31 -07:00
Chao Xu 664d20c572 Add DecodeIntoWithSpecifiedVersionKind() to Decoder interface.
The function validate/default the body with the passed in apiVersion and Kind.
It's called in createHandler and UpdateResource
2015-08-03 15:30:00 -07:00
Muhammed Uluyol ab83ad2e4b Update documentation for deep copy functions 2015-07-27 16:47:41 -07:00
Mike Danese 2906f85227 allow conversions.Scheme to expose intermidiate versioned api object 2015-06-25 11:53:17 -07:00
Rodolfo Carvalho b216d09a8d Fix typo 2015-06-04 11:44:10 +02:00
Wojciech Tyczynski 33318f0162 Use generated DeepCopy methods. 2015-05-28 09:03:27 +02:00
Wojciech Tyczynski b2280db724 Deep-copy functions autogeneration. 2015-05-26 21:16:26 +02:00
feihujiang d36173e855 Check json format firstly
Check json format firstly

check json format firstly

check json format firstly
2015-05-18 10:44:29 +08:00
Wojciech Tyczynski e1d9694558 Remove gob 2015-05-15 13:44:37 +02:00
Victor Marmol 8bc3e5121f Merge pull request #8188 from krousey/deep_copy
Changing the implementation of DeepCopy to use reflection
2015-05-14 18:25:30 -07:00
Kris Rousey 4d031abc16 Changing the implementation of DeepCopy to use reflection instead of Gob encode/decode. 2015-05-14 13:46:31 -07:00
Wojciech Tyczynski b00020884c DeepCopy benchmarks 2015-05-14 09:43:21 +02:00
Wojciech Tyczynski 5578dc99e3 Improvements for conversions generator 2015-05-11 12:21:11 +02:00
Cesar Wong 619332d58e Utility to convert versioned runtime objects to a set query parameters
JSON struct tags are used as parameter names, fields that do not have
the omitempty marker are always included.
2015-05-07 14:25:14 -04:00
Wojciech Tyczynski 156795f298 Update conversion functions 2015-05-07 09:27:58 +02:00
Wojciech Tyczynski 5173ee07e1 Chain conversion functions while generation 2015-05-07 09:27:58 +02:00
Wojciech Tyczynski d4b32a8371 Support both manual and generate conversions 2015-05-06 16:43:15 +02:00
deads2k 0d796c184d fix DeepCopy to properly support runtime.EmbeddedObject 2015-05-05 10:36:39 -04:00
Wojciech Tyczynski e225a2e777 Merge pull request #7644 from liggitt/conversion_test
Output generated conversion functions/names
2015-05-04 08:17:03 +02:00
Eric Paris 6b3a6e6b98 Make copyright ownership statement generic
Instead of saying "Google Inc." (which is not always correct) say "The
Kubernetes Authors", which is generic.
2015-05-01 17:49:56 -04:00
Clayton Coleman 1a8845af61 Merge pull request #7490 from smarterclayton/alter_list
Do not automatically decode runtime.RawExtension
2015-05-01 16:48:26 -04:00
Jordan Liggitt 26caf9e0de Output generated conversion functions/names 2015-05-01 16:28:08 -04:00
Clayton Coleman 32dfd3e07b Correct the capitalization of KubeProxyVersion 2015-04-30 15:43:14 -04:00
Wojciech Tyczynski 3b84bae544 Auto-generated conversion not manually edited 2015-04-30 14:05:42 +02:00
Clayton Coleman 12ba4e2452 Do not automatically decode runtime.RawExtension
Make clients opt in to decoding objects that are stored
in the generic api.List object by invoking runtime.DecodeList()
with a set of schemes. Makes it easier to handle unknown
schema objects because decoding is in the control of the code.

Add runtime.Unstructured, which is a simple in memory
representation of an external object.
2015-04-29 12:53:07 -04:00
Wojciech Tyczynski 8eca76298f Improvements to conversions generator. 2015-04-29 16:32:31 +02:00
Wojciech Tyczynski 922555f048 Improvements to generator of conversion methods. 2015-04-27 13:33:38 +02:00
Wojciech Tyczynski 7f919a44c2 Generate conversions for v1beta3 package. 2015-04-24 09:18:12 +02:00