Chao Xu
60604f8818
run hack/update-all
2017-06-22 11:31:03 -07:00
Chao Xu
cde4772928
run ./root-rewrite-all-other-apis.sh, then run make all, pkg/... compiles
2017-06-22 11:30:52 -07:00
Chao Xu
f4989a45a5
run root-rewrite-v1-..., compile
2017-06-22 10:25:57 -07:00
Anthony Yeh
17cbc5e014
Fix TPR watches.
2017-06-14 16:58:49 -07:00
Dr. Stefan Schimanski
b0b711119b
apimachinery: rename meta.{ -> UnsafeGuess}KindToResource
2017-05-03 09:49:02 +02:00
Nikhita Raghunath
eb88c4bce4
Preserve int data when unmarshalling for TPR
...
The Go json package converts all numbers to float64.
This exposes many of the int64 fields to corruption when marshalled back to json.
The json package provided by kubernetes also provides a way to defer conversion of numbers
(https://golang.org/pkg/encoding/json/#Decoder.UseNumber ) and does the conversions to int or float.
This is also implemented in the custom json package. See:
(https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/util/json/json.go )
Fixes #30213
Update bazel build and add one more test case
Fix for gofmt error
2017-04-05 19:48:56 +05:30
deads2k
8895f314b4
move category expansion out of restmapper
2017-03-27 13:54:05 -04:00
Clayton Coleman
36acd90aba
Move APIs and core code to use metav1.ObjectMeta
2017-01-17 16:17:18 -05:00
deads2k
f1176d9c5c
mechanical repercussions
2017-01-13 08:27:14 -05:00
deads2k
6a4d5cd7cc
start the apimachinery repo
2017-01-11 09:09:48 -05:00
Clayton Coleman
f07c6486ba
Rename metav1.Event to metav1.WatchEvent to avoid swagger collision
...
The kind on this object was always WatchEvent
2017-01-06 23:45:04 -05:00
Clayton Coleman
e5019de260
refactor: Move versioned/watch to meta/v1
2017-01-06 23:45:03 -05:00
Jordan Liggitt
d080246442
Make thirdpartyresource encode objectmeta correctly
2016-12-09 16:26:05 -05:00
Kubernetes Submit Queue
653fd97ba0
Merge pull request #37966 from p0lyn0mial/unify_restmapping_and_restmappings
...
Automatic merge from submit-queue (batch tested with PRs 38185, 37966)
decided to extract common logic for RESTMapping and RESTMappings to a…
<!-- Thanks for sending a pull request! Here are some tips for you:
1. If this is your first time, read our contributor guidelines https://github.com/kubernetes/kubernetes/blob/master/CONTRIBUTING.md and developer guide https://github.com/kubernetes/kubernetes/blob/master/docs/devel/development.md
2. If you want *faster* PR reviews, read how: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/faster_reviews.md
3. Follow the instructions for writing a release note: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/pull-requests.md#release-notes
-->
**What this PR does / why we need it**: the changes introduced in this PR extract common logic of RESTMapping and RESTMappings to one common method.
**Special notes for your reviewer**: this is my first PR - be polite.
The only change in logic to what was before is when calling commonRESTMappings from RESTMapping
we search all defaultGroupVersion as opposed to just one when no mapping was found for provided versions.
2016-12-06 06:49:25 -08:00
Chao Xu
6534661a04
make thirdparty codec able to decode DeleteOptions
2016-12-05 15:54:02 -08:00
p0lyn0mial
5f8e774517
extended RESTMappings method by a version parameter.
...
RESTMapping method can now rely on RESTMappings by passing versions parameter and taking the first match found by RESTMappings method. In addition
a UT that test the new method has been added.
The only change in logic to what was before is when calling RESTMapping
we search all defaultGroupVersion as opposed to just one when no mapping was found for provided versions.
2016-12-05 20:09:36 +01:00
Clayton Coleman
3454a8d52c
refactor: update bazel, codec, and gofmt
2016-12-03 19:10:53 -05:00
Clayton Coleman
5df8cc39c9
refactor: generated
2016-12-03 19:10:46 -05:00
Clayton Coleman
35a6bfbcee
generated: refactor
2016-11-23 22:30:47 -06:00
Clayton Coleman
ca2f1b87ad
Replace negotiation with a new method that can extract info
...
Alter how runtime.SerializeInfo is represented to simplify negotiation
and reduce the need to allocate during negotiation. Simplify the dynamic
client's logic around negotiating type. Add more tests for media type
handling where necessary.
2016-10-28 11:30:11 -04:00
mbohlool
25afcc5522
Add +optional tag to all fields with omitempty json tag
2016-10-17 08:52:13 -07:00
Mike Bryant
a6dafe401f
Use correct variable in thirdpartyresourcedata codec.
...
Fixes #34459
2016-10-10 18:42:33 +01:00
deads2k
e9c1b87b80
move extensions registry packages
2016-09-21 09:14:38 -04:00