Commit Graph

5905 Commits (59a96f102826da5baadbeb4aa55a332921534b74)

Author SHA1 Message Date
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
Quinton Hoole 1d50e97305 Merge pull request #9333 from krousey/v1_docs
Updating docs/ to v1
2015-06-05 14:58:28 -07:00
CJ Cullen cb317604ab Some refactoring. Only selectively use ssh proxy.
Add NetworkName to gce.Config.
Add locking to uses of master.tunnels.
2015-06-05 14:55:16 -07:00
CJ Cullen 1ae8801387 Fix transport creation logic.
Refactor loadTunnels to allow one path for load, another for refresh.
Make SSHTunnelList.Close sleep for a minute before actually closing each tunnel.
2015-06-05 14:55:16 -07:00
Brendan Burns 7ea533d871 Add the SSHTunnel transport to the kubelet client. 2015-06-05 14:55:15 -07:00
CJ Cullen de9a5f43bc Specify sshUser, sshKeyfile in kube-apiserver manifest.
Trim space on ssh key so GCE doesn't treat it as 2 lines.
A couple other minor fixes.
2015-06-05 14:55:15 -07:00
Brendan Burns 5115fd5703 Add key generation. 2015-06-05 14:55:15 -07:00
Brendan Burns 30a89968a4 Initial proxy tunnelling. 2015-06-05 14:54:20 -07:00
Brendan Burns 631cf34d40 Add tunnelling to the proxy API handler. 2015-06-05 14:54:20 -07:00
Kris Rousey 6e83eb2636 Updating docs/ to v1 2015-06-05 14:09:49 -07:00
Prashanth Balasubramanian 50eb9ad598 Use https only for the kubelet port 2015-06-05 14:06:38 -07:00
Chao Xu e6ffa5bf67 make the meaning of a test in get_test.go clearer 2015-06-05 13:59:30 -07:00
Anastasis Andronidis 68d9313d69 Refactor get pods layout 2015-06-05 22:28:17 +02:00
Justin Santa Barbara 48e8a8b0ec AWS: Set up security groups, to mirror GCE firewalling
Some slightly fussy code to enable load-balancers to talk to
instances, but otherwise relatively simple.
2015-06-05 16:10:08 -04:00
Justin Santa Barbara 33a3d884f2 AWS: Filter by Cluster tag, rationalize EC2 abstraction
Whenever we do a list we now filter on tags so we only see resources relating
to our cluster.

Also, rationalize all the DescribeX calls:
 * They all take a request object (so that we can pass filters)
 * They do paging if that is required (and return the underlying resources)
 * They wrap any error with a "error while listing X: %v" message
2015-06-05 16:09:01 -04:00
Prashanth Balasubramanian 99f8ddf304 Enable profiling endpoints for kubelet 2015-06-05 12:50:57 -07:00
Prashanth Balasubramanian b678e2ff9e Nodes returns transport and scheme in spite of port requirements 2015-06-05 12:50:57 -07:00
Quinton Hoole 2c54be808e Merge pull request #9302 from brendandburns/fix
Add messages to indicate that opening an external firewall may be necessary.
2015-06-05 12:37:19 -07:00
Quinton Hoole f048d0dff7 Merge pull request #9105 from anguslees/openstack-provider
Openstack LB improvements
2015-06-05 12:06:12 -07:00
Quinton Hoole a715fdef95 Merge pull request #9291 from dchen1107/podstatus
Filtered out unfriendly error from docker when registry is not reachable.
2015-06-05 12:01:51 -07:00
Quinton Hoole bc59e69ff0 Merge pull request #9159 from csrwng/remove_cors_headers
Remove CORS headers from pod proxy responses
2015-06-05 11:40:09 -07:00
Quinton Hoole 8b01ecb53a Merge pull request #9024 from markturansky/recyc_controllers
PersistentVolumeRecycler controller
2015-06-05 11:39:08 -07:00
Dawn Chen 636b40ffa1 Filtered out unfriendly error from docker when registry is not reachable(code: 502, 503, 504) 2015-06-05 11:29:35 -07:00
Quinton Hoole 988a413acf Merge pull request #9058 from deads2k/serialize-with-auth
serialize dockercfg with matching auth field
2015-06-05 11:26:14 -07:00
Quinton Hoole 8f55d9e619 Merge pull request #9317 from nikhiljindal/podnodeName
Updating StatusDetails.ID to Name in internal API
2015-06-05 11:23:09 -07:00
Quinton Hoole b40ecc4fbc Merge pull request #9282 from markturansky/pv_index_fix
Add available volumes to binder index when not present
2015-06-05 11:06:48 -07:00
deads2k ac2c43fc87 serialize dockercfg with matching auth field 2015-06-05 11:14:10 -04:00
nikhiljindal 7cc50448e3 Updating StatusDetails.ID to Name in internal API 2015-06-05 07:17:02 -07:00
Angus Lees 75f49b331a Ignore "unspecified" externalIP during LB create
Previously we always passed `Address: externalIP.String()` while
creating a loadbalancer VIP.  This passed "0.0.0.0" when externalIP was
unspecified, effectively making it mandatory to specify an externalIP.

