Commit Graph

5805 Commits (9f60f3ce4455013530c628ae5121a5c618c6f764)

Author SHA1 Message Date
Abhi Shah cdef8ae844 Merge pull request #9749 from dchen1107/podstatus
Add logging at RunInContainer for future debugging docker exec issues.
2015-06-12 17:10:12 -07:00
Abhi Shah 3e8690c28b Merge pull request #9515 from markturansky/scrub_thread_leak
Fixes thread leak from discarded watch
2015-06-12 16:52:21 -07:00
Dawn Chen c1d1a01087 Add logging at RunInContainer for future debugging docker exec issues. 2015-06-12 16:38:24 -07:00
Dawn Chen b1bbf653ab Merge pull request #9680 from mikedanese/fix-readiness-probe
Fix ReadinessProbe: seperate readiness and liveness in the code
2015-06-12 16:10:21 -07:00
Brendan Burns c6a910c0b8 Merge pull request #9650 from hurf/podns_describe_node
display pod namespace while describe node
2015-06-12 15:59:46 -07:00
Abhi Shah 3ce7fe8310 Merge pull request #9722 from mikedanese/host-ip-spam
Fix spammy GetHostIP error log in kubelet
2015-06-12 15:26:54 -07:00
BenTheElder c5baf1f284 Export GetIptablesVersion utility in util/iptables
For kube-proxy to determine whether to use pure iptables as in
https://github.com/GoogleCloudPlatform/kubernetes/issues/3760
Related WIP PR:
https://github.com/GoogleCloudPlatform/kubernetes/pull/9210
2015-06-12 17:13:40 -04:00
Daniel Smith 9423f80d20 fix test bug & conversion bug 2015-06-12 13:55:10 -07:00
Abhi Shah 86b6150fb0 Merge pull request #9287 from brendandburns/kubectl
Add some XSRF protection to kubectl proxy.
2015-06-12 13:51:08 -07:00
Abhi Shah 928971cea4 Merge pull request #9710 from mesosphere/public-get-phase
export kubelet.GetPhase
2015-06-12 13:46:35 -07:00
Mike Danese 5896ac9e07 skip GetHostIP call on standalone mode kubelet to fix spammy log statement 2015-06-12 11:37:53 -07:00
derekwaynecarr d40ff87bdc Its bad to spawn a gofunc per quota with large number of quotas 2015-06-12 11:40:14 -04:00
James DeFelice 022ff5196d fix broken file refs 2015-06-12 14:03:01 +00:00
James DeFelice 1820114a2d Upstream controller manager and km binary
Closes mesosphere/kubernetes-mesos#310
Depends on GoogleCloudPlatform/kubernetes#8882

