Commit Graph

7414 Commits

Author SHA1 Message Date
Charles Butler
5acce1b245 Implement the feedback from filbranden
- Changed check_for_ppa to be parameterized
- Added bash strictmode
- refactored the package_status method to consume variables and be a bit
  nicer to future re-use of the method.
- Cut out extra echo -n statements in favor of tr -d or native awk
- Refactored branching logic paths to leverage double brackets
- normalized local variable annotation
- Updated globals to be all CAPS
- remainder of filbrandens feedback in validate-cluster.sh
2015-03-16 18:35:33 -04:00
Charles Butler
ea0978f4f2 Adds JUJU to the Kubernetes Provider listing
This feature adds Juju provisioning to the kube-up script. It currently
parses out the pre-requisits on debian/ubuntu based systems and installs
them if they are missing.

From there we followed the integration path that was found in the
libvirt-coreos path, implementing the methods found in the boilerplate
and calling juju service calls. There are a few "arbitrary sleeps" in
the code to allow the cloud provider to settle and properly deploy.
These are work-around cases from the script executing faster than juju
was able to communicate from the state server to subsequent nodes. I
left comments inline at these points.

To exercise this:

    export KUBERNETES_PROVIDER=juju
    cluster/kube-up.sh

It will spin up a ref arch with 1 Kubernetes Master, 2 minions, and run
the cluster validation checks against the deployment. Bridging the gap
between the juju specific bits and the upstream recommended guides for
getting started with Juju.

To note, if you do not have a "current environment" set in Juju, it will
spin up the quickstart integration wizard in interactive mode, allowing
you to configure juju, and add the proper provider/use it. Otherwise it
assumes you're in the provider you wish to use, and will deploy there.
2015-03-12 19:34:03 -04:00
Brian Grant
7d72b64f60 Merge pull request #5200 from nikhiljindal/eventConverter
Adding conversion functions for event field selectors
2015-03-12 16:31:57 -07:00
Brian Grant
98fedf6b2e Merge pull request #5407 from nikhiljindal/newSwagger
Updating go-restful to the latest version
2015-03-12 16:26:16 -07:00
Brian Grant
1bf9794a3c Merge pull request #5409 from saad-ali/fixstatusdoctypo
Fix typos in api-conventions.md
2015-03-12 16:25:33 -07:00
Victor Marmol
a82dd05bf1 Merge pull request #5338 from erictune/integ_test_typo
Fix log messages and var names in integr test
2015-03-12 16:22:12 -07:00
nikhiljindal
b2276b5d4b Updating pkg/api/validation/ to consider swagger.items as object and not array 2015-03-12 16:04:11 -07:00
saadali
cb44c0d6aa Fix typos in api-conventions.md 2015-03-12 16:02:01 -07:00
Nikhil Jindal
d9249a26e0 Merge pull request #5175 from thockin/plural_services_10
Make testing service validation easier
2015-03-12 15:48:37 -07:00
Brian Grant
f8ef90ef05 Merge pull request #5350 from saad-ali/fixstatusdoc
Add documentation for API Status Kind
2015-03-12 15:47:25 -07:00
Satnam Singh
d0768332f2 Merge pull request #5274 from lavalamp/fix4
Add 'thrash' test that starts and stops a bunch of rc's in parallel
2015-03-12 15:29:31 -07:00
saadali
024460e147 Add documentation for API Status Kind 2015-03-12 15:16:11 -07:00
nikhiljindal
e11f62cfcf Updating go-restful to the latest version 2015-03-12 15:13:21 -07:00
Eric Tune
9dab6017ff Merge pull request #5111 from erictune/conformance_test
First cut at a "conformance test".
2015-03-12 15:12:58 -07:00
Deyuan Deng
ae162fded4 Merge pull request #4585 from pravisankar/deactivate-node
Allow admin user to explicitly unschedule the node
2015-03-12 18:09:02 -04:00
Eric Tune
12c71585f7 Merge pull request #5276 from ddysher/remove-etcd-servers
Remove etcd_servers from test-cmd
2015-03-12 14:55:32 -07:00
Satnam Singh
b5082b2904 Merge pull request #5397 from brendandburns/master
Fix tests on OS X by re-introducing the old choose host interface
2015-03-12 14:31:31 -07:00
Ravi Sankar Penta
b0efb7a061 Updated swagger spec 2015-03-12 14:30:00 -07:00
Ravi Sankar Penta
f6ecec5880 Allow admin user to explicitly unschedule the node
Setting Unschedulable on the node will not touch any existing pods
on the node but will block scheduling of new pods on the node.
2015-03-12 14:27:27 -07:00
Zach Loafman
82d970a42f Merge pull request #5406 from brendandburns/e2e2
Add MASTER_IP_RANGE to e2e.
2015-03-12 14:27:03 -07:00
Brendan Burns
5d9fe6212c Add MASTER_IP_RANGE to e2e. 2015-03-12 14:22:03 -07:00
Eric Tune
cf22810ffc This is a combination of 2 commits.
Fix log messages and var names in integr test

It says "pods" where the things are actually "containers".
2015-03-12 14:10:52 -07:00
nikhiljindal
790a8bbd23 Adding conversion functions for event field selectors 2015-03-12 14:10:51 -07:00
Eric Tune
72945955ae First cut at a "conformance test".
A conformance test is a test you run against a cluster that is already
set up.  We would use it to test a hosted kubernetes service to make
sure that it meets a bar for quality.  Also, a getting-started-guide
author, who has not implemented a complete set of cluster/...
scripts (that is, the getting-started-guide has some non-automated steps)
can use this to see which e2e tests pass on a cluster.

