Commit Graph

23932 Commits

Author SHA1 Message Date
Daniel Smith
4fe0a18024 Accept both 'No events.' and 'Events:' 2016-01-22 10:56:14 -08:00
Clayton Coleman
e2eb1b0dc4 19848: Retry service IP repair on conflict
Components can write services during startup, which results in the ip
allocator map being updated. Since core controllers *must* succeed for
the masters to start, we should retry a few times in order to pass.
2016-01-22 13:52:18 -05:00
Chao Xu
db9b5c97fb fix e2e 2016-01-22 10:31:03 -08:00
Clayton Coleman
3262d8efd8 GENERATED: all 2016-01-22 13:27:28 -05:00
Clayton Coleman
4a6935b31f Remaining codec change refactors 2016-01-22 13:27:27 -05:00
Clayton Coleman
33085c0cf2 Update tests to handle codec changes 2016-01-22 13:27:26 -05:00
Clayton Coleman
2fd38a7dc0 Break kubectl from assuming details of codecs
Most of the logic related to type and kind retrieval belongs in the
codec, not in the various classes. Make it explicit that the codec
should handle these details.

Factory now returns a universal Decoder and a JSONEncoder to assist code
in kubectl that needs to specifically deal with JSON serialization
(apply, merge, patch, edit, jsonpath). Add comments to indicate the
serialization is explicit in those places. These methods decode to
internal and encode to the preferred API version as previous, although
in the future they may be changed.