- fix https://github.com/mesosphere/kubernetes-mesos/issues/336
- Fix comment typo
- Fixes https://github.com/GoogleCloudPlatform/kubernetes/pull/9265#commitcomment-11559038
- Add warning to k8s modules to also update mesos copies
- Fixes https://github.com/GoogleCloudPlatform/kubernetes/pull/9265#commitcomment-11558864
- Fixes https://github.com/GoogleCloudPlatform/kubernetes/pull/9265#commitcomment-11558855
- Add comments and TODO that hypercube and controllermanager need refactoring
2015-06-12 14:03:00 +00:00
Abhi Shah 52db576617 Merge pull request #8882 from mesosphere/upstream_k8sm
Upstream Kubernetes-Mesos framework
2015-06-12 06:36:20 -07:00
James DeFelice 3cf7739b42 export kubelet.GetPhase 2015-06-12 11:11:53 +00:00
Jerzy Szczepkowski cd3299307d Merge pull request #9549 from bprashanth/generate_fix
Avoid trying to generate the pod status of a new pod
2015-06-12 10:54:13 +02:00
Victor HU eb473676ce display pod namespace while describe node 2015-06-12 15:30:11 +08:00
hurf fa0efe3927 Add label support for kubectl describe
Add -l option to kubectl describe command, allow it return
multiple results filtered by label selector.
2015-06-12 15:08:28 +08:00
Daniel Smith 47294dd326 Revert "Revert "Test Service creation -> endpoint generation latency""
This reverts commit 654857114e.
2015-06-11 18:34:31 -07:00
Prashanth Balasubramanian b5ed0e9b13 Dont generatePodStatus twice for new pods 2015-06-11 17:18:16 -07:00
Mike Danese 35771acdfa seperate readiness and liveness in the code 2015-06-11 15:09:27 -07:00
markturansky 4210a5dfd8 Scrub pod closes watch channel 2015-06-11 14:25:44 -04:00
Abhi Shah 87d0208d83 Merge pull request #9504 from derekwaynecarr/describe_ns
Add namespace describer
2015-06-11 10:26:03 -07:00
Brendan Burns 4aeee94603 Add some XSRF protection to kubectl proxy. 2015-06-10 20:55:33 -07:00
Abhi Shah b556285661 Merge pull request #9550 from feihujiang/validationFailure
remove useless glog.Infof
2015-06-10 14:45:10 -07:00
Abhi Shah 07f8d58010 Merge pull request #9500 from andronat/make_CheckErr_testable
Make check err testable
2015-06-10 14:42:56 -07:00
James DeFelice 7d66559725 added comments at the top of native k8s files which, if changed, might affect some of the k8sm code 2015-06-10 20:31:22 +00:00
Abhi Shah f5b6597492 Revert "Make error msg for updating resource version more clear" 2015-06-10 12:54:52 -07:00
Abhi Shah d477fe6b1c Merge pull request #9569 from jhadvig/unclear_error
Make error msg for updating resource version more clear
2015-06-10 12:51:57 -07:00
Mike Danese 2bbb78d50a actually return validation errors instead of just creating them 2015-06-10 12:45:10 -07:00
Brendan Burns 0cb58606b7 Kubernetes version v0.19.0-dev 2015-06-10 09:26:55 -07:00
Brendan Burns 6b0d4ffed3 Kubernetes version v0.19.0 2015-06-10 09:25:31 -07:00
Martin Nagy ff2b5b78fa Quote integers correctly 2015-06-10 17:50:58 +02:00
Anastasis Andronidis 62c766d58d Add tests 2015-06-10 16:09:43 +02:00
Anastasis Andronidis b7c485ee9a make CheckErr testable 2015-06-10 16:09:42 +02:00
Jakub Hadvig 90dcd347ac Make error msg for updating resource version more clear 2015-06-10 14:03:06 +02:00
Brendan Burns 99bf48dc2f Merge pull request #9542 from brendandburns/validate
Change the way we test if a disk is already attached.
2015-06-09 22:00:06 -07:00
Brendan Burns 654857114e Revert "Test Service creation -> endpoint generation latency" 2015-06-09 21:24:00 -07:00
feihujiang 5867b5ce6b remove useless glog.Infof 2015-06-10 11:02:28 +08:00
Brendan Burns 3350eecedf Change the way we test if a disk is already attached.
Validated by manual introspection on a running GCE cluster.
2015-06-09 17:50:52 -07:00
krousey f62a2a1bb6 Merge pull request #9451 from cjcullen/mig
Use Node IP Address instead of Node.Name in minion.ResourceLocation.
2015-06-09 15:52:12 -07:00
krousey 1c58d2a766 Merge pull request #9354 from lavalamp/logSpam
Test Service creation -> endpoint generation latency
2015-06-09 15:51:26 -07:00
krousey e36aa77018 Merge pull request #9505 from mikedanese/remove-flags
remove kubectl flags from usage examples that no longer exist
2015-06-09 15:15:59 -07:00
Brendan Burns b259c873b7 Add a better message if the user doesn't specify a resource type. 2015-06-09 15:04:56 -07:00
krousey f413f30bea Merge pull request #9424 from mesosphere/export-generate-pod-status
add GetRuntime() to Kubelet for easier integration with 3rd party kubele…
2015-06-09 14:17:30 -07:00
krousey 934a5382ec Merge pull request #9496 from caesarxuchao/event_test-v1
update fieldPath in event_test.go to v1
2015-06-09 13:41:36 -07:00
krousey 3e7bcd1ecc Merge pull request #9182 from jdef/abspath_drops_config_prefix
ServerAPIVersions incorrectly squashes config.Prefix
2015-06-09 13:00:58 -07:00
Mike Danese 401d3c43fd remove removed flags from usage examples 2015-06-09 12:56:58 -07:00
derekwaynecarr 5b005fa30b Add namespace describer 2015-06-09 15:52:44 -04:00
krousey 43a423f6fc Merge pull request #9440 from brendandburns/ssh
Add an initial test for SSH.
2015-06-09 12:08:26 -07:00
krousey dd1f4f392f Merge pull request #9425 from mesosphere/update-testify-dep
Update github.com/stretchr/testify rev to 7e4a149
2015-06-09 11:59:00 -07:00
krousey 687e866d80 Merge pull request #9418 from mikedanese/kubectl-version-err
kubectl should error if versionless yaml is passed to resource builder
2015-06-09 11:55:48 -07:00
krousey 3d803ab7b2 Merge pull request #9410 from cjcullen/ratelimit
Add a RateLimiter for the gce altTokenSource.
2015-06-09 11:11:48 -07:00
krousey 044d4868ca Merge pull request #9408 from bcbroussard/v1api
Update web ui to v1 api
2015-06-09 11:00:06 -07:00
krousey 0487c65fab Merge pull request #9389 from nikhiljindal/swaggerDup
Adding subresource to swagger route docs
2015-06-09 10:51:38 -07:00
Chao Xu 030099a5bd update fieldPath in event_test.go to v1 2015-06-09 10:45:55 -07:00
krousey 9740105a99 Merge pull request #8837 from mbforbes/rollingTest
E2E test node upgrade (to same version)
2015-06-09 10:42:17 -07:00
krousey fa94d88599 Merge pull request #9370 from justinsb/fix_9318
Actually pass down ServiceNodePortRange so it is used
2015-06-09 10:39:45 -07:00
James DeFelice b5583db1d2 add UnversionedPath() to fix ServerAPIVersions() 2015-06-09 17:30:48 +00:00
nikhiljindal 784e408ab4 Adding subresource to swagger route docs 2015-06-09 10:20:45 -07:00
krousey d7f7d84a5e Merge pull request #9387 from jsdir/9340-signature
Improve signature consistency for ValidateObjectMetaUpdate
2015-06-09 10:20:18 -07:00
krousey ff474e5d7e Merge pull request #9376 from feihujiang/createValidateCrash
kubetcl create --validate crashes when no apiVersion or kind is provided
2015-06-09 09:59:42 -07:00
James DeFelice 257bc9b1a3 add GetRuntime() to simplify integration with 3rd party kubelet extensions like kubernetes-mesos 2015-06-09 13:27:34 +00:00
Brendan Burns b68ddbaf75 Don't pretty-print by default. Saves an allocation (or more) and a copy. 2015-06-08 21:31:58 -07:00
Brendan Burns 2240486110 Add an initial test for SSH. 2015-06-08 20:53:05 -07:00
feihujiang 37abe11f8a kubetcl create --validate crashes when no apiVersion or kind is provided 2015-06-09 10:38:43 +08:00
CJ Cullen 2d85e4a094 Use Node IP Address instead of Node.Name in minion.ResourceLocation.
Refactor GetNodeHostIP into pkg/util/node (instead of pkg/util to break import cycle).