To be done in future PRs:
- disable tests which can't possibly run in a conformance test
  because they require things like cluster ssh.
- document that when we accept a getting-started-guide, that
  people should run the conformance test against their cluster
  (unless they already have cluster/... scripts.

I ran this against a GCE cluster and 22 tests passed.
2015-03-12 14:04:02 -07:00
Brian Grant
07c2035630 Merge pull request #5266 from erictune/audiences
User, Admin, and Developer guides.
2015-03-12 13:41:32 -07:00
Satnam Singh
983192828a Merge pull request #5396 from zmerlynn/conditional_disk
Infer KUBERNETES_MASTER from hostname rather than requiring it to be explicit
2015-03-12 13:14:01 -07:00
Dawn Chen
ee4e887183 Merge pull request #5395 from vmarmol/fix
Garbage collect unidentified Kubernetes containers.
2015-03-12 12:58:22 -07:00
Brendan Burns
fab2b53ccf Fix tests on OS X by re-introducing the old choose host interface
function as a fall back.
2015-03-12 12:33:06 -07:00
Zach Loafman
9fc5262c14 Infer KUBERNETES_MASTER from hostname rather than requiring it to be explicit
This allows GKE to have the same YAML on both the master and nodes
2015-03-12 11:51:21 -07:00
Satnam Singh
4420e0452e Merge pull request #5391 from justinsb/aws_options_doc
Initial WIP on documenting options for AWS clusters
2015-03-12 11:42:19 -07:00
Satnam Singh
e16bcceceb Merge pull request #5390 from brendandburns/shell_sucks
Configure docker on the master like we do on workers.
2015-03-12 11:42:03 -07:00
Victor Marmol
51122998e3 Garbage collect unidentified Kubernetes containers.
These containers may be caused by a change in the Kubernetes naming
convention. The old containers are killed, the new ones started, but the
old ones are never GC'd. This change makes Kubelet GC all Kubernetes
containers, old and new.

Fixes #5372.
2015-03-12 11:40:35 -07:00
Satnam Singh
27c77567d9 Merge pull request #5342 from nikhiljindal/masterUrl
Adding http:// prefix to the swagger WebServicesURL to prevent basePath validation errors
2015-03-12 10:58:36 -07:00
Brian Grant
19b6c85fa5 Merge pull request #5363 from wojtek-t/no_bound_pods_in_scheduler
Make scheduler to watch PodSpec.Host instead Status.Host
2015-03-12 10:57:03 -07:00
Justin Santa Barbara
84314d3206 Initial WIP on documenting options for AWS clusters
Very incomplete, but a start.
2015-03-12 13:54:37 -04:00
Brian Grant
c0b8dc503f Merge pull request #5062 from ArtfulCoder/doc
Updated gce-pd and redis examples to use v1beta3
2015-03-12 10:49:20 -07:00
Satnam Singh
6a0bfd7ef5 Merge pull request #5387 from rrati/density-cleanup-fix-5385
Fixed issue with the density test failing after a successful run because...
2015-03-12 10:48:32 -07:00
Brendan Burns
17ff8fb421 Configure docker on the master like we do on workers. 2015-03-12 10:37:30 -07:00
Alex Robinson
55ed70f723 Merge pull request #5382 from justinsb/aws_image_by_region
Choose AWS image by region
2015-03-12 10:31:00 -07:00
Victor Marmol
2939abb6cb Merge pull request #5383 from wojtek-t/kubelet_test
Speedup pkg/kubelet/runonce_test.go
2015-03-12 10:22:03 -07:00
Alex Robinson
bc655681fe Merge pull request #5352 from zmerlynn/conditional_disk
Don't always run mount-master-pd
2015-03-12 10:19:04 -07:00
Alex Robinson
32fbce0707 Merge pull request #5375 from bprashanth/delete_lb
Don't check status of a failed delete operation
2015-03-12 09:57:35 -07:00
Alex Robinson
4ad0ec365e Merge pull request #5378 from justinsb/aws_instance_type
Allow the AWS instance type to be specified via MASTER_SIZE, MINION_SIZE
2015-03-12 09:55:06 -07:00
Alex Robinson
9344934637 Merge pull request #5377 from justinsb/aws_s3_not_world_readable
Don't make the s3 bucket world-readable (just the files)
2015-03-12 09:52:38 -07:00
roberthbailey
d3b0c86624 Merge pull request #5380 from justinsb/clarify_aws_comment
Clarify comment
2015-03-12 17:43:43 +01:00
Alex Robinson
bc60b54030 Merge pull request #5386 from vmarmol/fix
Use time.Sleep() instead of <-time.After().
2015-03-12 09:41:11 -07:00
Robert Rati
3c9a9a4fb0 Fixed issue with the density test failing after a successful run because of
a failure to cleanup #5385
2015-03-12 12:29:00 -04:00
Victor Marmol
f9d2ab6e48 Use time.Sleep() instead of <-time.After(). 2015-03-12 09:25:09 -07:00
Wojciech Tyczynski
dca3db0a50 Speedup pkg/kubelet/runonce_test.go 2015-03-12 17:12:04 +01:00
Justin Santa Barbara
70b448b5d0 Choose AWS image by region
Also update to the latest LTS image (fewer security updates needed)
2015-03-12 12:05:45 -04:00