Commit Graph

23932 Commits

Author SHA1 Message Date
Clayton Coleman
33660e001a Update service account tokens controller to use client.RetryOnConflict 2016-01-20 22:58:17 -05:00
Clayton Coleman
4342fccc0d Provide a RetryOnConflict helper for client libraries
Used like:

    var pod *api.Pod
    err := client.RetryOnConflict(client.DefaultBackoff, func() (err error) {
      pod, err = c.Pods("mynamespace").UpdateStatus(update)
      return
    })
    // err may be conflict
2016-01-20 22:58:16 -05:00
k8s-merge-robot
4e04a289d8 Merge pull request #19793 from MikeSpreitzer/issue/19221
Auto commit by PR queue bot
2016-01-20 18:52:56 -08:00
Random-Liu
eb56d46b74 Minor clean up in kubelet syncPod() 2016-01-20 17:31:59 -08:00
Josh Wood
54a416fcc1 docs/getting-started/rkt: Add default route to k8s_cluster.conf example 2016-01-20 17:25:50 -08:00
Minhan Xia
33ecc6226e add extension links in registry README 2016-01-20 16:49:53 -08:00
Minhan Xia
263ac066e2 add docs to setup auth for kube-registry 2016-01-20 16:49:45 -08:00
Ken Robertson
a7b07c01df Update container runtime to properly report the engine and version
This address a TODO when collecting the node version information so it
will properly report the configured runtime and its version. Previously,
this was hardcoded to "docker://" and the docker version, and would show
"docker://1.9.1" even when the kubelet was configured to use rkt.

With this change, it will use the runtime's Type() and Version() data.

This also changes the container.Runtime interface to add an APIVersion()
method. This can be used when the runtime has separate versions for the
engine and the API, such as with Docker. The Docker minimum version
validation has been updated to use APIVersion(), and
DockerManager.Version() now returns the engine version.
2016-01-20 16:42:25 -08:00
k8s-merge-robot
b02285cd0c Merge pull request #19632 from mesosphere/jdef_unified_pod_watch
Auto commit by PR queue bot
2016-01-20 16:26:49 -08:00
k8s-merge-robot
5b5065c525 Merge pull request #19558 from idvoretskyi/patch-6
Auto commit by PR queue bot
2016-01-20 16:26:34 -08:00
k8s-merge-robot
a0909076c0 Merge pull request #19550 from ihmccreery/unskip-restart
Auto commit by PR queue bot
2016-01-20 16:26:30 -08:00
Janet Kuo
183b7f4d6d Add kubectl rollout 2016-01-20 16:17:42 -08:00
Kris
8cc483dc74 Add WrappedRoundTripper methods to round trippers
Proxy dialing code relies on this to get to the underlying
http.Transport for custom dialers and TLSConfigs.
2016-01-20 15:39:57 -08:00
Vishnu kannan
21748701f1 Avoid nodes that have 0 cpu and memory capacity.
Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-01-20 15:34:58 -08:00
Alex Mohr
74d3506b68 Merge pull request #19847 from ihmccreery/golang
Pin golang build to 1.4.2 instead of floating on 1.4 and force pull the base golang image
2016-01-20 15:16:39 -08:00
liggitt
605979673b Export transport constructors 2016-01-20 17:30:40 -05:00
Alex Mohr
a9050679a5 Merge pull request #19520 from janetkuo/deployment-expectation-fix
Fix e2e flake: Fix incorrect expectation when deployment scaling down old rcs
2016-01-20 13:44:30 -08:00
deads2k
e90c2bd7dc make patch call update admission chain after applying the patch 2016-01-20 16:21:27 -05:00
Justin Santa Barbara
2958ea253a GCE: Allow for reuse of master
This is for internal use at the moment, for testing Ubernetes Lite, but
arguably makes the code a little cleaner.

Also rename KUBE_SHARE_MASTER -> KUBE_USE_EXISTING_MASTER
2016-01-20 15:37:00 -05:00
James DeFelice
b2013cb1ba replace pod-observer and check-for-lost-pod polling with a single pod watcher and task registry 2016-01-20 18:53:34 +00:00
Madhusudan.C.S
664589df71 Auto-generated code. 2016-01-20 10:44:26 -08:00
Madhusudan.C.S
bd3b476bbf Update types, add defaulting code, conversions and validation. 2016-01-20 10:44:19 -08:00
Madhusudan.C.S
6a6699a1b2 Add new types for DaemonSet update. 2016-01-20 10:33:49 -08:00
Justin Santa Barbara
9f44c72ba9 AWS: findInstancesByNodeNames should not make O(N) API calls
findInstancesByNodeNames was a simple loop around
findInstanceByNodeName, which made an EC2 API call for each call.