Include internalIP in gce NodeAddresses.
2015-06-08 16:58:00 -07:00
krousey afb9a7e362 Merge pull request #9373 from justinsb/aws_lb_cleanup
Make deletion of an AWS load balancer clean
2015-06-08 16:49:21 -07:00
Daniel Smith aa9bdcbc4a add missing endpoints field label conversion function 2015-06-08 16:23:21 -07:00
krousey ab4c725975 Merge pull request #9328 from liggitt/token_controller_process_new
Generate tokens for service accounts with no secrets
2015-06-08 15:15:44 -07:00
Jason Sommer aa892b7143 Replace meta with new 2015-06-08 17:06:56 -05:00
Justin Santa Barbara 6f3879e3bb Actually pass down ServiceNodePortRange so it is used
Also fix default range to match what we've documented (off-by-one)

Fix #9318
2015-06-08 18:03:42 -04:00
krousey 5aa0219ada Merge pull request #9292 from cjcullen/test_pull_8946
Add an ssh tunnel option to the /proxy endpoint
2015-06-08 14:30:12 -07:00
Brendan Burns 4546cbbb56 Revert "Cut release 0.18.2 with the fix for Docker + memory limits" 2015-06-08 13:49:48 -07:00
Brendan Burns cfcc6553a5 Merge pull request #9426 from brendandburns/release-0.18
Cut release 0.18.2 with the fix for Docker + memory limits
2015-06-08 13:40:07 -07:00
Brendan Burns 56134d57e4 Kubernetes version v0.18.2-dev 2015-06-08 13:08:53 -07:00
Brendan Burns 1f12b89387 Kubernetes version v0.18.2 2015-06-08 13:08:10 -07:00
Dawn Chen a90d47da60 Passing memory swap limit -1 by default. Docker remote API never check if memory
swap is enabled by kernel or not, instead by default to set the limit to
memory * 2, and return API error 500 if swap is not enabled.