React to removing Codec from version interfaces and RESTMapping by
passing it in to all the places that it is needed.
2016-01-22 13:27:26 -05:00
Clayton Coleman
181dc7c64c Update thirdpartyresourcecodec with new Decoder 2016-01-22 13:27:25 -05:00
Clayton Coleman
fb4ea845f1 resource_printer was not leveraging runtime interfaces
In general, everything in kubectl/* needs to be ignorant of api/* unless
it deals with a concrete type - this change forces resource_printer to
accept interface abstractions (that are already part of kubectl).
2016-01-22 13:27:25 -05:00
Clayton Coleman
efe88e0818 Update client library to react to changes in Decoding 2016-01-22 13:27:24 -05:00
Zach Loafman
4803b8a984 Merge pull request #18260 from erictune/indexed-job
Indexed job
2016-01-22 10:25:30 -08:00
Zach Loafman
68771fe26a Merge pull request #18169 from kargakis/smarter-scaling
kubectl: Make scaling smarter
2016-01-22 10:24:51 -08:00
Zach Loafman
f3a638de31 Merge pull request #16067 from smarterclayton/backoff_conflict
Provide a RetryOnConflict helper for client libraries
2016-01-22 10:23:19 -08:00
Chao Xu
a248d1117b remove ResourceVersion validation in client 2016-01-22 10:14:39 -08:00
Eric Tune
e532129f85 Merge pull request #19717 from erictune/api-groups-doc
Mention some new api groups.
2016-01-22 10:06:39 -08:00
Eric Tune
a99e151b90 Merge pull request #19962 from erictune/service-account-try-not-flaky
Promote ServiceAccount e2e out of [Flaky] status
2016-01-22 09:41:30 -08:00
Arsen Mamikonyan
8b5e9e2885 Change repository references to https://github.com/kubernetes/kubernetes 2016-01-22 10:23:14 -05:00
Zach Loafman
ef77ce7147 Merge pull request #19985 from luxas/onedotfive
Up to golang 1.5.3
2016-01-22 07:21:06 -08:00
Zach Loafman
a5f4f3b301 Merge pull request #16889 from vishh/disk-accounting
Proposal for disk accounting
2016-01-22 06:22:16 -08:00
gmarek
9ac68ecb77 Remove monitor_resources test 2016-01-22 13:38:33 +01:00
Marcin Wielgus
631b965384 Merge pull request #19968 from lavalamp/e2e-kubectl-proxy
e2e kubectl proxy test: Make future flake diagnosis possible
2016-01-22 12:50:06 +01:00
Piotr Szczesniak
7fea0ada4b Merge pull request #19984 from piosz/heapster-config-fix
Fixed syntax issue in Heapster config
2016-01-22 10:34:58 +01:00
Piotr Szczesniak
e6f3e2893a Fixed syntax issue in Heapster config 2016-01-22 10:29:38 +01:00
YuviPanda
1751bcf1e1 Update hack/verify-flags/exceptions.txt 2016-01-22 00:19:01 -08:00
Eric Tune
3ac015887e Design doc for Indexed Jobs. 2016-01-22 00:04:47 -08:00
Lucas Käldström
d26f4e1583 Up to golang 1.5.3 2016-01-22 08:21:52 +02:00
Clayton Coleman
24a7919002 Update clientcmd.Config to use new Decode methods 2016-01-22 01:10:23 -05:00
Clayton Coleman
4386e8cc38 Change legacy ABAC decode to use new Decoder
The new Decode() method is able to deserialize an unknown type when an
explicit Into is provided.
2016-01-22 01:10:23 -05:00
Clayton Coleman
4d127dc969 Initialize API servers with negotiated serializers
Pass down into the server initialization the necessary interface for
handling client/server content type negotiation. Add integration tests
for the negotiation.
2016-01-22 01:10:22 -05:00
Clayton Coleman
c49cd4edf9 Alter the build to generate for __internal correctly 2016-01-22 01:10:22 -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
Zach Loafman
83a6b7fcaa Merge pull request #19957 from zmerlynn/container-vm-v20160121
Bump to container-vm-v20151215
2016-01-21 22:05:12 -08:00
Hongchao Deng
8e1bfad490 insufficient resource error: details of failure in failedPredicateMap 2016-01-21 21:49:00 -08:00
Paul Morie
9be7883f7e Make hack/update-all.sh short-circuit unless run with -a 2016-01-22 00:17:14 -05:00
markturansky
3f292d87ed fixed spelling typo 2016-01-22 00:15:07 -05:00
Clayton Coleman
125ef6fbc8 Support content-type negotiation in the API server
A NegotiatedSerializer is passed into the API installer (and
ParameterCodec, which abstracts conversion of query params) that can be
used to negotiate client/server request/response serialization. All
error paths are now negotiation aware, and are at least minimally
version aware.

Watch is specially coded to only allow application/json - a follow up
change will convert it to use negotiation.

Ensure the swagger scheme will include supported serializations - this
now includes application/yaml as a negotiated option.
2016-01-22 00:12:50 -05:00
Clayton Coleman
6b2f70d553 Provide a JSON and YAML serializer, and a versioning wrapper
Add a recognizer that is capable of sniffing content type from data by
asking each serializer to try to decode - this is for a "universal
decoder/deserializer" which can be used by client logic.

Add codec factory, which provides the core primitives for content type
negotiation. Codec factories depend only on schemes, serializers, and
groupversion pairs.
2016-01-22 00:12:49 -05:00
Brendan Burns
faf10632fe Merge pull request #19963 from freehan/monitor
fix heapster rc file jinja syntax error
2016-01-21 21:03:50 -08:00
Clayton Coleman
63a7a41ddf Simplify Codec and split responsibilities
Break Codec into two general purpose interfaces, Encoder and Decoder,
and move parameter codec responsibilities to ParameterCodec.

Make unversioned types explicit when registering - these types go
through conversion without modification.

Switch to use "__internal" instead of "" to represent the internal
version. Future commits will also add group defaulting (so that "" is
expanded internally into a known group version, and only cleared during
set).

For embedded types like runtime.Object -> runtime.RawExtension, put the
responsibility on the caller of Decode/Encode to handle transformation
into destination serialization. Future commits will expand RawExtension
and Unknown to accept a content encoding as well as bytes.

Make Unknown a bit more powerful and use it to carry unrecognized types.
2016-01-21 23:18:32 -05:00
Clayton Coleman
6582b4c2ea Remove codec awareness from conversion
Allow convertors to be specialized, some cleanup to how conversion
functions are stored internally to allow better reuse.
2016-01-21 23:18:32 -05:00
Clayton Coleman
9d5df20efe jsonpath: Handle interface{}(nil) as empty array 2016-01-21 23:18:31 -05:00
Justin Santa Barbara
274e589aa6 AWS: Use an elastic IP for the master by default
If we don't use an elastic IP, the IP address will be lost if we lose
the master for any reason, and a replacement master will not have the
same IP.  But the master IP is set both in client kubeconfig files and
the master SSL certificate.  Hence the default should be to allocate an
elastic IP for the master.

One complication: AWS doesn't allow tags on elastic IPs, so it is hard
to track the elastic IP so we can delete it as part of kube-down.
Instead, we take the master EBS volume with the elastic IP.  This is a
little odd, but works because the master volume & the master elastic IP
really need to be assigned to the same machine, so might be thought of
as a pair.

Also, we now delete the master EBS volume as part of kube-down, as
people expect kube-down to clean-up everything it creates.
2016-01-21 22:01:55 -05:00
feihujiang
50b6d3819f Fix a small error comment in nodecondition type 2016-01-22 10:21:16 +08:00
Alex Mohr
ca69c2e310 Merge pull request #19967 from justinsb/fix_gce_npe
Fix for panic when instance not found
2016-01-21 17:20:58 -08:00
Nikhil Jindal
cd2e0c490e Merge pull request #19674 from nikhiljindal/latestAndRegistered
Merge registered and latest and move to apimachinery
2016-01-21 17:19:49 -08:00
YuviPanda
12a6778766 Update skynd RC template to use GNU style flags 2016-01-21 16:59:02 -08:00
YuviPanda
f0c5051201 Fix verify-flags lists to account for flag changes 2016-01-21 16:59:02 -08:00
YuviPanda
cd23dcee34 Use pflag instead of flag in kube2dns
- Marks flags with _ as deprecated, use the - variants instead
2016-01-21 16:58:25 -08:00
Daniel Smith
23fd5e9a33 Make future flake diagnosis possible.
It's currently unclear if the request failed because the proxy wasn't
quite up yet, or if it failed because traffic couldn't get from the
proxy to apiserver. Getting the proxy logs unconditionally should help
narrow this down.
2016-01-21 16:41:26 -08:00
Yifan Gu
723402c4e9 build/common.sh: Copy manifests. 2016-01-21 16:32:15 -08:00