We've had trouble with this sort of behaviour hitting EC2 rate limits on
bigger clusters (e.g. #11979).

Instead, change this method to fetch _all_ the tagged EC2 instances, and
then loop through the local results.  This is one API call (modulo
paging).

We are currently only using findInstancesByNodeNames for the load
balancer, where we attach every node, so we were fetching all but one of
the instances anyway.

Issue #11979
2016-01-20 12:37:22 -05:00
Yu-Ju Hong
dc5b35a570 Set default status to pending for pods from non-apiserver sources 2016-01-20 09:36:01 -08:00
Justin Santa Barbara
cdd4caf4df Salt: force service provider to systemd if systemd
The version of Salt we're running doesn't do a good job of detecting
systemd.  Inspired by https://github.com/saltstack/salt/issues/13926,
I added a provider-force to the services.

With this change, salt-call -l debug state.highstate succeeds, even for
repeated invocations.

The issue was (probably) benign, but definitely caused noised (e.g. #11297)
2016-01-20 12:20:50 -05:00
Justin Santa Barbara
32d48c619c AWS: Fix the docker-engine package name
I got the package name wrong before, which meant that salt was failing
on invocations after the first (the name apparently doesn't matter on
the first invocation).
2016-01-20 12:19:36 -05:00
Isaac Hollander McCreery
041f152e80 Add flag to force pull on docker build 2016-01-20 09:14:57 -08:00
Paul Morie
a45cbcd8a2 Add validation for EnvVarSource variant 2016-01-20 11:10:09 -05:00
Justin Santa Barbara
0586d866de AWS: Eliminate assumptions about all load-balancer ports matching
It costs us basically nothing to just check all the ports, and
protects us against future changes to the controller.
2016-01-20 09:30:46 -05:00
Justin Santa Barbara
12dd568662 AWS: Fix comment to reflect new method name
TCPLoadBalancer.EnsureTCPLoadBalancer => LoadBalancer.EnsureLoadBalancer
2016-01-20 09:28:28 -05:00
Justin Santa Barbara
30882265b6 AWS: Remove dead code
I think I added these functions by mistake; they aren't used and
apparently never were.
2016-01-20 09:23:53 -05:00
Dan Mace
eb778217ad Support rolling update to 0 desired replicas
Support a desired replica count of 0 for the new RC. Users sometimes
want to roll out a new "inactive" template with the intent of scaling
it up manually later.
2016-01-20 09:21:13 -05:00
deads2k
14396fc464 add subject access review types 2016-01-20 08:24:15 -05:00
k8s-merge-robot
a5d2c1b0fb Merge pull request #18706 from eparis/upstream-godep
Auto commit by PR queue bot
2016-01-20 04:43:26 -08:00
k8s-merge-robot
1c861d43ac Merge pull request #18298 from pmorie/secret-env
Auto commit by PR queue bot
2016-01-20 03:55:40 -08:00
k8s-merge-robot
6c8bf484d2 Merge pull request #15322 from mattjmcnaughton/15229-rename-ValidatePositiveField-and-ValidatePositiveQuantity
Auto commit by PR queue bot
2016-01-20 02:35:12 -08:00
Josh Wood
d6d2f6f203 docs/getting-started/rkt: Correct spelling error 2016-01-20 02:10:40 -08:00
Josh Wood
75fcbbf2c6 docs/getting-started/rkt: Improve sans flannel example 2016-01-20 02:06:54 -08:00
Harry Zhang
0202a206b8 Integration test to verify alloc works
Add integration test to verify allocatable can works
2016-01-20 15:36:19 +08:00
Hitoshi Mitake
a33f459c39 clientcmd: remove needless format specifier in a log
Current BuildConfigFromFlags() seems to print a log like below when
config path isn't specified:
```
W0120 15:30:06.196820   13323 client_config.go:359] error creating
inClusterConfig, falling back to default config: %vunable to load
in-cluster configuration, KUBERNETES_SERVICE_HOST and
KUBERNETES_SERVICE_PORT must be defined
```

This commit removes the needless "%v"
2016-01-20 15:36:52 +09:00
k8s-merge-robot
ecf6038720 Merge pull request #19734 from caesarxuchao/generate-fake-client
Auto commit by PR queue bot
2016-01-19 20:42:59 -08:00
Yu-Ju Hong
cfb5442b2d Turn on kubecontainer.Cache in kubelet 2016-01-19 18:15:10 -08:00
Chao Xu
fb81b2278e client-gen now generates the fake client. 2016-01-19 17:27:17 -08:00
k8s-merge-robot
d351a0f626 Merge pull request #19826 from derekwaynecarr/update_vagrant_prereq
Auto commit by PR queue bot
2016-01-19 17:25:11 -08:00
k8s-merge-robot
2d137c1c00 Merge pull request #19821 from gmarek/fix
Auto commit by PR queue bot
2016-01-19 17:25:04 -08:00
k8s-merge-robot
89dea9f381 Merge pull request #19797 from justinsb/aws_docker_183
Auto commit by PR queue bot
2016-01-19 17:24:35 -08:00
k8s-merge-robot
864065be97 Merge pull request #19621 from mikedanese/retrofit-controller-manager
Auto commit by PR queue bot
2016-01-19 17:22:42 -08:00
k8s-merge-robot
064356775d Merge pull request #19280 from erictune/fix-munge-1
Auto commit by PR queue bot
2016-01-19 17:20:01 -08:00
k8s-merge-robot
2a79ac4a31 Merge pull request #18322 from mesosphere/licenses
Auto commit by PR queue bot
2016-01-19 17:17:17 -08:00