(cherry picked from commit f714020a7a)
2015-06-08 13:06:32 -07:00
Tomás Senart 2a3ffe4038 kubelet: Use assert.EqualValues instead of assert.Equal
The last update to github.com/stretchr/testify makes `assert.Equal`
consider the type of its arguments. This commit makes this test pass
again by only testing for value equality using `assert.EqualValues`.
2015-06-08 22:01:48 +02:00
Mike Danese 627b2f9a24 kubectl should use UnstructuredJSONScheme to decode version and kind, as it throws errors if either are missing] 2015-06-08 11:51:37 -07:00
krousey 8ce921ed33 Merge pull request #9357 from mikedanese/kubectl-kind-err
improve kubectl error message when an object with no kind is passed to the resource builder
2015-06-08 11:34:43 -07:00
CJ Cullen be0d24824d Add a RateLimiter for the gce altTokenSource. 2015-06-08 11:16:52 -07:00
BC Broussard 4efa564c7b Update web ui to v1 api 2015-06-08 10:49:29 -07:00
krousey 66d2e1cb92 Merge pull request #9358 from dchen1107/podstatus
Passing memory swap limit -1 by default. Docker remote API never chec…
2015-06-08 10:19:28 -07:00
krousey 49a6b629f8 Merge pull request #9171 from jdef/parse_prefix_from_server
parse apiserver prefix from client config host spec
2015-06-08 10:17:41 -07:00
krousey a7edbedcb9 Merge pull request #9262 from bprashanth/minion_proxy
Apiserver can proxy to nodes
2015-06-08 10:17:06 -07:00
Anastasis Andronidis bf87f0ec68 Print multiple validation errors 2015-06-08 14:06:20 +02:00
Jason Sommer d59a8ff7f8 Improve signature consistency for ValidateObjectMetaUpdate
Fixes #9340

Signed-off-by: Jason Sommer <jsdirv@gmail.com>
2015-06-08 02:56:38 -05:00
Justin Santa Barbara c2caa3f1da AWS: Fix cleanup of security group
The most reliable way seems to be to deauthorize the LB security group from
other groups, then delete the LB itself, then repeatedly retry to delete the LB
security group.

We can't delete the LB security group until the LB is actually completely
deleted, but the LB is hidden from the API during deletion.  So our only real
option is to retry deletion of the LB security group until the expected error
goes away when the LB is fully deleted.
2015-06-06 23:20:34 -04:00
Mike Danese 7b7d8ccb77 print various errors which is useful when ContinueOnError is set on the Resource struct 2015-06-06 15:47:01 -07:00
Justin Santa Barbara 1700259508 AWS: Ignore the UserId when determining whether we can skip revoking a security group
Otherwise we weren't correctly de-authorizing the AWS LB SG from the Node SG
2015-06-06 12:37:01 -04:00
Justin Santa Barbara 8fafefd728 Fix doc for edge-case return from removeSecurityGroupIngress 2015-06-06 12:25:50 -04:00
Justin Santa Barbara e32c66c6f4 Fix typo: Ingess -> Ingress 2015-06-06 12:22:50 -04:00
Jordan Liggitt 1a3d093d99 Generate tokens for new service accounts without checking secret store 2015-06-06 00:05:36 -04:00
Dawn Chen f714020a7a Passing memory swap limit -1 by default. Docker remote API never check if memory
swap is enabled by kernel or not, instead by default to set the limit to
memory * 2, and return API error 500 if swap is not enabled.
2015-06-05 18:12:05 -07:00
CJ Cullen 9ab329827a Change sshproxy to poll registry for nodes every 10 seconds (reduces window where closed tunnels from scaling down may exist). 2015-06-05 15:24:17 -07:00
Quinton Hoole 6ff203e9da Merge pull request #9280 from caesarxuchao/make-v1-preferred
Make v1 the preferred api version
2015-06-05 15:23:14 -07:00
Mike Danese c9bd90a5df Merge pull request #9032 from andronat/fix_7843
Decrease columns and refactor get pods layout
2015-06-05 15:06:53 -07:00
CJ Cullen 04cd9b3c75 Make sshproxy use a hostmount on master PD (don't spam sshKeys on upgrade/reboot).
Add comment describing what SSHTunnelList.Close() does.
Simplify util.FileExists.
2015-06-05 15:03:03 -07:00