Commit Graph

139 Commits (fb608070408f4d38c0239c9d4bbe2585c7852060)

Author SHA1 Message Date
Isaac Hollander McCreery 8b255feeee Add flaky label [Flaky] to tests 2015-12-22 12:29:57 -08:00
Isaac Hollander McCreery 14d9a0f2c8 Label slow tests [Slow] 2015-12-22 12:29:57 -08:00
Wojciech Tyczynski 960808bf08 Switch to versioned ListOptions in client. 2015-12-14 14:26:09 +01:00
Wojciech Tyczynski 6dcb689d4e Simplify List() signature in clients. 2015-12-03 09:54:07 +01:00
k8s-merge-robot 8a8639d7af Merge pull request #17863 from wojtek-t/only_list_options_in_watch
Auto commit by PR queue bot
2015-12-02 06:28:28 -08:00
Wojciech Tyczynski 8343c8ce6c Pass ListOptions to List() methods. 2015-12-01 15:00:36 +01:00
Wojciech Tyczynski d2dfc912e6 Simplify Watch() signature in clients. 2015-12-01 14:19:26 +01:00
Wojciech Tyczynski b6ef62af24 Use unversioned.ListOptions in clients. 2015-11-24 16:52:09 +01:00
Tim Hockin ba383bcfeb Refactor IntOrString into a new pkg
pkg/util/intstr is a cleaner encapsulation for this type and supporting
functions.  No behavioral change.
2015-11-16 10:57:52 -08:00
Matt Moore b750d1dddc Drop the beta for GCR v2 images.
beta.gcr.io is no longer needed to pull through v2.
2015-11-14 12:19:02 -08:00
Tim St. Clair 1e88a682da Add liveness/readiness probe parameters
- PeriodSeconds - How often to probe
- SuccessThreshold - Number of successful probes to go from failure to success state
- FailureThreshold - Number of failing probes to go from success to failure state

This commit includes to changes in behavior:

1. InitialDelaySeconds now defaults to 10 seconds, rather than the
kubelet sync interval (although that also defaults to 10 seconds).
2. Prober only retries on probe error, not failure. To compensate, the
default FailureThreshold is set to the maxRetries, 3.
2015-11-06 10:46:40 -08:00
Sam Abed d05a433956 remove back-off exponential test and adjust timing
Signed-off-by: Sam Abed <samsabed@gmail.com>
2015-10-29 15:47:01 +11:00
Wojciech Tyczynski f4d75e0a0a Support timeout in watch requests 2015-10-24 13:12:49 +02:00
Sam Abed 78979c77ce backoff e2e tests
Signed-off-by: Sam Abed <samsabed@gmail.com>
2015-10-16 13:09:29 +11:00
k8s-merge-robot 8580804f77 Merge pull request #15138 from mattmoor/limited-beta-rewrite
Auto commit by PR queue bot
2015-10-10 11:41:34 -07:00
k8s-merge-robot 02ec1fb33c Merge pull request #13885 from smarterclayton/websocket_exec
Auto commit by PR queue bot
2015-10-10 09:52:01 -07:00
Dr. Stefan Schimanski cb00df9b28 Tag conformance tests with a [Conformance] string in the description
- remove skip list from conformance-test.sh and filter by the new tag
- remove experimental api tests from conformance test suite
- remove all tests from conformance test suite which are either
  restricted to e.g. gce, gke, aws or require SSH
2015-10-09 23:14:43 +01:00
Clayton Coleman 363b616908 Expose exec and logs via WebSockets
Not all clients and systems can support SPDY protocols. This commit adds
support for two new websocket protocols, one to handle streaming of pod
logs from a pod, and the other to allow exec to be tunneled over
websocket.

Browser support for chunked encoding is still poor, and web consoles
that wish to show pod logs may need to make compromises to display the
output. The /pods/<name>/log endpoint now supports websocket upgrade to
the 'binary.k8s.io' subprotocol, which sends chunks of logs as binary to
the client. Messages are written as logs are streamed from the container
daemon, so flushing should be unaffected.