This change correctly leaves `Address` unspecified when externalIP is
unspecified (has a zero value).

(Thanks to @justinsb for the report)
2015-06-05 16:27:45 +10:00
Brendan Burns 380790a8e2 Add messages to indicate that opening an external firewall may be necessary. 2015-06-04 22:31:52 -07:00
Quinton Hoole d6004a1ced Merge pull request #9279 from yifan-gu/refactor
kubelet: Minor refactors.
2015-06-04 21:47:04 -07:00
Quinton Hoole 502a8d75cc Merge pull request #9000 from jackgr/ui_build_js
Javascript only UI build cleanup
2015-06-04 21:40:03 -07:00
Chao Xu 8a4dffdcee fix 2015-06-04 17:19:41 -07:00
Chao Xu 5a54a0118d fix 2015-06-04 16:35:24 -07:00
Quinton Hoole fc80fd6860 Merge pull request #9233 from lavalamp/no-ro-nonbreaking
Allow kubectl proxy to proxy everything
2015-06-04 16:22:07 -07:00
Yifan Gu f197a9db4e kubelet: Minor refactors.
Remove some TODOs.
Unexport DockerManager.Puller and DockerManager.PodInfraContainerImage.
Add "docker" for all "go-dockerclient" imports.
2015-06-04 16:08:45 -07:00
markturansky 627dd86b95 Added available volumes to volumeIndex in binder when not present 2015-06-04 18:29:14 -04:00
Chao Xu 1605fc7347 fix unit tests 2015-06-04 15:09:47 -07:00
Chao Xu dfc77f7883 make v1 the preferred api version 2015-06-04 15:08:56 -07:00
jackgr cff5bed70d Clean up ui build and generated files. 2015-06-04 14:54:15 -07:00
Cesar Wong e8af67c180 Remove CORS headers from pod proxy responses
The API server sends its own CORS headers in its response, and if the
proxied pod response also includes its own headers, it confuses clients.
2015-06-04 16:49:04 -04:00
Quinton Hoole 521446503a Merge pull request #9269 from caesarxuchao/make-v1-enabled-by-default
Make v1 enabled by default
2015-06-04 13:29:48 -07:00
James DeFelice 4b8995f009 parse apiserver prefix from client config host spec, with unit test 2015-06-04 20:20:19 +00:00
Quinton Hoole 44f2c8f003 Merge pull request #9263 from caesarxuchao/add-v1-tests-fix
Fix some v1 tests issues
2015-06-04 13:15:43 -07:00
Quinton Hoole b5251de193 Merge pull request #9261 from justinsb/aws_d2_instance_types
AWS: Add d2 instance types
2015-06-04 13:11:43 -07:00
markturansky deec5f26cd Recycler controller 2015-06-04 15:47:36 -04:00
markturansky 986cbb56d4 Recycling HostPath and NFS impls 2015-06-04 15:46:03 -04:00
markturansky cb547f4b5c RecyclableVolumePlugin interfaces 2015-06-04 15:40:52 -04:00
markturansky 2829fadfad PV Recycling API 2015-06-04 15:39:34 -04:00
Quinton Hoole 70f78aa5bf Merge pull request #9266 from yujuhong/err_msg
Kubelet: fix the warning message
2015-06-04 11:55:46 -07:00
Quinton Hoole ce2b46d0ae Merge pull request #9240 from tpounds/update-aws-sdk-go
Update AWS Go SDK (v0.6.0)
2015-06-04 11:54:42 -07:00
Chao Xu ef61b031f5 make v1 enabled by default 2015-06-04 11:37:44 -07:00
Yu-Ju Hong 46e29cfb70 Kubelet: fix the warning message 2015-06-04 11:07:08 -07:00
Brendan Burns 02f3142f41 Merge pull request #9196 from brendandburns/merge-release-0.18-to-master
Merge release 0.18 to master
2015-06-04 10:50:26 -07:00
Chao Xu 080da97e1c fix a comment 2015-06-04 10:35:10 -07:00
Trevor Pounds 6eea271656 Guard against non AWS errors. 2015-06-04 10:33:36 -07:00
Chao Xu 854b8034ab use testapi.Codec() in etcd_test.go 2015-06-04 10:23:15 -07:00
Chao Xu 0a7dc87b05 address nikhiljindal's comments in #9225 2015-06-04 10:20:29 -07:00
Justin Santa Barbara 41f52546bc AWS: Add d2 instance types
Another family of instance types, I think the next-gen of hs1
2015-06-04 12:57:33 -04:00
Chao Xu c2e21fe5d7 use c.EtcdHelper in master.go 2015-06-04 09:39:05 -07:00
Chao Xu c1ba3f21d5 remove outdated test from latest_test.go 2015-06-04 09:39:05 -07:00
Quinton Hoole 64d361fb74 Merge pull request #9249 from bcbroussard/remove-v1beta2
Remove deprecated v1beta2 api from the web ui
2015-06-04 09:36:44 -07:00
Quinton Hoole d97199c091 Merge pull request #9245 from bcbroussard/cadvisor-update
cAdvisor updates for v1beta3
2015-06-04 08:25:50 -07:00
Quinton Hoole da2267914a Merge pull request #9200 from rhcarvalho/patch-2
Fix typo
2015-06-04 08:21:41 -07:00
Rodolfo Carvalho b216d09a8d Fix typo 2015-06-04 11:44:10 +02:00
BC Broussard 0ec8b9b665 Remove unused v1beta2 references from web ui 2015-06-04 00:19:06 -07:00
BC Broussard 1590403949 cAdvisor updates for v1beta3 2015-06-03 23:31:15 -07:00
Trevor Pounds 7cdf573015 Update aws-sdk-go dependency from awslabs to aws. 2015-06-03 23:07:42 -07:00
Brian Grant a161edb396 Merge pull request #9235 from derekwaynecarr/fix_namespace_delete_race
Fix namespace controller on delete to not care if item not found
2015-06-03 22:18:34 -07:00
Brian Grant 656fa7bea1 Merge pull request #9225 from caesarxuchao/add-v1-tests-general
Add v1 tests
2015-06-03 22:18:21 -07:00
Brian Grant c92b4255b3 Merge pull request #9217 from caesarxuchao/add-v1-tests-to-pkg/kubectl/cmd
add v1 tests to kubectl/cmd/*
2015-06-03 22:16:44 -07:00
Brian Grant ab1e3cc789 Merge pull request #9215 from RichieEscarez/8977_restartpolicy
Replaced instances of "RestartPolicyAlways" "RestartPolicyOnFailure" …
2015-06-03 22:16:11 -07:00
Brian Grant d3aed0cd18 Merge pull request #9195 from caesarxuchao/serialization_test
add v1 to serialization_test.go
2015-06-03 22:15:23 -07:00
Brian Grant a5959d7b6f Merge pull request #8155 from lavalamp/no-ro
Remove ro service
2015-06-03 21:15:28 -07:00
Brian Grant e7788771d6 Merge pull request #9030 from brendandburns/kubectl
Add a custom timeout flag for stop/delete.
2015-06-03 21:14:50 -07:00
Chao Xu ca72165b20 remove most references to api.PreV1Beta3 2015-06-03 20:09:03 -07:00
derekwaynecarr 14d2128238 Fix namespace controller on delete to not care if item not found 2015-06-03 22:59:07 -04:00
Daniel Smith 1bab36f772 Fix 'kubectl proxy' to allow the /metrics page to be proxied, without breaking the previous proxy behavior 2015-06-03 18:31:45 -07:00
Brian Grant f72fa67924 Revert "Use Node IP Address instead of Node.Name in minion.ResourceLocation." 2015-06-03 18:19:22 -07:00
Chao Xu 6b81c064ed change v1beta3 to v1 in test cases 2015-06-03 17:50:22 -07:00
Max Forbes a6c47a07de E2E test node upgrade (to same version) 2015-06-03 17:05:45 -07:00
Chao Xu 2ee8eb67a9 remove import of v1beta3 package in api/conversion_test.go 2015-06-03 16:50:40 -07:00
Chao Xu cb123dc957 in api/testapi/testapt_test.go, remove tests for v1beta1, add tests for v1 2015-06-03 16:48:05 -07:00
Daniel Smith 1690617ee6 remove ro service 2015-06-03 16:45:54 -07:00
Brian Grant f8bf996000 Merge pull request #9211 from lavalamp/no-ro-nonbreaking
Nonbreaking pieces of #8155
2015-06-03 16:44:24 -07:00
Chao Xu 97b29c7fe6 in pkg/kubelet/config/commont_test.go, remove check for v1beta1, add test cases for all registered version 2015-06-03 16:07:00 -07:00
Chao Xu b61658d064 add v1 item in pkg/runtime/helper_test.go 2015-06-03 16:05:40 -07:00
Daniel Smith 3f454b7599 remove ro refs from more places 2015-06-03 15:41:09 -07:00
Chao Xu 0d81f5901b add v1 items to runtime/unstructured_test.go 2015-06-03 15:09:49 -07:00
Chao Xu 8885025d25 add v1 tests to tests in kubectl/cmd/* 2015-06-03 13:57:54 -07:00
RichieEscarez 91907f66a7 Replaced instances of "RestartPolicyAlways" "RestartPolicyOnFailure" "RestartPolicyNever" with "Always" "OnFailure" "Never" 2015-06-03 13:35:35 -07:00
Chao Xu 115823ff1b add v1 to serialization_test.go 2015-06-03 13:22:01 -07:00
Brian Grant be4a501e25 Merge pull request #9099 from derekwaynecarr/improve_quota_describe_output
Fix bug in quota describe output
2015-06-03 13:14:30 -07:00
Daniel Smith 67f53d2eff Make kubectl work inside a container in k8s 2015-06-03 12:48:07 -07:00
Brian Grant d6d52b41c6 Merge pull request #9189 from justinsb/fix_9123
Avoid nil-pointer dereference panics in AWS
2015-06-03 12:34:34 -07:00
derekwaynecarr 6968a4e0df Improve quota describe output 2015-06-03 15:16:24 -04:00
Tim Hockin 1aa9b0b86a Don't allow link-local Endpoints 2015-06-03 11:40:04 -07:00
Brendan Burns ab0c9b8e1e Add a custom timeout flag for stop/delete. Also try to be smarter about setting the timeout. 2015-06-03 11:21:30 -07:00
Brian Grant 895ad68422 Merge pull request #9145 from caesarxuchao/hack/test-integration
enable v1 in hack/test-integration.go
2015-06-03 11:19:41 -07:00
Brendan Burns 75fe41b622 Manually fix up 0.18.1 (not sure what went wrong) 2015-06-03 10:46:08 -07:00
Chao Xu d52cef11a4 add v1 tests to hack/test-go; let default value of Container.SecurityContext to be nil 2015-06-03 09:50:41 -07:00
Brian Grant 9740c7c3ad Merge pull request #9163 from mikedanese/ui-path
redirect /ui to the ui dashboard
2015-06-03 09:49:41 -07:00
Brian Grant 3d4d38d378 Merge pull request #9177 from feihujiang/eventToLog
get Events to be logged
2015-06-03 09:32:42 -07:00
Brian Grant 2742469874 Merge pull request #9104 from liggitt/token_cleanup
Clean up token on service account update failure
2015-06-03 09:32:07 -07:00
Brian Grant 4e2d295046 Merge pull request #8964 from bprashanth/apiserver_cmd
Extend read/write connection timeout of apiserver
2015-06-03 09:31:37 -07:00
Eric Tune 6e3ff01fa7 Merge pull request #9092 from lavalamp/no-ro-nonbreaking
Nonbreaking changes working towards removing the RO port
2015-06-03 09:25:46 -07:00
Justin Santa Barbara e3eb23f464 Avoid nil-pointer dereference panics in AWS
These were introduced because the new official AWS SDK uses *string
where the old library used strings.  We now use the helpers much
more (orEmpty and isNilOrEmpty).

Fixes #9123
2015-06-03 12:24:23 -04:00
Prashanth Balasubramanian 0162529ea5 Default minRequestTimeout to 1800s 2015-06-03 08:47:45 -07:00
Prashanth Balasubramanian 448867073d Pipe minRequestTimeout as an arg to the apiserver 2015-06-03 08:44:14 -07:00
Angus Lees 9394635cc0 Make EnsureTCPLoadBalancerDeleted idempotent
This change allows EnsureTCPLoadBalancerDeleted to be called repeatedly
to reattempt deleting objects that may have failed on a previous run.

Specifically, if the VIP is already deleted, then an attempt is made to
lookup the pool by name.  Returns success when both the VIP and pool are
not found.

Fixes #8352
2015-06-03 17:21:31 +10:00
feihujiang ebc8eab590 get Events to be logged 2015-06-03 15:05:07 +08:00
Brian Grant 36a4ece87a Merge pull request #9080 from thockin/dns-new-search-kubelet
Insert 'svc' into the DNS search paths
2015-06-02 22:54:07 -07:00
Brian Grant e9ccec4c35 Merge pull request #8915 from fgrzadkowski/fix_reflector
Reduce number of list requests in watch-based cache
2015-06-02 22:52:54 -07:00
Brian Grant d4acb1d676 Merge pull request #9155 from cjcullen/mig
Use Node IP Address instead of Node.Name in minion.ResourceLocation.
2015-06-02 22:51:20 -07:00
Brian Grant be2547bc39 Merge pull request #9149 from vmarmol/docker-errors
Kubelet: Add metric for tracking Docker error count
2015-06-02 22:50:50 -07:00
Michael Danese a1ea672c63 redirect /ui and /index.html to the ui dashboard at /static/app/#/dashboard/ 2015-06-02 21:16:43 -07:00
Brian Grant 08e20d3bc8 Merge pull request #9081 from yujuhong/kubelet_unittest4
Kubelet unit test cleanup
2015-06-02 20:36:54 -07:00
Brendan Burns 3e5707be5b Kubernetes version v0.18.1-dev 2015-06-02 20:30:49 -07:00
Brendan Burns befd1385e5 Kubernetes version v0.18.1 2015-06-02 20:30:14 -07:00
Brendan Burns deb907180b Fix a bug in kubectl exec handling.
(cherry picked from commit 911e3e9594)
2015-06-02 20:29:53 -07:00
Brian Grant 785740a0f8 Merge pull request #9164 from brendandburns/fix
Fix a bug in kubectl exec handling.
2015-06-02 20:24:55 -07:00
Victor Marmol 220570dfc1 Make system container name configurable.
(cherry picked from commit 9a2630ac6e)
2015-06-02 20:03:57 -07:00
Victor Marmol 39c308012a Have the ContainerManager create a system container.
The system container is a resource-only container which contains all
non-kernel processes that are not already part of a container. This will
allow monitoring of their resource usage and limiting it (eventually).

(cherry picked from commit ddec34a000)
2015-06-02 20:03:43 -07:00
derekwaynecarr ad7b10bf21 Name is a required parameter for kubectl run, default-name is not
(cherry picked from commit b69f1ff5bd)

Conflicts:
	pkg/kubectl/run.go
2015-06-02 20:03:02 -07:00
CJ Cullen 4e5d0da839 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. Remove NodeLegacyHostIP
2015-06-02 20:01:49 -07:00
Brian Grant 5115f0e6bc Merge pull request #8888 from smarterclayton/add_new_allocators
Add a new contiguous allocator strategy option
2015-06-02 19:54:44 -07:00
Brian Grant e77ded1e84 Merge pull request #8649 from cjcullen/servicefix
Add an advertise-address flag
2015-06-02 19:54:28 -07:00
Brendan Burns 911e3e9594 Fix a bug in kubectl exec handling. 2015-06-02 19:45:51 -07:00
Daniel Smith e3c0e38f1b Move cluster client creation to client.NewInCluster()
Built & pushed nettest:1.4.
2015-06-02 18:47:06 -07:00
Victor Marmol 6b0d3d8df0 Add DockerErrors metric in the Kubelet.
Allows the tracking of errors by Docker operation.
2015-06-02 17:38:09 -07:00
Victor Marmol 1a805c711a Refactoring handling of latency recording. 2015-06-02 17:29:13 -07:00
Chao Xu 3358f37871 remove imports of v1 in latest_test.go 2015-06-02 17:27:57 -07:00
Filip Grzadkowski 7cdfb2ac7f Reduce number of list requests in watch-based cache 2015-06-03 00:55:49 +02:00
CJ Cullen 934c553c04 Clarify description/usage of --advertise-address, Master.PublicAddress 2015-06-02 15:23:32 -07:00
Yu-Ju Hong 64aa958efb Make PodList span multiple lines for readability 2015-06-02 15:03:38 -07:00
Yu-Ju Hong 55f7b9b9b1 Adapt most CommandRunner tests to use FakeRuntime 2015-06-02 15:03:38 -07:00
Yu-Ju Hong b3197bb49b Switch more tests from newTestKubelet to newTestKubeletWithFakeRuntime 2015-06-02 15:03:38 -07:00
Yu-Ju Hong d4034f9c43 Move more docker-specific tests to dockertools/manager_test.go 2015-06-02 15:03:33 -07:00
Chao Xu 89c8949e78 add v1 to hack/test-integration.sh 2015-06-02 14:55:45 -07:00
Chao Xu 48d3d604af fix 2015-06-02 14:55:45 -07:00
Chao Xu ff6947625d add v1 tests to hack/test-go; let default value of Container.SecurityContext to be nil 2015-06-02 14:55:45 -07:00
Filip Grzadkowski 98115facfd Revert "Gracefully delete pods from the Kubelet" 2015-06-02 23:40:05 +02:00
CJ Cullen 085a48a70e Add an advertise-address flag. This allows the address that the apiserver binds
to (possibly 0.0.0.0) to be different than the address on which members of the cluster
can reach the apiserver (possibly not a local interface).
2015-06-02 14:33:15 -07:00
Brian Grant 0cb0a56895 Merge pull request #8417 from jdef/proxy_port_allocator
proxy port range allocation
2015-06-02 14:17:41 -07:00
Brian Grant 8a9700b2ba Merge pull request #8864 from ncdc/pluggable-docker-exec
Add support for pluggable Docker exec handlers
2015-06-02 14:13:06 -07:00
Brian Grant 6508c04f24 Merge pull request #9112 from kargakis/expose-nits
expose: Better error formatting and generic flag message
2015-06-02 13:10:52 -07:00
Brian Grant 0a28edf6e7 Merge pull request #8698 from vmarmol/with-limits
Reserve node resources for node services
2015-06-02 13:05:29 -07:00
Brian Grant 3f07503cea Merge pull request #9103 from liggitt/omitempty_service_account
fix omitempty on PodSpec.ServiceAccount in v1beta3
2015-06-02 10:41:11 -07:00
Brian Grant b8a7527cb3 Merge pull request #9069 from markturansky/pv_panic_fix
Fixes panic/nil pointer in PV
2015-06-02 10:39:40 -07:00
Brian Grant 55529d9256 Merge pull request #7153 from xiang90/apiserver
minor cleanup for apiserver/errors.go
2015-06-02 10:37:36 -07:00
markturansky b1464437de fixed test 2015-06-02 09:19:28 -04:00
Jan Safranek d2b4ae4df4 Fix persistent volumes.
Check Spec.PersistentVolumeSource in NFS, RBD, Gluster and iSCSI volume
plugins.
2015-06-02 09:19:28 -04:00
James DeFelice 4abcf7449c implementation of proxy port allocation 2015-06-02 12:28:25 +00:00
kargakis 0fba4820f5 expose: Better error formatting and generic flag message
Re error formatting:
$ osc expose svc frontend --port=5432 --generator='service/v2' --name=test

Before:
error: generator %!!(MISSING)q(<nil>) not found.
see 'osc expose -h' for help.

Now:
error: generator "services/v2" not found.
see 'openshift cli expose -h' for help.
2015-06-02 13:06:21 +02:00
Jordan Liggitt a837771b27 Clean up token on service account update failure 2015-06-02 01:35:51 -04:00
Jordan Liggitt 870be9768a fix omitempty on service account in v1beta3 2015-06-02 01:31:06 -04:00
Angus Lees 785a775777 Actually delete LBaaS monitors after disassociating
Partially addresses issue #8352
2015-06-02 15:25:51 +10:00
Angus Lees 6491922562 Catch 404 and return exists=false from GetTCPLoadBalancer
Previouly getVipByName treated 404 like any other unexpected error
return and passed it up the chain.  This caused the "if ErrNotFound then
exists=false" logic in GetTCPLoadBalancer to never fire.

This change teaches getVipByName to return ErrNotFound on a 404 server
response.
2015-06-02 15:25:40 +10:00
Tim Hockin a826529573 Insert 'svc' into the DNS search paths
Fixes #8569.

This requires the DNS server to be running kube2sky v1.6 or higher (part of
release 0.18).  Users with older kube2sky MUST NOT update to this kubelet until
they upgrade DNS.  Versions of kube2sky >= 1.6 support both old and new style
names.  Old style names are deprectaed and will be removed around the time of
kubernetes v1.0 release.
2015-06-01 17:02:17 -07:00
Clayton Coleman e89d551817 Add a new contiguous allocator strategy option
Also fix an error in port allocator
2015-06-01 19:59:17 -04:00
Clayton Coleman 5f06138798 Namespace controller must wait for terminating resources 2015-06-01 19:24:02 -04:00
Clayton Coleman ce3a6a666d Show terminating pods in get/describe 2015-06-01 19:24:01 -04:00
Clayton Coleman 9d3631e3de Handle deleted pods in replication and endpoint controllers
Pods that are slated for deletion should be excluded from
replication and endpoints immediately.
2015-06-01 19:24:01 -04:00
Clayton Coleman 72ee028cab Gracefully delete pods from the Kubelet
This commit wires together the graceful delete option for pods
on the Kubelet.  When a pod is deleted on the API server, a
grace period is calculated that is based on the
Pod.Spec.TerminationGracePeriodInSeconds, the user's provided grace
period, or a default.  The grace period can only shrink once set.
The value provided by the user (or the default) is set onto metadata
as DeletionGracePeriod.

When the Kubelet sees a pod with DeletionTimestamp set, it uses the
value of ObjectMeta.GracePeriodSeconds as the grace period
sent to Docker.  When updating status, if the pod has DeletionTimestamp
set and all containers are terminated, the Kubelet will update the
status one last time and then invoke Delete(pod, grace: 0) to
clean up the pod immediately.
2015-06-01 19:23:59 -04:00
Clayton Coleman da7c612bb6 Expire is a new type of watch action 2015-06-01 17:26:48 -04:00
Clayton Coleman 3368e12a6c Ensure TTL is not cleared in possible edge cases 2015-06-01 17:26:47 -04:00
Andy Goldstein 2a0d7ebb11 Add support for pluggable Docker exec handlers
Add support for pluggable Docker exec handlers. The default handler is
now Docker's native exec API call. The previous default, nsenter, can be
selected by passing --docker-exec-handler=nsenter when starting the
kubelet.
2015-06-01 16:59:59 -04:00
derekwaynecarr b69f1ff5bd Name is a required parameter for kubectl run, default-name is not 2015-06-01 14:05:05 -04:00
Eric Tune 8b498aee4a Merge pull request #8495 from gmarek/fix_ratelimit
Move evicting pods to separate thread to allow for correct ratelimitting.
2015-06-01 10:29:37 -07:00
Eric Tune 760caea187 Merge pull request #8863 from mfojtik/fix-default-registry-matcher
Add 'docker.io' and 'index.docker.io' to default registry matcher
2015-06-01 10:28:34 -07:00
Eric Tune 1f526a5f89 Merge pull request #9027 from jlowdermilk/kubectl-deprecate-minion
Stop supporting the minion alias for nodes in kubectl
2015-06-01 10:26:51 -07:00
Eric Tune 936c6842e0 Merge pull request #8733 from justinsb/nodeport_aws
Enable support for AWS LB
2015-06-01 09:25:15 -07:00
Eric Tune c1d0a48075 Merge pull request #8912 from justinsb/volumes_kubelet_root_not_symlink
Ensure kubelet root is not a symlink
2015-06-01 09:24:32 -07:00
gmarek 1490543d54 Move evicting pods to separate thread to allow for correct ratelimitting. 2015-06-01 11:39:20 +02:00
Michal Fojtik 9a94f7cc38 Add 'docker.io' and 'index.docker.io' to default registry matcher
Signed-off-by: Michal Fojtik <mfojtik@redhat.com>
2015-05-30 12:59:18 +02:00
Victor Marmol 7283e662b5 Introduce SystemContainer to Kubelet ContainerManager.
This generalizes the handling of containers in the
ContainerManager.

Also introduces the ability to determine how much
resources are reserved for those system containers.
2015-05-29 17:32:34 -07:00
Kris f4e2c738f6 Delete deprecated API versions
pkg/service:

There were a couple of references here just as a reminder to change the
behavior of findPort. As of v1beta3, TargetPort was always defaulted, so
we could remove findDefaultPort and related tests.

pkg/apiserver:

The tests were using versioned API codecs for some of their encoding
tests. Necessary API types had to be written and registered with the
fake versioned codecs.

pkg/kubectl:

Some tests were converted to current versions where it made sense.
2015-05-29 17:17:35 -07:00
Justin Santa Barbara c4a2631593 Mount logic breaks if /var/lib/kubelet is a symlink
Pass the correct kubelet root-dir on AWS
2015-05-29 20:13:09 -04:00
Justin Santa Barbara 9839253233 Add logging to volume tear-down to help understand mount behaviour 2015-05-29 20:11:13 -04:00
Rohit Jnagal 25e63e737a Merge pull request #9014 from caesarxuchao/image-omitempty
make the Container.Image field optional in v1
2015-05-29 16:32:30 -07:00
Rohit Jnagal 99c9c54c05 Merge pull request #8983 from jlowdermilk/update-patch
Disable --patch for kubectl update
2015-05-29 16:30:16 -07:00
Rohit Jnagal 0cbd4beb63 Merge pull request #8886 from csrwng/fix_proxy_url_slash
Fix proxying of URLs that end in "/" in the pod proxy subresource
2015-05-29 16:28:41 -07:00
Justin Santa Barbara 1e99426d5b Support for AWS ELB 2015-05-29 18:53:35 -04:00
Rohit Jnagal fd4a0c5966 Merge pull request #8823 from jlowdermilk/release-0.18
Release 0.18.0
2015-05-29 15:49:46 -07:00
Justin Santa Barbara c741b8f3ae Pass ports as []*api.ServicePort into LoadBalancer provider
Because AWS needs the NodePort; this also paves the way for e.g. UDP balancing
2015-05-29 18:47:05 -04:00
Jeff Lowdermilk 0c44be833d Stop supporting the minion alias for nodes in kubectl 2015-05-29 15:40:47 -07:00
Rohit Jnagal 9184ccf24d Merge pull request #8960 from erictune/nodectrlevent
Add event about Node when cannot assign CIDR.
2015-05-29 14:54:16 -07:00
Rohit Jnagal fdefd120c1 Merge pull request #8980 from caesarxuchao/Remove_TemplateRef
remove ReplicationControllerSpec.TemplateRef
2015-05-29 14:53:25 -07:00
Rohit Jnagal 233ce46b83 Merge pull request #8923 from caesarxuchao/TerminationToTerminated
Update ContainerState.Termination to ContainerState.Terminated
2015-05-29 14:51:09 -07:00
Rohit Jnagal d34d00c288 Merge pull request #8898 from brendandburns/tunnel
Move SSH code into a common util package.  Add support for SSH tunnels.
2015-05-29 14:48:37 -07:00
Rohit Jnagal ae8bc2c47b Merge pull request #8887 from brendandburns/balancer
Add event generation when create/delete of balancers fails.
2015-05-29 13:32:11 -07:00
Rohit Jnagal 3e98919a63 Merge pull request #8857 from andronat/fix_TestGetEtcdVersion_NotListening
fix TestGetEtcdVersion_NotListening
2015-05-29 13:25:02 -07:00
Rohit Jnagal 7813fb6e58 Merge pull request #8438 from tcnghia/master
Support glob wildcards for gcr.io credentials
2015-05-29 13:22:58 -07:00
Chao Xu 74f66b3c96 make the Container.Image field optional 2015-05-29 13:12:35 -07:00
Rohit Jnagal 11268baa92 Merge pull request #8804 from kargakis/expose-default-name-param
expose: Use separate parameters for default and custom name
2015-05-29 11:21:09 -07:00
Rohit Jnagal 51750a4680 Merge pull request #8724 from smarterclayton/preserve_ttl
TTL is not preserved automatically during edit
2015-05-29 11:12:00 -07:00
Rohit Jnagal 38c1fe112f Merge pull request #9006 from GoogleCloudPlatform/revert-8927-revert-8822-fifo_rc
Revert "Revert "Wake up rcs when pods get DeletionFinalStateUnknown t…
2015-05-29 11:11:38 -07:00
Nghia Tran 8b57b6fea6 Support glob wildcards for gcr.io credentials 2015-05-29 10:44:59 -07:00
Jeff Lowdermilk 754d3ce99e Kubernetes version v0.18.0 2015-05-29 09:41:41 -07:00
Jeff Lowdermilk 24712e8170 Kubernetes version v0.18.0-dev 2015-05-29 09:41:41 -07:00
Rohit Jnagal 50b9d6284a Merge pull request #8681 from vmarmol/system-container
Create a system container
2015-05-29 09:41:06 -07:00