Browser support for raw communication over SDPY is not possible, and
some languages lack libraries for it and HTTP/2. The Kubelet supports
upgrade to WebSocket instead of SPDY, and will multiplex STDOUT/IN/ERR
over websockets by prepending each binary message with a single byte
representing the channel (0 for IN, 1 for OUT, and 2 for ERR). Because
framing on WebSockets suffers from head-of-line blocking, clients and
other server code should ensure that no particular stream blocks. An
alternative subprotocol 'base64.channel.k8s.io' base64 encodes the body
and uses '0'-'9' to represent the channel for ease of use in browsers.
2015-10-09 14:33:40 -04:00
Matt Moore eeb4eeb17c Move pause and fluentd-elasticsearch to GCR v2.
This scopes down the initially ambitious PR:
https://github.com/kubernetes/kubernetes/pull/14960 to replace just
`pause` and `fluentd-elasticsearch` to come through `beta.gcr.io`.

The v2 versions have been pushed under new tags, `pause:2.0` and
`fluentd-elastisearch:1.12`.

NOTE: `beta.gcr.io` will still serve images using v1 until they are repushed with v2.  Pulls through `gcr.io` will still work after pushing through `beta.gcr.io`, but will be served over v1 (via compat logic).
2015-10-06 16:39:07 -07:00
Yu-Ju Hong 5177e82d3a e2e: restore the test for monotonically increasing restart count
The test was disabled because sometimes restart count could not reach the
target before timeout. This change lowers the target restart count, increases
the timeout threshold to 5 minutes, and adds the test to the SLOW suite.
Running the test in a local cluster takes ~1m40s to complete.
2015-09-29 17:22:12 -07:00
Wojciech Tyczynski 53ae56f205 Replace "minion" with "node" in bunch of places. 2015-09-14 11:07:11 +02:00
Clayton Coleman f9590a33fd Enable graceful deletion by enabling pods 2015-08-30 18:25:53 -04:00
Yu-Ju Hong 3221663a50 e2e: skip restart count test 2015-08-27 10:10:40 -07:00
Yu-Ju Hong fb3c8c5bcc e2e: add a test to ensure restart count increments monotonically 2015-08-24 12:50:15 -07:00
Clayton Coleman 9267f829eb Update tests to prepare for graceful deletion
For cases where we want to immediately cleanup the pod, start using
gracePeriod 0 in test cases.
2015-08-19 22:20:29 -04:00
Robert Bailey 08e6a43c1d Revert "Merge pull request #9165 from smarterclayton/graceful"
This reverts commit 4f856b595d, reversing
changes made to d78525a83b.

Conflicts:
	pkg/kubelet/status_manager.go
2015-08-18 17:34:49 -07:00
Kris Rousey ae6c64d9bb Moving everyone to unversioned client 2015-08-18 10:23:03 -07:00
Clayton Coleman b842a7dd15 Revert "Revert "Gracefully delete pods from the Kubelet""
This reverts commit 98115facfd.
2015-08-18 08:57:02 -04:00
Clayton Coleman e623d33343 e2e test cases should clean up more effectively
Graceful deletion exposes weakness in cleanup paths, add
common hooks for waiting for namespcae deletion to complete,
use direct delection where necessary, and add some debug output
for finding cleanup flags (namespaces that aren't fully deleted)
2015-08-10 19:02:39 -04:00
Brendan Burns 5be9ff70af Add a negative test for HTTP health checks 2015-08-06 21:22:31 -07:00
Mike Danese 8e33cbfa28 rewrite go imports 2015-08-05 17:30:03 -07:00
Max Forbes e704004a53 Change Fail(fmt.Sprintf(...)) to Failf(...) 2015-07-23 16:03:34 -07:00
Max Forbes a4112ded7b Make liveness test faster 2015-07-23 14:56:04 -07:00
Wojciech Tyczynski 959477463f Migrate tests to non-default namespaces 2015-07-23 12:04:10 +02:00
Wojciech Tyczynski b96d2296b4 Delete namespace after test 2015-07-03 11:04:32 +02:00
Jordan Liggitt ecebac9395 Add option to require API tokens to exist in admission 2015-06-30 16:12:45 -04:00
He Simei 912e54789e Enhance test api to support test cases involved multiple containers 2015-06-25 09:29:19 +08:00
Brendan Burns c3f4b3ff97 Switch to the gcr nginx container in a few remaining places. 2015-06-16 11:49:36 -07:00
Brendan Burns 3b034a8293 Add a test that verifies pods with resource limits schedule. 2015-06-09 15:21:27 -07:00
Filip Grzadkowski 98115facfd Revert "Gracefully delete pods from the Kubelet" 2015-06-02 23:40:05 +02:00
Clayton Coleman f1eaa8a27b Delete resources immediately from e2e tests 2015-06-01 19:24:02 -04:00
derekwaynecarr 3e8b1d5e01 Update all salt providers to force explicit namespace creation; update e2e 2015-05-28 13:45:49 -04:00
Quinton Hoole 14665119b4 Revert "improve e2e retry logic with standard wait.Poll()" 2015-05-19 11:17:32 -07:00
He Simei 09fc2a5013 improve retry logic with standard wait.Poll()
Signed-off-by: He Simei <hesimei@zju.edu.cn>
2015-05-19 21:31:27 +08:00
Brendan Burns c9324e6e38 Switch exec to look at exit code not output status. 2015-05-08 16:51:37 -07:00
Vishnu Kannan 18b3d34b18 Adding an integration test to verify success case for exec liveness probes. 2015-05-04 16:19:36 -07:00
Eric Paris 6b3a6e6b98 Make copyright ownership statement generic
Instead of saying "Google Inc." (which is not always correct) say "The
Kubernetes Authors", which is generic.
2015-05-01 17:49:56 -04:00
Piotr Szczesniak 11a2dc496f Added TerminationGracePeriod field to PodSpec and grace-period flag to kubectl stop
Those are changes which touch users required by Termination Notice

Addresses #6804
2015-04-30 18:00:33 +02:00
Quinton Hoole 7433d10104 Retry pod update on version conflict error in e2e test. 2015-04-24 11:49:23 -07:00
Ravi Gadde bf8f258471 Added field selector for listing pods. 2015-04-21 06:33:28 -07:00
Tim Hockin c2bacd588d Stop using dockerfile/* images
As per
http://blog.docker.com/2015/03/updates-available-to-popular-repos-update-your-images/
docker has stopped answering dockerfile/redis and dockerfile/nginx.  Fix all
users in our tree.  Sadly this means a lot of published examples are now broken.
2015-04-16 12:20:43 -07:00
Quinton Hoole 8edcdc8c6c Mark HostIP e2e test pending due to #6558. 2015-04-14 16:58:08 -07:00
Quinton Hoole 4a20101a8d Add an e2e test that pods get a host IP 2015-04-13 20:20:48 -07:00
Jeff Lowdermilk 7abcba9017 Use an up-to-date nginx image for e2e tests 2015-04-02 10:15:20 -07:00
Satnam Singh 3c119c008d Convert kubernetes/serve_hostname to gcr.io/google_containers/server_hostname 2015-04-01 15:39:05 -07:00
Jeff Lowdermilk 2d8e93f8b4 e2e images pulled from gcr.io 2015-04-01 09:18:03 -07:00
Victor Marmol d80ac514df Merge pull request #6224 from pmorie/e2e-refactor
Extract testContainerOutput method from e2e tests
2015-03-31 14:45:02 -07:00
Paul Morie 0efe5e7872 Extract testContainerOutput method from e2e tests 2015-03-31 15:41:56 -04:00
Tim Hockin 186818d787 WIP: Implement multi-port Services 2015-03-30 19:28:11 -07:00
Piotr Szczesniak 31901ed9d0 Changed PodInfo to be a list
This change is to make API consistent with our convention.

Fixes #3622
2015-03-26 10:15:25 +01:00
Tim Hockin 4375376e9c Rename Service.ContainerPort to TargetPort in v1b3
Fix all callers and examples.  Part of multi-port service cleanup.
2015-03-20 13:50:06 -07:00
Salvatore Dario Minonne 31ddefc347 Finalize fields.Selector 2015-03-17 22:55:43 +01:00
Dawn Chen 34e9c82c70 Convert RestartPolicy to string for v1beta3.
Fixed #3607 and spiritually support #5475
2015-03-13 18:38:07 -07:00
Jerzy Szczepkowski f24531c88e Fixed pods e2e test.
Fixed pods e2e test. The test was failing due to PR #5256.
2015-03-12 14:05:50 +01:00
Jerzy Szczepkowski 0342ba3476 Watch support in PodInterface.
Added Watch support to PodInterface. Extended pods e2e to test watch. Resolves #4777.
2015-03-10 09:45:44 +01:00
Jeff Lowdermilk 083f29158f Make e2e pod start timeouts uniform 2015-03-05 15:54:45 -08:00
Tim Hockin ea548b8260 Rename type Port to ContainerPort
Sadly I had to do this by hand - I just could not get gorename to fix up
users of it.
2015-02-27 21:05:59 -08:00
Daniel Smith 650f6cb826 Revert "Multi-port Endpoints" 2015-02-23 13:53:21 -08:00
Daniel Smith 502f040129 Merge pull request #4712 from thockin/plural_30_endpoints
Multi-port Endpoints
2015-02-23 13:48:37 -08:00
Zach Loafman 490624cfb7 Merge pull request #4631 from fabioy/fix-pods.go
Move the various "defer" calls before the creation in pods.go e2e test.
2015-02-23 09:55:14 -08:00
Tim Hockin e0fd83096c Rename type Port to ContainerPort
Sadly I had to do this by hand - I just could not get gorename to fix up
users of it.
2015-02-21 22:26:38 -08:00
Andy Goldstein 5bd0e9ab05 Add streaming command execution & port forwarding
Add streaming command execution & port forwarding via HTTP connection
upgrades (currently using SPDY).
2015-02-20 09:57:02 -05:00
Fabio Yeon 2944334db1 Move the various "defer" calls before the creation in pods.go e2e test. 2015-02-19 15:26:40 -08:00
Brendan Burns c83c571cc7 Remove hostPort from several tests. 2015-02-18 16:11:46 -08:00
Jeff Lowdermilk 6c3166ad13 Deflake Pods should contain environment variables for services 2015-02-13 17:58:29 -08:00
Brendan Burns a2beba5ace Add some retry to envvar log gathering. 2015-02-13 09:35:22 -08:00
Zach Loafman 6117592905 Add expectNoError helper to handle Expect(err).NotTo(HaveOccurred()) meme
And convert one file
2015-02-12 11:34:07 -08:00
Zach Loafman 9774e9bb7b Remove unnecessary GinkgoDefer()s 2015-02-12 11:33:33 -08:00
Robert Rati 979ecf42d2 Moved liveness tests into the pod suite #4253 2015-02-10 13:47:48 -05:00
Zach Loafman fe838fca64 Convert waitForPodSuccess to error form, glog->By
* Also add variable timeout as well
* And nail in coffin for glog in this file!
2015-02-09 07:48:07 -08:00
Zach Loafman 2e4a1e910b Change loadClientOrDie to return an error
Also remove a bunch of dead code. This is a step along the path to
getting rid of all the glog in util.go.
2015-02-09 07:14:52 -08:00
Zach Loafman 2be3139926 Add a timeout to waitForPodRunning
* Add a timeout, convert the function to return an error (which gives
a reasonable status message for callers).
* Start converting glog to By.
2015-02-09 06:36:53 -08:00
Satnam Singh 9ec61ce355 Merge pull request #4004 from filbranden/e2e_podsvcenv_remove_embedded_json
Use api.Pod and api.Service objects instead of JSON snippets
2015-02-04 14:49:24 -08:00
Robert Rati 50467043d5 Converted test in pods suite to use native Go definition of the api.Pod #4070 2015-02-03 15:29:23 -05:00
Filipe Brandenburger f1c354981e Use api.Pod and api.Service objects instead of JSON snippets
Start to use unique names for the pods and services. Later, we will
replace that by the use of namespaces.

We are also discussing using a versioned api, however that refactor can
happen on a follow up commit as well.

Tested by running cmd/e2e -t Pods against an API server in GCE.
2015-02-03 11:19:10 -08:00
Robert Rati 3a562b18a7 Moved TestPodHasServiceEnvVars into the pods test suite and deleted the
original file #3941
2015-02-03 09:17:14 -05:00
Robert Rati eb5d340851 Added a submit/remove test to pods #3941 2015-02-03 09:17:14 -05:00
Robert Rati e47b98db29 Converted TestPodUpdate to native ginkgo syntax #3941 2015-02-03 09:17:12 -05:00
Robert Rati 44510e11ac Renamed the pod_update file to pods #3941 2015-02-03 08:50:46 -05:00