Chao Xu
9fc79e9d99
refactor testapi and test scripts to prepare for multiple API groups.
2015-09-04 18:01:32 -07:00
Quinton Hoole
e4fbfa9777
Merge pull request #13025 from pires/example_elasticsearch
...
Revamped Elasticsearch example
2015-09-04 12:28:17 -07:00
Quinton Hoole
a66087c83f
Remove service latency e2e test from the flaky bucket.
2015-09-04 11:52:59 -07:00
Quinton Hoole
eff8ea2432
Banish some more Services e2e tests to flaky in parallel.
2015-09-04 08:44:34 -07:00
Piotr Szczesniak
47af1a0c9b
Merge pull request #13421 from mesosphere/optout_pod_resource_constraints
...
MESOS: Add --contain-pod-resources flag to determine how k8s-mesos will contain pod resources
2015-09-04 13:43:22 +02:00
Piotr Szczesniak
48b9c365c7
Merge pull request #13308 from timothysc/watch-cache-disable
...
Plumb through configuration option to disable watch cache
2015-09-04 13:40:46 +02:00
Paulo Pires
0a64995b7b
Revamped Elasticsearch example that now uses an Alpine Linux container with JRE 8u51 and Elasticsearch 1.7.1.
...
Replaced Go discovery mechanism for Elasticsearch discovery plug-in that supports Kubernetes.
2015-09-04 09:39:14 +01:00
Jerzy Szczepkowski
2684018bb5
Configurations of jenkins e2e cluster and default private e2e cluster made consistent.
...
Configurations of jenkins e2e cluster and default private e2e cluster made consistent.
2015-09-04 09:15:01 +02:00
Piotr Szczesniak
97abc950db
Merge pull request #13526 from ixdy/jenkins-build-test
...
Don't override KUBE_RELEASE_RUN_TESTS if set in enviroment
2015-09-04 09:06:31 +02:00
James DeFelice
a1cea8dd87
Flexible resource accounting and pod resource containment:
...
- new: introduce AllocationStrategy, Predicate, and Procurement to scheduler pkg
- new: --contain-pod-resources flag (workaround for docker+systemd+mesos problems)
- new: --account-for-pod-resources flag (for testing overcommitment)
- bugfix: forward -v flag from minion controller to executor
2015-09-04 00:49:13 +00:00
Abhi Shah
c9f2d3151b
Merge pull request #13155 from derekwaynecarr/enforce_limits
...
Map cpu limits to cpu-quota in docker run
2015-09-03 16:28:04 -07:00
Quinton Hoole
ea6238ddc3
Remove redundant filter from e2e-gce-parallel test job.
2015-09-03 15:54:12 -07:00
k8s-merge-robot
d1c7a5f04e
Merge pull request #13362 from mesosphere/proxy-runtime
...
Auto commit by PR queue bot
2015-09-03 15:26:56 -07:00
Avesh Agarwal
f0d0e2a089
Remove unused api-rate and api-burst params.
2015-09-03 17:57:35 -04:00
Quinton Hoole
e76e0477f2
Make PR builder and e2e-gce-parallel e2e runs use the same number of nodes.
2015-09-03 11:48:52 -07:00
derekwaynecarr
5dc74e8dbf
Add support for CFS quota in kubelet
2015-09-03 13:44:28 -04:00
Jeff Grafton
e3bb7834d9
Don't override KUBE_RELEASE_RUN_TESTS if set in enviroment
2015-09-02 14:37:15 -07:00
Chao Xu
530a9a0238
cover expapi when genereate types_swagger_doc_generated.go
2015-09-02 10:01:40 -07:00
Marcin Wielgus
77e2d4f918
Merge pull request #13132 from piosz/initial
...
Implemented first version of InitialResources plugin.
2015-09-02 13:11:35 +02:00
Marcin Wielgus
f7bb05f58e
Merge pull request #13504 from Huawei-PaaS/fix_heapster_cadvisor_port
...
Fix a typo `-cadvisor_port` to `--cadvisor-port`
2015-09-02 12:13:49 +02:00
qiaolei
d2a0f2b66f
Fix a typo -cadvisor_port
to --cadvisor-port
...
Where `-cadvisor_port` should be `--cadvisor-port`
2015-09-02 17:52:52 +00:00
James DeFelice
7fbd290167
moved cgroup-root detection to minion service; kube proxy now configured to run in mesos container
2015-09-02 06:13:26 +00:00
k8s-merge-robot
0a062c5b24
Merge pull request #11942 from ironcladlou/rolling-update-availability
...
Auto commit by PR queue bot
2015-09-01 16:51:13 -07:00
Dan Mace
da5e4d7bd5
Rolling updater availability enhancements
...
Enhance the rolling updater to support maintaining minimum pod
availability for the duration of the update process.
2015-09-01 12:54:08 -04:00
Piotr Szczesniak
7967642cf0
Implemented first version of InitialResources plugin.
2015-09-01 17:24:13 +02:00
Quinton Hoole
5b853a2384
Skip GCE_SKIP and GCE_FLAKY e2e tests when soak testing.
2015-08-31 14:58:50 -07:00
k8s-merge-robot
de60651cc0
Merge pull request #12858 from MatMaul/master
...
Auto commit by PR queue bot
2015-08-30 21:46:50 -07:00
k8s-merge-robot
4a7115d272
Merge pull request #11955 from pedro-r-marques/flag_resolv_conf
...
Auto commit by PR queue bot
2015-08-30 21:03:54 -07:00
k8s-merge-robot
8925363863
Merge pull request #13325 from quinton-hoole/2015-08-28-move-slow-e2e-tests
...
Auto commit by PR queue bot
2015-08-28 21:26:40 -07:00
k8s-merge-robot
b6e355d2d3
Merge pull request #13142 from jszczepkowski/exp-flag
...
Auto commit by PR queue bot
2015-08-28 17:08:06 -07:00
Quinton Hoole
ac52c996aa
Add a regex and Jenkins job for slow e2e tests.
2015-08-28 17:08:02 -07:00
k8s-merge-robot
66f71bafe1
Merge pull request #13114 from ixdy/test-go-junit-report
...
Auto commit by PR queue bot
2015-08-28 16:22:30 -07:00
k8s-merge-robot
8cf3d1a792
Merge pull request #13050 from mesosphere/minion-path
...
Auto commit by PR queue bot
2015-08-28 10:46:26 -07:00
Timothy St. Clair
2145371c45
Plumb through configuration option to disable watch cache
...
because we are seeing anomolies on our cluster.
2015-08-28 12:36:40 -05:00
k8s-merge-robot
721afd6f74
Merge pull request #13197 from soltysh/fix_local_up2
...
Auto commit by PR queue bot
2015-08-28 02:25:18 -07:00
Wojciech Tyczynski
9bdc85a228
Merge pull request #13292 from saad-ali/actuallyFix13257
...
Move E2E PD Test out of flaky
2015-08-28 09:13:33 +02:00
saadali
33b5616ebc
Fix E2E Test "Pod Disks should schedule a pod w/ a RW PD, remove it, then schedule it on another host" out of flaky
2015-08-27 21:39:46 -07:00
Dr. Stefan Schimanski
cac58f6db7
Add --path-override to minion to change the PATH env var of subprocesses;
...
pass hostname-override through to kube-proxy (if defined)
2015-08-27 22:57:04 +00:00
Quinton Hoole
be1d01e2e4
Don't run flaky e2e tests in parallel test runs.
2015-08-27 10:26:06 -07:00
Piotr Szczesniak
4ef108a92d
Moved failing tests to the flaky suite on Jenkins
2015-08-27 15:26:25 +02:00
Yu-Ju Hong
3789da1473
e2e: mark the restart count test flaky
2015-08-26 16:28:00 -07:00
Pedro Roque Marques
99b1da848d
Add kubelet '--resolv-conf' flag.
...
Allow the user to specify the resolver configuration file that is used
to determine the default DNS parameters. This defaults to the system's
/etc/resolv.conf.
2015-08-26 15:41:36 -07:00
Jeff Grafton
75294b7a38
Add option to save unit test results as JUnit XML for Shippable
2015-08-26 15:26:51 -07:00
Maciej Szulik
7edb1afad6
Fixed typo in verify-flags-underscore
2015-08-26 13:29:10 +02:00
Maciej Szulik
4caa5e80b1
Updated deprecated flags (address and port). Added an option to pass runtime-config.
2015-08-26 13:28:40 +02:00
Piotr Szczesniak
99b9de9d76
Started running Autoscaling e2e test on dedicated Jenkins job
2015-08-26 12:12:51 +02:00
Mathieu Velten
57f18a0e04
Add a dockercfg_path parameter to the Mesos scheduler (the main purpose is to handle private repos auth).
...
This is implemented by copying the dockercfg file in the executor work directory.
2015-08-26 11:21:08 +02:00
Yu-Ju Hong
ac97aed837
Revert "Updated deprecated flags (address and port). Added an option to pass runtime-config."
2015-08-25 14:45:06 -07:00
Yu-Ju Hong
a74bea7f32
Merge pull request #13094 from soltysh/fix_local_up
...
Updated deprecated flags (address and port). Added an option to pass runtime-config.
2015-08-25 14:31:57 -07:00
Jerzy Szczepkowski
2de49358ab
Added flags for horizontal pod autoscaler to controller-manager.
...
Added flags for horizontal pod autoscaler to controller-manager.
2015-08-25 17:28:17 +02:00
Eric Paris
03f4e52812
Make verify-flags-underscore.py return error on failure
...
We were running it in shippable and travis, but since it didn't return
an error it wasn't actually catching things.
2015-08-24 22:12:17 -05:00
Jeff Grafton
22cba0f86e
Use GCE defaults for per-PR Jenkins
2015-08-24 15:49:59 -07:00
Nikhil Jindal
9eb0970bdb
Merge pull request #13091 from mesosphere/python-set-sort
...
Fix sort on sets in hack/verify-flags-underscore.py
2015-08-24 14:07:12 -07:00
Nikhil Jindal
4e51cb2a86
Merge pull request #13090 from mesosphere/finally-undefined
...
Fix undefined variable f in 'finally' clause of verify-flags-underscore
2015-08-24 14:06:59 -07:00
Maciej Szulik
5bc93e0eb4
Updated deprecated flags (address and port). Added an option to pass runtime-config.
2015-08-24 21:43:16 +02:00
Nikhil Jindal
a09425d828
Merge pull request #10933 from andronat/swagger_auto_type_docs
...
Automatic Generation of Swagger Documentation in Types
2015-08-24 10:35:58 -07:00
Dr. Stefan Schimanski
211fe33f40
Fix undefined variable f in 'finally' clause of verify-flags-underscore.py
2015-08-24 16:36:52 +02:00
Dr. Stefan Schimanski
ce013e288c
Fix sort on sets in hack/verify-flags-underscore.py
2015-08-24 15:06:33 +02:00
Zach Loafman
30a1fb06c7
Merge pull request #10957 from yifan-gu/oidc
...
plugin/pkg/auth: add OpenID Connect token authenticator
2015-08-21 18:51:04 -07:00
Anastasis Andronidis
10747841a0
move type documentation from tags to comments
2015-08-22 03:24:35 +02:00
Anastasis Andronidis
e27a76ae81
hack and hooks scripts for generating swagger docs
2015-08-22 02:27:41 +02:00
Anastasis Andronidis
9f21ae21e8
swagger type documentation generator
2015-08-22 02:26:03 +02:00
Zach Loafman
29369b0dde
Merge pull request #13030 from justinsb/aws_jenkins_parallel
...
AWS: e2e: change instance default size, create kubernetes-e2e-aws-parallel
2015-08-21 16:06:56 -07:00
Zach Loafman
0a8291505a
Merge pull request #9234 from ZJU-SEL/fix-e2e-test-hostdir
...
fix e2e hostdir test
2015-08-21 15:51:42 -07:00
Yifan Gu
6376e41850
plugin/pkg/auth: add OpenID Connect token authenticator.
...
Also add related new flags to apiserver:
"--oidc-issuer-url", "--oidc-client-id", "--oidc-ca-file", "--oidc-username-claim",
to enable OpenID Connect authentication.
2015-08-21 15:27:08 -07:00
Zach Loafman
afc35742de
Merge pull request #12981 from BenTheElder/iptables_cleanup
...
Add --cleanup-iptables flag to kube-proxy
2015-08-21 14:36:31 -07:00
Zach Loafman
21b1453f25
Revert "Promoted Autoscaling e2e tests to standard suite"
2015-08-21 13:21:53 -07:00
Zach Loafman
86a10a142c
Merge pull request #12950 from ixdy/coveralls
...
Enable reporting test coverage to Coveralls from Shippable and disable per-PR coverage
2015-08-21 11:45:55 -07:00
BenTheElder
81ab51709a
Add --cleanup-iptables flag to kube-proxy
...
Adds a flag to cleanup iptables rules created by kube-proxy per
https://github.com/mesosphere/kubernetes-mesos/issues/353#issuecomment-1
27382832
2015-08-21 14:44:11 -04:00
Justin Santa Barbara
e7ce72cf35
AWS: Add kubernetes-e2e-aws-parallel for Jenkins
...
This should allow us to run tests on AWS much faster.
2015-08-21 10:24:05 -04:00
Jerzy Szczepkowski
3df1b9e151
Merge pull request #12986 from BenTheElder/masquerade_all_flag
...
Add flag to masquerade all in kube-proxy when using iptables proxier
2015-08-21 10:28:07 +02:00
Piotr Szczesniak
e485a6ca45
Promoted Autoscaling e2e tests to standard suite
2015-08-21 09:59:49 +02:00
k8s-merge-robot
1a18588a60
Merge pull request #12960 from smarterclayton/network_tester
...
Auto commit by PR queue bot
2015-08-20 22:44:30 -07:00
Saad Ali
93ffc9c57e
Merge pull request #12992 from pmorie/description_checker
...
Make description checker check for descriptions in internal API
2015-08-20 17:32:44 -07:00
BenTheElder
1f2076ce64
Add flag to masquerade all in kube-proxy when using iptables proxier
2015-08-20 20:12:32 -04:00
Abhishek Shah
b6b8e99393
External IPs support.
2015-08-20 16:10:01 -07:00
Saad Ali
9b01580946
Merge pull request #12872 from runningwild/master
...
Fix several problems with using rkt on gce
2015-08-20 15:46:16 -07:00
Jeff Grafton
6f548cf5be
Enable reporting test coverage to Coveralls from Shippable
...
However, enable coverage collection only on merges - not on pull
requests.
2015-08-20 15:34:20 -07:00
Saad Ali
e8009e828c
Merge pull request #12632 from erictune/conformance-master-2
...
Add generic master detector; simplify conformance.
2015-08-20 14:32:36 -07:00
Saad Ali
489e75e073
Merge pull request #12202 from daizuozhuo/kubectl
...
add jsonpath to kubectl
2015-08-20 14:31:45 -07:00
Paul Morie
2dceb28444
Make description checker check for descriptions in internal API
2015-08-20 15:55:05 -04: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
Clayton Coleman
9ee7b76bba
Allow testing graceful shutdown via network-tester
2015-08-19 22:06:37 -04:00
Dai Zuozhuo
b61a905b19
add jsonpath to kubectl
2015-08-20 08:57:24 +08:00
He Simei
faeb45d69f
fix host dir, to test volume r/w with different containers within a pod
...
Signed-off-by: He Simei <hesimei@zju.edu.cn>
2015-08-20 08:55:19 +08:00
Saad Ali
8a43bd621e
Merge pull request #12745 from eparis/even-less-dash-false-positive
...
verify-flags-underscore.py: Even fewer dash false positives
2015-08-19 17:03:29 -07:00
Saad Ali
ee89f55bb9
Merge pull request #12188 from eparis/godeps-clean-test
...
verify-godeps.sh script to make sure all of Godeps is easily reproducible
2015-08-19 16:57:22 -07:00
Saad Ali
bce79d1368
Merge pull request #12850 from wojtek-t/scalability_suite_verbosity
...
Reduce logs verbosity in scalability tests
2015-08-19 15:37:58 -07:00
Saad Ali
14eadcccac
Merge pull request #12521 from feihujiang/kubectlScaleAcceptFileNameParam
...
Kubectl scale command accepts a filename param
2015-08-19 15:00:26 -07:00
Eric Tune
29da889bbf
Add generic master detector; simplify conformance.
...
Add detect-master-from-kubeconfig bash function.
Use it to no longer require conformance test user
to specify KUBE_MASTER_IP.
2015-08-19 13:20:22 -07:00
Saad Ali
d42864b0ad
Merge pull request #12112 from JanetKuo/update-kubectl-get-pods-running
...
Hide terminated pods in 'kubectl' Printer by default
2015-08-19 12:51:18 -07:00
Jonathan Wills
80e799fc0c
Allow configuring the rkt binary in a kubelet with a flag.
...
This is necessary because coreos comes with rkt installed, and if we want to use a different version
we need some way to avoid the default one.
2015-08-19 09:42:13 -04:00
Tim Hockin
16a33318b7
Use a valid address for swagger
2015-08-18 21:50:27 -07: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
Janet Kuo
44a7a52a94
Hide failed/succeeded pods in 'kubectl get pods' by default
2015-08-18 13:47:19 -07:00
Robert Bailey
4f856b595d
Merge pull request #9165 from smarterclayton/graceful
...
Enable graceful deletion using reconciliation loops in the Kubelet without TTL
2015-08-18 10:01:40 -07:00
Clayton Coleman
adc97bf936
Conversions
2015-08-18 09:08:45 -04:00
Clayton Coleman
89f1f3b1b8
Alter graceful deletion to not use TTL
...
Avoid TTL by deleting pods immediately when they aren't
scheduled, and letting the Kubelet delete them otherwise.
Ensure the Kubelet uses pod.Spec.TerminationGracePeriodSeconds
when no pod.DeletionGracePeriodSeconds is available.
2015-08-18 09:08:43 -04:00
Clayton Coleman
b842a7dd15
Revert "Revert "Gracefully delete pods from the Kubelet""
...
This reverts commit 98115facfd
.
2015-08-18 08:57:02 -04:00
Wojciech Tyczynski
d9d7f6d964
Reduce logs verbosity in scalability tests
2015-08-18 11:14:14 +02:00
Prashanth Balasubramanian
83f1212e0b
Confirms daemons restart and do sane things in an e2e test
2015-08-17 20:39:57 -07:00
Eric Paris
ca310ffdac
Sort output from hack/verify-flag-underscore.py
...
So we get some consistency and readability to the exceptions.txt
2015-08-17 11:32:18 -07:00
Eric Paris
99dc464c9b
verify-flags-underscore.py: update how to add to exclusion list
2015-08-17 11:19:32 -07:00
Eric Paris
b432f036db
verify-flags-underscore.py: ignore juju variables
2015-08-17 11:19:32 -07:00
Eric Paris
f3fd2e1028
verify-flags-underscore.py: ignore if trailed by :
...
These are often yaml definitions, and thus not usages of kubernetes
flags. Not necessarily always, but usually.
2015-08-17 11:19:32 -07:00
Eric Paris
d1ba0bb692
verify-flags-underscore.py: ignore salt grains
2015-08-17 11:19:31 -07:00
Eric Paris
d7f9477a94
verify-flags-underscore.py: exclude salt variable which look like flags
2015-08-17 11:19:31 -07:00
Eric Paris
7f96f9312b
verify-flags-underscore.py: ignore 'flags' that look like bash variables
...
We ignore bad 'flags' if they are proceeded by $ or { as these are
likely bash variables and not in fact bad flag usage.
2015-08-17 11:19:31 -07:00
Eric Paris
055d648ed7
Change log_flush_frequency to use -
...
Since we have the rename, we don't need our declaration to look like
glog's.
2015-08-17 11:19:31 -07:00
Eric Paris
c560f41a4b
Update docs which were incorrectly using _ in flag names
...
Each of these was verified that the actual flag declaration correctly
used -
2015-08-17 11:18:43 -07:00
Eric Paris
68716c7712
verify-flags-underscore.py: Remove contrib/ exceptions
...
As contrib was removed.
2015-08-17 11:08:24 -07:00
Marek Grabowski
d310eeaca9
Merge pull request #12783 from piosz/autoscaling_e2e
...
Enabled Autoscaling e2e test for Jenkins flaky job
2015-08-17 11:23:28 +02:00
Piotr Szczesniak
b6f1c9d989
Enabled Autoscaling e2e test for Jenkins flaky job
2015-08-17 10:54:33 +02:00
Mike Danese
fa40ced8f8
move contrib/for-tests to test/images
2015-08-14 20:42:46 -07:00
Brendan Burns
9cc5156b69
Merge pull request #12685 from eparis/goimports
...
Remove dependancy on external goimports binary
2015-08-14 20:29:00 -07:00
Brendan Burns
8e05da1316
Merge pull request #12696 from eparis/less-dash-false-positive
...
Fewer false positives in verify-flag-underscore.sh
2015-08-14 16:27:08 -07:00
Brendan Burns
d7763a1b2b
Merge pull request #12557 from eparis/boilerplate-multiple-file-types
...
Speed up pre-commit boilerplate by only checking changed files
2015-08-14 16:26:00 -07:00
Eric Paris
823392e4e3
New test and commit hook to make sure changes to Godeps are reproducable
...
It is a pretty slow test (it downloads fresh) all of kube's Godeps, so only
run it when needed in pre-commit hook.
This also means that random changes to other non-kube repositories could
cause travis/shippable to just randomly stop working for all PRs which touch
Godeps after that moment (even though no changes have been made to Godeps by
us). Examples would be things like other repos completely disappearing. Or
even the directory we include disappearing in master in the remote
project (even though the directory may exist at the commit we care
about) This is a bugwin godep, but it is a problem we have seen happen
with kube Godeps.
2015-08-14 14:21:43 -04:00
Eric Paris
56f6ad0c01
Specifically exclude some flag definitions in verify-flag-underscore.sh
...
We know there are some flags (declared with an _) which we wish to
ignore. These flags are used by container definitions, e2e, etc. By
explicitly ignoring those flags we can cut the amount of noise in the
whitelist.
2015-08-14 14:11:02 -04:00
Eric Paris
8a91d86783
Speed up pre-commit boilerplate by only checking changed files
...
Although the boilerplate checker was very fast it can be faster. With
this change we can hand the boilerplate a list of files which need to be
checked or give it no files. If given no files it will run all files in
the repo. Before you had to explicitly tell the boiler checker the
'extention' of the the files. In this case we let the checker figure it
out and load the headers as needed.
Doing the whole repo takes about 0.4 seconds. Doing a single go file
takes < .04 seconds.
2015-08-14 10:19:33 -04:00
Piotr Szczesniak
fb44d5e045
Enabled Autoscaling e2e test for cpu utilization
2015-08-14 11:50:19 +02:00
Eric Paris
30d34d0e59
Reduce false positives with verify-flag-underscore.sh by updating regex
...
Check to make sure there is not an alphanumeric character immeditely
before or after the 'flag'. It there is an alphanumeric character then
this is obviously not actually the flag we care about. For example if
the project declares a flag "valid-name" but the regex finds something
like "invalid_name" we should not match. Clearly this "invalid_name" is
not actually a wrong usage of the "valid-name" flag.
2015-08-13 21:06:39 -04:00
Eric Paris
8f3577e5d2
Do not use goimports in hack/update-generated-conversions.sh
...
Stop depending on an external binary needing to be on people's system.
Use the code directly.
2015-08-13 19:37:01 -04:00
Eric Paris
00929ed7d8
Convert generated-deep-copies to use golang.org/x/tools/imports
...
I don't like users to need an external binary which can easily get out
of sync. Just include the tools.
2015-08-13 19:36:57 -04:00
Eric Paris
c6a5b43df1
Update flag-dash whitelist
...
PRs older than the verifier landed in HEAD. So update the whitelist
2015-08-13 17:43:00 -04:00
Brendan Burns
db39e5c45d
Merge pull request #12667 from preillyme/issues_12666
...
Remove the "www" and "third-party ui" directories from kubernetes repo
2015-08-13 14:09:11 -07:00
Brendan Burns
d8a60d2271
Merge pull request #12623 from thockin/proxy-ipt
...
Auto commit by PR queue bot
2015-08-13 13:10:39 -07:00
Brendan Burns
15281a5e01
Merge pull request #12388 from feihujiang/kubectlPatchAcceptFileNameParam
...
Auto commit by PR queue bot
2015-08-13 11:49:41 -07:00
Patrick Reilly
bf02aaa97d
remove other cluster addon references for container build
2015-08-13 10:23:55 -07:00
Tim Hockin
776132e1ae
Make kube-proxy iptables sync period configurable
2015-08-13 09:53:32 -07:00
Ruddarraju, Uday Kumar Raju
937db3f70d
Keystone authentication plugin
2015-08-13 09:46:30 -07:00
Wojciech Tyczynski
77f431649b
Merge pull request #12462 from gmarek/cadvisor2
...
Add e2e test monitoring current container resource usage with updated constants.
2015-08-13 10:19:19 +02:00
feihujiang
1e10a7cc59
Kubectl scale command accepts a filename param
2015-08-13 14:26:25 +08:00
feihujiang
0110f3176b
Kubectl patch command accepts a filename param
2015-08-13 11:13:31 +08:00
Brendan Burns
99b8df1812
Add field based sorting to the kubectl command line.
2015-08-12 16:51:36 -07:00
CJ Cullen
0f27307f82
Merge pull request #12609 from mikedanese/rewrite-shell
...
updating all references to GoogleCloudPlatform in .sh scripts
2015-08-12 16:00:43 -07:00
Mike Danese
f061875840
updating all references in .sh scripts
2015-08-12 14:41:59 -07:00
Eric Paris
f54098fe00
Verify all flag usage does not use _
...
This works by defining two 'static' lists in hack. The first is the list
of all flags in the project which use a `-` or an `_` in their name. All
files being processed by verify-flags-underscore.py (or all files in the
repo if no filename arguments are given) will be searched for flag
declaration using a simple regex. Its not super smart. If a flag is
found which is not in the static list it will complain/reject the commit
until a human adds it to the list. If we do not keep a static list of
flags it takes >.2 seconds to find them 'all' at runtime. Since this is
run in pre-commit saving every part of a second helps.
After it finds all of the flags it runs all of the arguments (or all
files in repo if no arguments) looking for usage of those flags which
includes an `_`. There are lots of places where these are false
positives. For example we have a flag named oom-adj-score but the kernel
calls it oom_adj_score. To handle this we keep a second 'whitelist' of
lines which are allowed to use these flag names with an `_`.
Running the entire git repo looking for flags in every golang file and
looking in every single file for bad usage takes about 8.75 seconds.
Running it in the precommit hook where we only check things that changed
takes about .06 seconds.
2015-08-12 16:17:02 -04:00
Eric Paris
ce6f2c8e4b
Do not build genconversion and gendeepcopy twice
...
The hack/after-build/verify-* functions were using the hack/update-*
functions. Which means that if you call hack/verify-* you will do the
build twice. Stop it.
2015-08-12 10:05:48 -04:00
Piotr Szczesniak
81fb0f9582
Merge pull request #12527 from piosz/jenkins-autoscaling
...
Actually changed monitoring level on Jenkins
2015-08-12 11:23:12 +02:00
Piotr Szczesniak
c91950f01c
Merge pull request #12566 from uluyol/cleanup-convcopy
...
Add missing argument to function call and don't set GOPATH directly
2015-08-12 09:36:10 +02:00
Piotr Szczesniak
1df0267f4a
Merge pull request #12551 from eparis/underscore-to-dash
...
Update code and docs to use - in flag names instead of _
2015-08-12 07:16:31 +02:00
Muhammed Uluyol
eba19cc96a
Add missing argument to function call and don't set GOPATH directly
2015-08-11 21:54:37 -07:00
Muhammed Uluyol
567bb15432
Generate conversions/deep-copies for experimental. Currently we make (and register) duplicate functions but this is benign.
2015-08-11 17:12:24 -07:00
Eric Paris
5aa495cdad
Update code to use - in flag names instead of _
2015-08-11 16:31:52 -04:00
CJ Cullen
9fdd793555
Merge pull request #11841 from eparis/commit-speed
...
Speedups for precommit hooks
2015-08-11 12:58:58 -07:00
Eric Paris
bf9c3cd6ec
Use cp instead of rsync in hack/verify-gendocs.sh
...
Instead of calling rsync over and over and over and over and over and
over and over and over and over (and probably over) use one `cp`
Before:
real 0m5.247s
user 0m2.294s
sys 0m1.300s
After:
real 0m2.260s
user 0m2.230s
sys 0m0.936s
2015-08-11 14:21:57 -04:00
Eric Paris
3b7c39656c
Split hack/{verify,update}-* files so we don't always go build
...
Right now some of the hack/* tools use `go run` and build almost every
time. There are some which expect you to have already run `go install`.
And in all cases the pre-commit hook, which runs a full build wouldn't
want to do either, since it just built!
This creates a new hack/after-build/ directory and has the scripts which
REQUIRE that the binary already be built. It doesn't test and complain.
It just fails miserably. Users should not be in this directory. Users
should just use hack/verify-* which will just do the build and then call
the "after-build" version. The pre-commit hook or anything which KNOWS
the binaries have been built can use the fast version.
2015-08-11 14:20:46 -04:00
Eric Paris
985fa94ebd
Move description.sh from hack/ to hooks/
...
Just to get everything in one place...
2015-08-11 14:20:38 -04:00
Eric Paris
302cb7dc7f
Move boilerplate from hooks/ to hack/
...
Hooks seems like they should be hooks. Not sure hack makes a lot more
sense, but it has more stuff already.
2015-08-11 14:20:38 -04:00
Eric Paris
5aeebb4886
hack/lib/etcd: remove unused local var
...
It isn't used anywhere, why have it?
2015-08-11 14:20:38 -04:00
Eric Paris
055d008634
Update swagger to start etcd with known values
...
We were setting etcd values, but we started etcd before we set them.
Thankfully we were just setting them to etcd defaults, so it all worked
2015-08-11 14:20:38 -04:00
Piotr Szczesniak
5e58004131
Actually changed monitoring level on Jenkins
2015-08-11 15:25:36 +02:00
Piotr Szczesniak
63a88dd24a
Changed monitoring level to googleinfluxdb in kubernetes-e2e-gce Jenkins job.
2015-08-11 10:07:48 +02:00
gmarek
bc8565d55e
Add e2e test monitoring current container resource usage with updated
...
constants.
This reverts commit 1f7ea4f08e
.
2015-08-11 09:16:14 +02:00
Alex Robinson
f7cab137df
Merge pull request #12019 from gmarek/soak
...
Move initialization of Jenkins variables for GCE soak tests to hack/jenkins/e2e.sh
2015-08-10 16:19:57 -07:00
Alex Robinson
59c0fbb6a9
Merge pull request #12444 from thockin/nix-cmd-kubernetes
...
Remove old 'kubernetes' cmd
2015-08-10 16:19:35 -07:00
Alex Robinson
462fed62b7
Merge pull request #12189 from feihujiang/describeKindNoArguments
...
kubectl describe <kind> work with no arguments
2015-08-10 11:05:34 -07:00
feihujiang
73b694e6c1
kubectl describe <kind> work with no arguments
...
Add describe_resource_assert to test describe <kind> with no object arg
2015-08-10 14:08:38 +08:00
Tim Hockin
bef7c99619
Remove old 'kubernetes' cmd
2015-08-08 20:39:57 -07:00
Veres Lajos
9f77e49109
typofix - https://github.com/vlajos/misspell_fixer
2015-08-08 22:31:48 +01:00
Satnam Singh
1f7ea4f08e
Revert "Add e2e test monitoring current container resource usage"
2015-08-07 22:40:15 -07:00
Satnam Singh
991775e77b
Merge pull request #10724 from eparis/convert-underscore-to-dash
...
Convert underscore to dash
2015-08-07 16:40:05 -07:00
Eric Paris
7715290bbd
Convert hack/ from --flag_name= to --flag-name=
2015-08-07 11:00:13 -04:00
gmarek
1c22fd39ff
Add e2e test monitoring current container resource usage.wq
2015-08-07 10:27:00 +02:00
Dawn Chen
9af5d8bd23
Merge pull request #12305 from GoogleCloudPlatform/puller
...
Exit if hub isn't installed, add verbiage to message.
2015-08-06 16:08:30 -07:00
Max Forbes
acef505cfd
Implement 'Nodes Network' test for GKE; add optional verbose SSH.
2015-08-06 14:25:53 -07:00
Wojciech Tyczynski
e366f2c597
Merge pull request #12206 from derekwaynecarr/move_doc
...
LimitRange documentation should be under admin
2015-08-06 13:43:58 +02:00
Wojciech Tyczynski
871ca7a05f
Merge pull request #12320 from mikedanese/rewrite-pr-issue-links
...
rewrite all links to issues and PRs to k8s links
2015-08-06 09:55:44 +02:00
Mike Danese
8326697055
rewrite all links to prs to k8s links
2015-08-05 21:11:11 -07:00
Alex Crawford
79f14822a9
Plumb linker flags through from the Makefile
2015-08-05 20:42:54 -07:00
Mike Danese
fb02b33e99
fix build
2015-08-05 17:52:56 -07:00
Dawn Chen
a90075d7eb
Merge pull request #12008 from smarterclayton/fix_mac
...
mktemp on OSX behaves differently than Linux
2015-08-05 15:17:59 -07:00
Zach Loafman
fccca8fa5d
Exit if hub isn't installed, add verbiage to message.
2015-08-05 14:26:14 -07:00
Dawn Chen
9bc54481e0
Merge pull request #12233 from brendandburns/velocity
...
Add automated pull request creation.
2015-08-05 12:02:25 -07:00
derekwaynecarr
577f2fa0a5
LimitRange documentation should be under admin
2015-08-05 10:26:52 -04:00
Brendan Burns
70d843176b
Add automated pull request creation.
2015-08-04 21:32:03 -07:00
Alex Mohr
e92c63be74
Merge pull request #12172 from GoogleCloudPlatform/revert-12106-demote
...
Auto commit by PR queue bot
2015-08-04 18:48:49 -07:00
Eric Paris
08d8bea61d
Support 1.5 in verify-gofmt
2015-08-04 19:59:19 -04:00
Alex Mohr
2d81775a2d
Merge pull request #11151 from gmarek/max_pods_e2e
...
Auto commit by PR queue bot
2015-08-04 15:11:13 -07:00
gmarek
61d3b250ee
Move initialization of Jenkins variables for soak tests to hack/jenkins/e2e.sh
2015-08-04 10:18:52 +02:00
Mike Danese
8e48431ca5
Revert "demote to flaky tests from parallel e2e"
2015-08-03 15:32:04 -07:00
Alex Mohr
2a397671bb
Merge pull request #12060 from jlowdermilk/jenkins-default-version
...
Allow gke to use server-default version for jenkins runs
2015-08-03 13:22:07 -07:00
Mike Danese
b56edd1355
Merge pull request #11727 from ZJU-SEL/build-nonstatic-hyperkube
...
build hyperkube as a nonstatic binary
2015-07-31 15:46:04 -07:00
Mike Danese
cf4cb1a6a3
Merge pull request #10474 from kargakis/scale-multiple-controllers
...
Enable scaling multiple controllers
2015-07-31 14:51:43 -07:00
Mike Danese
e376a094af
demote to flaky service tests from parallel e2e
2015-07-31 13:25:15 -07:00
Mike Danese
7c47d6bdbd
Merge pull request #12009 from smarterclayton/fix_cmd_config
...
hack/test-cmd.sh can fail when ~/.kube/config exists
2015-07-31 10:25:35 -07:00
Mike Danese
0269e2baad
Merge pull request #11941 from GoogleCloudPlatform/enact_version_md
...
Enacting versioning.md
2015-07-31 10:17:22 -07:00
kargakis
0e796ca09a
Enable scaling multiple controllers
2015-07-31 10:24:59 +02:00
Jeff Lowdermilk
2707fab181
Allow gke to use server-default version for jenkins runs
2015-07-30 18:32:57 -07:00
Clayton Coleman
0f9fdcafea
Revert "Revert "Improve conversion to support multiple packages""
...
This reverts commit 94a387d5d1
.
2015-07-30 15:15:14 -04:00
Mike Danese
94a387d5d1
Revert "Improve conversion to support multiple packages"
2015-07-30 10:51:40 -07:00
Mike Danese
1a613c43fe
Merge pull request #9971 from smarterclayton/make_conversion_more_flexible
...
Improve conversion to support multiple packages
2015-07-30 10:05:10 -07:00
Mike Danese
0ae48c449e
Merge pull request #11927 from wojtek-t/remove_shell_services
...
Remove shell services test
2015-07-30 09:56:38 -07:00
Wojciech Tyczynski
2c5c1931e5
Revert "Implement 'Nodes Network' test for GKE"
2015-07-30 15:29:01 +02:00
Clayton Coleman
5df2188d3d
hack/test-cmd.sh can fail when ~/.kube/config exists
...
Use the KUBE_TEMP dir for HOME
2015-07-30 00:47:50 -04:00
Clayton Coleman
1a64830ef1
mktemp on OSX behaves differently than Linux
...
hack/test-integration and hack/test-cmd are currently broken
2015-07-30 00:41:20 -04:00
Mike Danese
59a1dd4267
Merge pull request #11789 from mbforbes/nodesNetwork
...
Implement 'Nodes Network' test for GKE
2015-07-29 17:43:33 -07:00
Clayton Coleman
732647ea97
Improve conversion to support multiple packages
...
OpenShift uses multiple API packages (types are split) which
Kube will also eventually have as we introduce more plugins.
These changes make the generators able to handle importing different
API object packages into a single generator function.
2015-07-29 17:05:54 -04:00
Joe Beda
55e4941c5e
Fix up memory requirements for release w/ boot2docker.
2015-07-29 13:13:59 -07:00
Mike Danese
6294070c51
Merge pull request #11803 from wojtek-t/move_back_from_flaky
...
Move remaining PD test back from flaky
2015-07-29 11:24:40 -07:00
Mike Danese
daa6d4dde6
Merge pull request #11285 from liggitt/ca
...
Use self-signed cert as CA for local-up-cluster.sh
2015-07-29 11:13:23 -07:00
Mike Danese
9f16fd900e
Merge pull request #11860 from ingvagabund/delimiter-for-X-option-eparis
...
Use the correct delimiter for -X option of --ldflags (more readable solution)
2015-07-29 10:52:59 -07:00
Wojciech Tyczynski
4b9903ec17
Move remaining PD test back from flaky
2015-07-29 08:18:07 +02:00
Brendan Burns
a546a2979c
Merge pull request #11726 from caesarxuchao/fix-types-link
...
Auto commit by PR queue bot
2015-07-28 13:24:11 -07:00
Zach Loafman
4363f14e77
Enacting versioning.md
...
This PR changes how we version going forward in the following ways:
* mark-new-version.sh is changed to a new policy of just splitting
branches, rather than the old backmerge policy, as discussed in
vX.Y.0, and a tag for vX.(Y+1).0-alpha.0 back to master.
* I eliminated PRs back to master by making the version/base.go
gitVersion and gitCommit just be `export-subst`. I testing that this
works with GitHub's source export tarballs. There's no reason to
bother with forcing the version into `base.go` (especially twice). The
tarball versions outside a git tree aren't perfect (master looks like
"v0.0.0+hash", and the release branches look more accurate), but our
build contract has never allowed that version is perfect in this
situation, so I think we can relax this.
* That master tag gets picked up by "git describe" on master, so e.g.
master would have immediately become v1.1.0-alpha.0
* In order to be more semVer compatible, the gitVersion field for the
master branch now looks something like 1.1.0-alpha.0.6+84c76d1142ea4d.
This is a tiny translation of the "git describe". I did this because
there are a ton of consumers out there of the "gitVersion" field
expecting it to be the full version, but it would be nice if this
field were actually semver compliant. (1.1.0-alpha.0-6-84c76d1142ea4d
is, but it's not *usefully* so.)
Fixes #11495
2015-07-28 11:58:44 -07:00
Wojciech Tyczynski
b69ef7b5ca
Remove shell services test
2015-07-28 17:14:18 +02:00
gmarek
36aff274f1
Add test that verifies that we don't allow resource overallocation on Nodes
2015-07-27 16:37:57 +02:00
Marek Grabowski
831827b4bb
Merge pull request #11056 from wojtek-t/rewrite_services_in_go
...
Rewrite services shell test in Go.
2015-07-27 09:21:44 +02:00
Chao Xu
464385281b
add a tool in cmd/ to check links in go file. Currently it's only used to check the links in api descriptions (pkg/api/.../types.go).
2015-07-24 20:21:16 -07:00
Mike Danese
c0acfbcd4b
Merge pull request #11421 from nikhiljindal/exposeServcPort
...
Updating kubectl expose to extract ports from the service being cloned
2015-07-24 17:16:31 -07:00
Max Forbes
bd9e09ba00
Implement 'Nodes Network' test for GKE
2015-07-24 17:05:30 -07:00
nikhiljindal
242910e57c
kubectl expose should extract ports from service
2015-07-24 15:17:48 -07:00
Prashanth Balasubramanian
be0bfa97cc
Fix resource aliasing flake
2015-07-24 11:15:38 -07:00
Mike Danese
ae1c8e55ef
Merge pull request #11737 from thockin/cleanup-remove-v1beta3
...
Remove v1beta3
2015-07-24 10:25:56 -07:00
Mike Danese
01ee1b8634
Merge pull request #10840 from jbeda/master
...
Fix up check for min memory for parallel builds
2015-07-24 08:02:33 -07:00
Jan Chaloupka
3a90386c78
golang 1.4 was happy with -X key val
...
golang 1.5 complains ans wants -X key=val
2015-07-24 16:56:18 +02:00
Jordan Liggitt
5893f1c5b6
Use self-signed cert as CA for local-up-cluster.sh
2015-07-24 07:16:07 -07:00
Tim Hockin
1c3233a1d4
Remove v1beta3
2015-07-23 17:21:27 -07:00
Vish Kannan
136d53466a
Merge pull request #10892 from nikhiljindal/beta1
...
Removing references to pre v1beta3 apis in code
2015-07-23 17:05:43 -07:00
Jeff Grafton
4d45945b3b
Require at least one healthy startup pod in GCE Jenkins e2e tests
...
Includes a small fix relative to e7547b97
to handle
$E2E_MIN_STARTUP_PODS being null.
2015-07-23 15:31:41 -07:00
Wojciech Tyczynski
fdd7f1e4b2
Rewrite services shell test in Go.
2015-07-23 16:16:45 +02:00
gmarek
be59c5a935
Change a value that join_regex returns for empty input and use it in ginkgo.focus statements
2015-07-23 13:30:01 +02:00
He Simei
a210a96f5f
build hyperkube as a nonstatic binary
2015-07-23 09:18:08 +08:00
Jeff Grafton
55e050e3f3
Create a Jenkins project to run only the examples e2e tests on GCE.
2015-07-20 13:39:09 -07:00
Wojciech Tyczynski
a0f30586dd
Move PD on two hosts test to flaky
2015-07-20 11:08:11 +02:00
David Oppenheimer
e5208c83b7
Merge pull request #11357 from caesarxuchao/api-type-doc-tool-2
...
generate docs for types defined in pkg/api/v*/types.go
2015-07-17 15:57:17 -07:00
Chao Xu
ab740cf93b
Dockerfile and related scritps for a container that generates docs for API types
2015-07-17 15:46:54 -07:00
Tim Hockin
261d2ce423
Ignore whitespace when diffing generated docs
2015-07-17 15:28:58 -07:00
nikhiljindal
4734b938de
Updating update-swagger-spec to build the apiserver before running
2015-07-17 12:10:56 -07:00
nikhiljindal
496f30a92f
Introduce a new service generator that leaves service port unnamed
2015-07-16 20:40:40 -07:00
Brendan Burns
59bc8db554
Merge pull request #11360 from zmerlynn/fix_silly_backslash
...
Fix hack/cherry_pick_pull.sh on OS X (sigh):
2015-07-16 11:42:31 -07:00
Zach Loafman
fb8613201b
Fix hack/cherry_pick_pull.sh on OS X (sigh):
...
On OS X bash, for whatever reason, the ancient, forsaken bash version
(3.2!?) that will never be updated because it might insult the memory
of Steve Jobs doesn't allow me to accidentally escape the hash
character. Fix the unnecessary escaping.
For reviewers out there wondering about this syntax, it's documented
here: http://www.tldp.org/LDP/abs/html/parameter-substitution.html
under:
```
${var/#Pattern/Replacement}
If prefix of var matches Pattern, then substitute Replacement for Pattern.
```
It just looks odd here because I'm adding the hash character to the
start of each array element.
2015-07-15 21:09:56 -07:00
Eric Tune
8c891cfb70
Merge pull request #11291 from thockin/jenkins
...
Better handling of ginkgo args in jenkins
2015-07-15 15:00:51 -07:00
Eric Tune
c208c1c9a3
Merge pull request #11270 from mbforbes/jenkinsTypo
...
(jenkins/e2e) Fix typos and clarify instructions in comments
2015-07-15 12:57:46 -07:00
Eric Tune
97d13c25c2
Merge pull request #11314 from mikedanese/mungdocs-error
...
mungedoc should exit 1 when manual changes are required.
2015-07-15 12:54:20 -07:00
Mike Danese
d4d99deb97
make mungedoc exit 1 if manual changes are needed and wire up erro message.
2015-07-15 11:20:11 -07:00
Zach Loafman
af1a8b825a
Add hack/cherry_pick_list.sh to list all automated cherry picks
...
* Adds hack/cherry_pick_list.sh to list all automated cherry picks
since the last tag.
* Adds a short python script to extract title/author and print it in
markdown style like our current release notes.
* Revises patch release instructions to use said script.
2015-07-15 10:30:00 -07:00
Tim Hockin
38d51f33e5
Better handling of ginkgo args in jenkins
2015-07-14 23:54:39 -07:00
Wojciech Tyczynski
635e82897f
Fix tests on Jenkins
2015-07-15 08:27:41 +02:00
Mike Danese
337772a91f
fix all tests
2015-07-14 21:51:30 -07:00
Tim Hockin
f330a43329
fix test-cmd from file moves
2015-07-14 17:59:59 -07:00
Tim Hockin
43e315d686
Fix test-cmd after file moves
2015-07-14 15:57:41 -07:00
Max Forbes
392ca97d90
(jenkins/e2e) Fix typos and clarify instructions in comments
2015-07-14 15:12:05 -07:00
Eric Tune
4635cf381b
Merge pull request #11211 from gmarek/flaky
...
Update Jenkins Flaky suite
2015-07-14 14:59:06 -07:00
Eric Tune
13434cea60
Merge pull request #11194 from zmerlynn/louder_release_fork
...
hack/cherry_pick_pull.sh: Coach user on how to make a pull against non-master
2015-07-14 13:00:47 -07:00
gmarek
9d55842a02
Move MaxPods back from Flaky suite
2015-07-14 12:09:27 +02:00
Daniel Smith
ffcc6cadb0
run munger over examples dir
2015-07-13 17:47:48 -07:00
Daniel Smith
bf77ecc3a9
Various munger changes
...
* Add analytics munger w/ munge heading
* More link autofixes
* Allow running a subset of munges
* Fix repo root detection
* Only process non-preformatted blocks
* Gendocs no longer adds the analytics link; mungedocs does that in a
second pass.
2015-07-13 17:47:48 -07:00
Tim Hockin
a41f508451
Merge pull request #11198 from thockin/fix-services-sh-e2e
...
Don't use a shell array where not needed
2015-07-13 17:40:26 -07:00
Tim Hockin
957514d932
Don't use a shell array where not needed
2015-07-13 17:17:51 -07:00
Tim Hockin
a7364c08b0
Merge pull request #10994 from erictune/conformance_master
...
Conformance test update
2015-07-13 17:04:47 -07:00
Zach Loafman
4c078b1a99
hack/cherry_pick_pull.sh: Coach user on how to make a pull against non-master
2015-07-13 16:16:59 -07:00
Mike Danese
055115a109
fake realpath, and standardize treatment of trailing / of dirs in gendoc
2015-07-13 15:27:33 -07:00
Mike Danese
b4514ee1f3
fix run-gendocs to point to new repo location
2015-07-13 13:01:20 -07:00
Tim Hockin
64e3047397
Merge pull request #11124 from thockin/docs-munge-branch-warnings_filter_munges
...
Make all docs have a warning if unversioned
2015-07-13 11:30:50 -07:00
Tim Hockin
558ae212a5
Merge pull request #11165 from brendandburns/e2e2
...
increase NUM_MINIONS to 3 for e2e + jenkins by default.
2015-07-13 11:28:38 -07:00
Tim Hockin
06a6623a70
Filter munges out during doc generation
...
This allows us to apply content-mutating munges to generated files and nothave
the verifier flag them as needing regeneration later.
2015-07-13 11:23:07 -07:00
Brendan Burns
910857a4a8
increase NUM_MINIONS to 3 for e2e + jenkins by default.
2015-07-13 10:35:15 -07:00
Tim Hockin
2ad0774562
Merge pull request #11122 from zmerlynn/multi-pick
...
hack/cherry_pick_pull.sh: Allow multiple pulls
2015-07-13 10:17:14 -07:00
Wojciech Tyczynski
403c39d742
Fix shell Services test
2015-07-13 16:43:06 +02:00
Zach Loafman
180a38c181
hack/cherry_pick_pull.sh: Allow multiple pulls
...
Reorder the arguments to allow for multiple pulls at the end:
hack/cherry_pick_pull.sh <remote branch> <pr-number>...
This solves some common A-then-immediate-A' cases that appear
frequently on head. (There's a workaround, but it's a hack.) Updates
the documentation.
2015-07-13 07:11:12 -07:00
Rohit Jnagal
e5ce898058
Merge pull request #9264 from derekwaynecarr/limit_range_readme
...
LimitRange example improvements, detailed README
2015-07-10 19:14:23 -07:00
Rohit Jnagal
869df32d00
Merge pull request #10987 from stefwalter/setup-golang-update-hack
...
hack: Add $GOPATH to hack/update-generated-xxx.sh scripts
2015-07-10 14:15:37 -07:00
Daniel Smith
59dca5ba7d
fix verify-gendocs to call mungedocs --verify on the originals
2015-07-10 10:54:47 -07:00
Quinton Hoole
f653932b87
Demote Shell.*services e2e test as it cannot be run in parallel with other tests (yet)
...
Fixes #10127
2015-07-10 08:33:22 -07:00
derekwaynecarr
c8ad995462
LimitRange example improvements, detailed README
2015-07-10 11:07:54 -04:00
Wojciech Tyczynski
22e63a76b9
Merge pull request #11039 from nikhiljindal/beta3Conversion
...
Updating the scripts to not delete v1beta3 conversions and copies
2015-07-10 09:58:47 +02:00
Stef Walter
a38a148e02
hack: Add $GOPATH to hack/update-generated-xxx.sh scripts
...
So that not everyone has to figure this out.
2015-07-10 09:47:47 +02:00
Wojciech Tyczynski
dc711ee92d
Promote Services shell out of flaky. Demote Elasticsearch
2015-07-10 08:26:42 +02:00
nikhiljindal
1350cc8bc3
Set KUBE_API_VERSIONS appropriately
2015-07-09 19:04:20 -07:00
Max Forbes
6b609f644b
Jenkins: Allow fetching new tars for multi-job tests
2015-07-09 11:28:51 -07:00
Eric Tune
2459cfa96c
Update conformance test.
...
Fix formatting and quote variable.
Fix comments from a previous review.
Move instructions to the top.
Change from using tag to using branch.
Improve documentation of conformance test.
Use stable random seed.
Fix bug where there was a double quote as a prefix and suffix to the
skip regexp.
Remove .* not needed in regex.
Skip a few more tests that are not reliable for me in the
Conformance test environment.
2015-07-09 09:08:48 -07:00
Victor Marmol
b7da593d7c
Merge pull request #10762 from erictune/toc
...
Automatic Doc Editing, with Table of Contents Generation
2015-07-09 08:13:45 -07:00
Wojciech Tyczynski
6d864527c9
Merge pull request #10932 from zmerlynn/fork-jenkins-release-21
...
Add skip/flaky arguments for gce-release job
2015-07-09 15:20:04 +02:00
Wojciech Tyczynski
b33954c45e
Merge pull request #10963 from thockin/cherrypick-fixes
...
Ignore untracked files in cherrypick
2015-07-09 11:28:11 +02:00
Wojciech Tyczynski
977b1d9579
Merge pull request #10823 from piosz/real_test
...
Added load test with pods doing real works
2015-07-09 11:26:47 +02:00
Wojciech Tyczynski
9d32830040
Merge pull request #10978 from wojtek-t/fix_shell_services
...
Fix Shell services test
2015-07-09 10:08:57 +02:00
Wojciech Tyczynski
9cb7bc2e90
Fix Shell services test
2015-07-09 09:46:10 +02:00
Wojciech Tyczynski
e5836cc933
Merge pull request #10952 from mbforbes/JenkinsRemoveServer
...
Jenkins: remove dead 'use server version' code
2015-07-09 09:09:13 +02:00
Zach Loafman
1d6db553b0
Fix two issues in cherry_pick_pull:
...
* Ignore errexit in trap handler
* Check for branch (since two people have complained now..)
2015-07-08 18:16:27 -07:00
Tim Hockin
b61985ad87
Ignore untracked files in cherrypick
2015-07-08 17:09:14 -07:00
Victor Marmol
cfbc64e3c5
Merge pull request #10864 from mbforbes/gcloudUpdateJenkins
...
Fully update gcloud before Jenkins runs
2015-07-08 16:13:27 -07:00
Zach Loafman
a6594dc38b
Add skip/flaky arguments for the jenkins-gce-e2e-release job
...
I haven't added the job yet. Want to get the args in place first.
Related to #10676
2015-07-08 16:12:50 -07:00
Victor Marmol
f5cbf5af0f
Merge pull request #10923 from wojtek-t/promote_tests_2
...
Promote ElasticSearch test to non-flaky suite
2015-07-08 16:11:56 -07:00
Eric Tune
c51e35e835
Support for in-place modification of docs
...
Adds cmd/mungedocs which is framework for processing
all files under docs/ and either verifying that no changes needed or
making in-place changes.
Did not reuse kube::util::gen-docs because that seemed to be
centered around handling added files, and this pass does not
add files.
Planned uses:
- table of contents automatic updating
- linkification
- internal link checker
- link-path-relativizer or absolutizer
- example file syncer
- header inserter.
Just table-of-contents updating in this PR.
Added Table of Contents to docs/networking.md.
Demonstrates use of new TOC generator presubmit.
Other docs will be added in future PRs.
Additional development will be needed to handle some
of the more complex cases.
2015-07-08 14:58:54 -07:00
nikhiljindal
fc4da6844e
removing references to pre v1beta3 apis
2015-07-08 13:51:43 -07:00
Max Forbes
38f2f4dab9
Jenkins: remove dead 'use server version' code
2015-07-08 13:32:37 -07:00
Zach Loafman
390bb58f48
Brendan noticed this silly inconsistency.
2015-07-08 11:53:33 -07:00
Victor Marmol
faa573f995
Merge pull request #10922 from wojtek-t/fix_proxy_2
...
Fix service shell e2e test
2015-07-08 11:34:03 -07:00
Victor Marmol
dbc0e7636b
Merge pull request #10757 from zmerlynn/pull-propose
...
Add cherry_pick_pull.sh <pr-number> <branch>
2015-07-08 11:25:43 -07:00
Zach Loafman
4f3accec00
Add cherry_pick_pull.sh <pr-number> <branch>
...
This script checks out a branch based on <branch>, cherry picks pull
request <pr> into it commit by commit, then instructs the user on how
to propose that branch as a PR to the branch.
For bonus points, this could be integrated with something like the
"hub" tool (https://github.com/github/hub ) and be made about 2x more
automated.
Fixes #10730
2015-07-08 11:15:28 -07:00
Wojciech Tyczynski
de3a36c904
Promote ElasticSearch test to non-flaky suite
2015-07-08 16:26:04 +02:00
Wojciech Tyczynski
ff727ede74
Increase timeouts in services shell script
2015-07-08 15:32:05 +02:00
Piotr Szczesniak
3fb39542d0
Added load test with pods doing real works
2015-07-08 11:01:41 +02:00
Quinton Hoole
4a26114a9a
Make merge conflicts less likely in jenkins/e2e.sh with multiline regexs.
2015-07-07 20:10:00 -07:00
Max Forbes
5f9dc8c84c
Fully update gcloud before Jenkins runs.
2015-07-07 13:22:54 -07:00
Joe Beda
6c4ae61f6b
Fix up check for min memory for parallel builds
2015-07-07 10:14:23 -07:00
Wojciech Tyczynski
9854d47923
Move Proxy logs out of flaky
2015-07-07 13:54:22 +02:00
Wojciech Tyczynski
73cb04ad6b
Merge pull request #10819 from wojtek-t/fix_services_shell
...
Fix service shell test
2015-07-07 11:44:35 +02:00
Wojciech Tyczynski
f658988ad1
Fix service shell test
2015-07-07 11:19:17 +02:00
Wojciech Tyczynski
78c1117cb9
Promote no-longer flaky tests to gce suite
2015-07-07 08:27:11 +02:00
Quinton Hoole
ac3e3db579
Demote e2e test as per #10792
...
Demote e2e test as per #10792 .
2015-07-06 17:43:36 -07:00
Yu-Ju Hong
dad97b6224
Merge pull request #10691 from thockin/shutup-presubmit
...
Shutup presubmit
2015-07-06 09:56:41 -07:00
Zach Loafman
af781d8df4
Ban MaxPods to flaky test list. See #10720 .
...
If you revert this, please notify @zmerlynn to fix the GKE list.
2015-07-04 09:16:50 -07:00
Nikhil Jindal
974377b306
Merge pull request #10481 from gmarek/max_pods_e2e
...
Add max-pods e2e test
2015-07-02 15:26:46 -07:00
Tim Hockin
efa76b72ae
Run the build once during presubmit
2015-07-02 14:43:43 -07:00
Tim Hockin
a95814b593
make swagger presubmit not spew noise
2015-07-02 14:03:02 -07:00
Jeff Grafton
44f3c9e01e
Re-enable namespace test on the pull request Jenkins
2015-07-01 17:53:27 -07:00
Zach Loafman
b60c8e567f
Merge pull request #10077 from timstclair/ui-server
...
Move dashboard UI out of the apiserver to a separate pod
2015-07-01 15:56:33 -07:00
Zach Loafman
c7fb07a6aa
Merge pull request #10428 from mikedanese/nightly
...
add documentation and script on how to get recent and "nightly" builds
2015-07-01 15:55:49 -07:00
Zach Loafman
e5670c104d
Merge pull request #10604 from nikhiljindal/v1
...
Updating scripts to use v1 instead of v1beta3
2015-07-01 15:54:17 -07:00
nikhiljindal
274792d7bb
Stop exposing v1beta3 by default
2015-07-01 14:38:02 -07:00
Tim St. Clair
b6b2d6df42
Add kube-ui cluster addon for serving k8s dashboard UI.
...
Changes include:
- Add kube-ui binary for serving static dashboard UI
- Add kube-ui docker image, replication controller, and service
- Make the kube-ui a cluster-addon (enabled by default)
- Split the compiled pkg/ui/datafile.go into separate dashboard and swagger packages
- Update docs to reflect changes
2015-07-01 14:21:47 -07:00
Zach Loafman
0b2efd8d28
Merge pull request #10633 from saad-ali/enablePDE2ETest
...
Enable readonly PD tests for Jenkins GCE E2E run
2015-07-01 14:15:44 -07:00
Zach Loafman
4f9cfc84c4
Merge pull request #10180 from mwielgus/e2e_examples
...
E2E tests for Redis and Celery-RabbitMq examples
2015-07-01 12:02:27 -07:00
saadali
c84b0e0f4f
Enable readonly PD tests for Jenkins GCE E2E run
2015-07-01 11:10:00 -07:00
nikhiljindal
2e9e46dd08
Updating scripts to use v1 instead of v1beta3
2015-07-01 00:23:16 -07:00
gmarek
c86e18846b
Add max-pods e2e test
2015-07-01 09:21:42 +02:00
Marcin Wielgus
b5600fee12
E2E tests for Redis and Celery-RabbitMq examples
2015-07-01 00:25:58 +02:00
Jeff Grafton
0c321c3759
Jenkins GCE e2e: "Service endpoints latency" is not flaky in parallel
2015-06-30 13:47:46 -07:00
Chao Xu
7f89a29aad
add "kubectl patch". It will replace "kubectl udpate --patch" in the future
2015-06-29 16:36:45 -07:00
Alex Robinson
764d34d363
Merge pull request #10468 from caesarxuchao/add-cmd-replace
...
Add command "kubectl replace"
2015-06-29 16:06:33 -07:00
Mike Danese
c053b9a51b
add documentation and script on how to get recent and "nightly" builds
2015-06-29 14:50:41 -07:00
Mike Danese
719870fdcf
add publishing of latest-green.txt to jenkins e2e tests on success
2015-06-29 14:50:41 -07:00
Alex Robinson
fb9c126fd4
Merge pull request #10078 from ixdy/jenkins-e2e-gce-configs
...
Determine e2e test configs for GCE using Jenkins project name
2015-06-29 14:34:05 -07:00
Anastasis Andronidis
697e07f864
Correctly parse multiple resources from files
...
Refactored how files, directories and stdin are handled. Every file must pass
through the FileVisitor and then streamed through StreamVisitor. FileVisitor
takes care of opening/closing files and StreamVisitor is parsing multiple
resources.
2015-06-29 23:11:46 +02:00
Chao Xu
9b3d42c090
Add command "kubectl replace". "kubectl update" is still supported as an alias.
...
"kubectl replace --patch" is NOT supported. It's moved to "kubectl patch" as a separate command in another commit.
2015-06-29 12:14:24 -07:00
Jeff Grafton
8c70fa42ee
Determine e2e test configs for GCE using Jenkins project name.
...
Most parameters can still be overridden by specifying them in the
Jenkins configs.
Additionally, remove --noColor option, since the ANSI Jenkins plugin
can handle the color codes.
2015-06-26 17:32:50 -07:00
Robert Bailey
91589143a3
Merge pull request #10370 from mikedanese/no-more-machines
...
remove --machines and related deprecated flags from code and docs
2015-06-26 10:54:01 -07:00
Robert Bailey
508f7f1697
Merge pull request #10358 from caesarxuchao/add-force-update
...
Add --force to `kubectl update`
2015-06-26 10:49:04 -07:00
Mike Danese
1e130e0794
remove --machines from code and docs
2015-06-25 18:29:11 -07:00
Chao Xu
ef5de91fd7
add "--force" flag to "kubectl update";
...
update relevant tests
2015-06-25 17:16:20 -07:00
Maxwell Forbes
24de9afded
Merge pull request #10364 from brendandburns/e2e2
...
Add some sleep to the verification loop.
2015-06-25 16:31:07 -07:00
Brendan Burns
da938dc190
Add some sleep to the verification loop.
...
Programming is hard, sleep 5!
2015-06-25 14:50:46 -07:00
Maxwell Forbes
5e748c1d47
Merge pull request #10070 from lavalamp/e2eProxyFix
...
proxy e2e test improvements
2015-06-25 13:15:03 -07:00
Maxwell Forbes
66752bfb93
Merge pull request #10310 from nikhiljindal/local
...
Updating local-cluster-up to v1
2015-06-24 17:56:45 -07:00
nikhiljindal
e6c83bca5f
updating local-cluster-up to v1
2015-06-24 14:08:27 -07:00
Daniel Smith
5eb5b4a130
Test kubectl proxy in test-cmd.sh
2015-06-24 13:54:15 -07:00
Maxwell Forbes
26d3a4429d
Merge pull request #9816 from erictune/conformance
...
Revive conformance test.
2015-06-24 13:20:46 -07:00
Eric Tune
c5efb12a62
Revive conformance test.
...
Use KUBE_CONFIG_FILE instead of AUTH_CONFIG (and CERT_DIR).
Pass GINKGO_TEST_ARGS for a subset of e2e tests which
@erictune has deemed initially sufficient for conformance.
Allow GINKGO_TEST_ARGS to pass through hack/ginkgo-e2e.sh.
Set NUM_MINIONS (need better way to handle this).
Remove use of "KUBERNETES_CONFORMANCE_TEST" variable
and use of KUBERNETES_PROVIDER="conformance_test" convention,
both of which have no apparent purpose.
Allow unset testContext.provider in test/e2e/e2e_test.go
Allow testContext.Provider to be unset in providerIs().
2015-06-22 22:29:02 -07:00
Chao Xu
59b654c996
fix tests for 22f1b07858
2015-06-22 17:10:09 -07:00
CJ Cullen
ff0546da4f
Merge pull request #10133 from mbforbes/gkeLivingUpgrade
...
GKE upgrade tests
2015-06-20 15:02:11 -07:00
Max Forbes
434f968715
GKE upgrade tests
2015-06-20 09:44:19 -07:00
Jeff Lowdermilk
bdd3602eb7
Allow explicit pinned versions to be specified for jenkins runs
2015-06-19 16:19:02 -07:00
Satnam Singh
b964f3c911
Merge pull request #9739 from bprashanth/sno
...
Fix kubectl stop rc with sequence numbers
2015-06-19 15:30:26 -07:00
Prashanth Balasubramanian
9ed9bd1c4f
Add a generation number to the object meta of all objects, and status of rcs
2015-06-19 14:32:08 -07:00
Jeff Lowdermilk
9e4c5bc3b4
fix bash typo in jenkins/e2e.sh
2015-06-19 11:57:44 -07:00
Jeff Lowdermilk
8f5d8da7d6
yet another special case for e2e script
2015-06-19 11:13:55 -07:00
Satnam Singh
4bf6058919
Merge pull request #9988 from mikedanese/upgrade-pre-e2e
...
remove e2e run before cluster upgrade
2015-06-18 14:25:26 -07:00
Satnam Singh
d2c2f7e35e
Merge pull request #9993 from mikedanese/re-patch
...
reenable patch serverside using strategic-merge-patch
2015-06-18 14:13:10 -07:00
Jeff Lowdermilk
e72431033a
Fix a few e2e references to allow gke to test dogfood builds
2015-06-18 13:39:51 -07:00
Jeff Lowdermilk
1a7d811b4a
Add a test to test-cmd.sh for update --patch
2015-06-18 12:06:46 -07:00
Mike Danese
dbb47fe248
remove e2e run before cluster upgrade
2015-06-17 17:02:04 -07:00
Saad Ali
56083489e3
Merge pull request #9884 from brendandburns/gcr
...
Switch to loading busybox from gcr.
2015-06-17 11:38:24 -07:00
Saad Ali
9f60f3ce44
Merge pull request #9831 from jayunit100/local-up-from-docker
...
Allow docker/ or other source directory for local-up
2015-06-16 16:17:06 -07:00
Brendan Burns
9fda26e5da
Switch to loading busybox from gcr.
2015-06-16 11:31:33 -07:00
Jeff Lowdermilk
47901b7edd
Remove the last provider-specific handling in kubectl.sh, ginkgo-e2e.sh
2015-06-16 10:58:04 -07:00
jayunit100
ecdc025b61
Allow docker/ or other source directory for local-up
2015-06-15 19:44:35 -04:00
Fabio Yeon
3f62e420cb
Merge pull request #9784 from saad-ali/jenkinsSymlinkFix
...
Jenkins E2E build should not fail if symlink to junit file already exists
2015-06-15 13:37:09 -07:00
saadali
3bc1c18e12
Jenkins E2E build should not fail if symlink to junit file already exists.
2015-06-15 10:52:47 -07:00
Fabio Yeon
652eed5bce
Merge pull request #9479 from jayunit100/local-up-clean
...
[hack/] Modularize local-up into clean functions so its self documenting
2015-06-15 09:54:24 -07:00
Abhi Shah
22a4d555c6
Merge pull request #9517 from mikedanese/e2e-cluster-upgrade
...
e2e test cluster stability during master upgrade
2015-06-12 13:53:09 -07:00
Abhi Shah
52db576617
Merge pull request #8882 from mesosphere/upstream_k8sm
...
Upstream Kubernetes-Mesos framework
2015-06-12 06:36:20 -07:00
Mike Danese
de55e17f75
e2e test cluster stability during upgrade
2015-06-11 15:10:52 -07:00
Quinton Hoole
ec0dd2db00
Merge pull request #9678 from dchen1107/podstatus
...
Using bigger node for minions for jenkin-e2e tests.
2015-06-11 14:13:54 -07:00
Dawn Chen
a1065d1e24
Using bigger node for master node for jenkin-e2e tests.
2015-06-11 14:09:02 -07:00
Dawn Chen
bf6d4d6d7e
Using bigger node for minions for jenkin-e2e tests.
2015-06-11 14:07:41 -07:00
Abhi Shah
b37190b784
Merge pull request #9513 from lavalamp/fixFlake
...
improve output of kube_get_url & fix #6548
2015-06-11 11:28:32 -07:00
Abhi Shah
c5553af281
Merge pull request #9506 from cjcullen/resize
...
Make resize tests work on GKE
2015-06-11 11:05:07 -07:00
Abhi Shah
f4e3c97a0b
Merge pull request #9539 from quinton-hoole/2015-06-09-fix-e2e.sh
...
Don't require a space at the end of GINKGO_TEST_ARGS
2015-06-11 11:01:08 -07:00
James DeFelice
91238f8b44
Make building contrib code optional
2015-06-10 20:30:10 +00:00
jayunit100
a2ea0ba467
Modularize local-up into clean functions so its self documenting
2015-06-10 13:24:59 -04:00
Brendan Burns
1dc723b4cb
Fix testing to skip the release directories.
2015-06-10 09:22:18 -07:00
Quinton Hoole
e774717f6c
Don't require a space at the end of GINKGO_TEST_ARGS
...
8703#commitcomment-11336307
2015-06-09 15:48:13 -07:00
Daniel Smith
97ebc1aad9
improve output of kube_get_url
2015-06-09 15:26:09 -07:00
CJ Cullen
abc4e53648
Make resize tests work on GKE
2015-06-09 12:00:10 -07:00
krousey
cf4b4a313b
Merge pull request #9335 from swagiaal/e2e-test-prefix
...
Add a prefix option to e2e for use with resources
2015-06-09 11:50:02 -07:00
Sami Wagiaalla
899cf360ba
Add a prefix option to e2e for use with resources
...
This is helpful when cleaning manually up after a failed test in
shared a gce environment.
Signed-off-by: Sami Wagiaalla <swagiaal@redhat.com>
2015-06-09 13:29:41 -04:00
krousey
d8d295d647
Merge pull request #9385 from pmorie/local-privileged
...
Allow privileged containers in local cluster
2015-06-09 10:18:44 -07:00
krousey
b2449746b4
Merge pull request #9388 from nikhiljindal/verify-swagger
...
Adding a script to verify that swagger spec is updated
2015-06-08 16:49:46 -07:00
Paul Morie
5d7418707a
Allow privileged containers in local cluster
2015-06-08 19:40:12 -04:00
Filip Grzadkowski
b999e6655c
Do not overwrite bash variables in jenkins for scalability tests
2015-06-08 13:51:24 +02:00
nikhiljindal
a89d2da249
Adding a script to verify that swagger spec is updated
2015-06-08 04:04:57 -07:00
Chao Xu
5a54a0118d
fix
2015-06-04 16:35:24 -07:00
Chao Xu
21bea6e8e7
since v1 is defaultly enabled, don't explicit enable it in update-swagger-spec.sh
2015-06-04 11:57:20 -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
Daniel Smith
6e95388672
allow kubectl to be built statically
...
* Package kubectl in a container
* Add example with a pod using kubectl as a sidecar
2015-06-03 15:41:09 -07:00
Brian Grant
6898a7957c
Merge pull request #9206 from thockin/services-e2e
...
Make services e2e more debuggable
2015-06-03 13:14:15 -07:00
Tim Hockin
a2b7117ee4
Make services e2e more debuggable
2015-06-03 12:09:54 -07:00
Brian Grant
1845ca88fc
Merge pull request #9169 from caesarxuchao/hack/test-update-storage-objects.sh
...
enable v1 in hack/test-update-storage-objects.sh
2015-06-03 11:20:35 -07:00
Brian Grant
53b8728528
Merge pull request #9154 from caesarxuchao/hack/test-cmd.sh
...
enable v1 for hack/test-cmd.sh
2015-06-03 11:20:10 -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
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
3bdde89a68
Revert "Make services e2e test more debuggable"
2015-06-02 23:46:46 -07:00
Chao Xu
bdf43eb66d
enable v1 in hack/test-update-storage-objects.sh
2015-06-02 20:31:01 -07:00
Tim Hockin
e6a7f85d70
Make services e2e test more debuggable
2015-06-02 19:01:12 -07:00
Chao Xu
a4887bc6d4
enable v1 in hack/test-cmd.sh
2015-06-02 17:13:13 -07:00
Brian Grant
202343799e
Revert "Make services.sh e2e more reliable(?) and debuggable"
2015-06-02 16:54:12 -07:00
Brian Grant
6cfa260745
Revert "Make a namespace before using it"
2015-06-02 16:46:30 -07:00
Chao Xu
89c8949e78
add v1 to hack/test-integration.sh
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
Tim Hockin
3211f851ff
Make a namespace before using it
2015-06-02 14:37:18 -07:00
Brian Grant
ca733221e2
Merge pull request #8953 from thockin/services-e2e
...
Make services.sh e2e more reliable(?) and debuggable
2015-06-02 13:08:17 -07:00
Brian Grant
00005f4da8
Merge pull request #9088 from caesarxuchao/add-v1-swagger
...
add v1 swagger-spec; update existing swagger-spec
2015-06-02 10:41:58 -07:00
Tim Hockin
96caf1b582
Make services.sh e2e more reliable(?) and debuggable
2015-06-01 21:34:18 -07:00
Clayton Coleman
984692d205
Verify in hack/test-cmd
2015-06-01 19:24:01 -04:00
Chao Xu
66e4f7b053
add v1 swagger-spec; update existing swagger-spec
2015-06-01 16:16:20 -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
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
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
5aed389f0a
Merge pull request #8594 from nikhiljindal/swagger
...
Stop generating v1beta1,2 swagger spec
2015-05-29 16:27:02 -07:00
Justin Santa Barbara
1e99426d5b
Support for AWS ELB
2015-05-29 18:53:35 -04:00
Jeff Lowdermilk
0c44be833d
Stop supporting the minion alias for nodes in kubectl
2015-05-29 15:40:47 -07:00
Zach Loafman
2eccd87ccb
Adjust the Jenkins E2E_REPORT_DIR to something less silly
...
Start of a fix for complaints on #8852 .
2015-05-29 13:54:18 -07:00
nikhiljindal
c0e26d2f38
Modify update-swagger-spec to stop generating v1beta1,2 spec
2015-05-29 13:39:01 -07:00
Jeff Lowdermilk
90a5b8c845
Disable --patch for kubectl update
2015-05-29 09:31:49 -07:00
Tim Hockin
3005471100
Add new apiserver flags for clusterIP (nee portal)
...
Leave old flags but marked as deprecated
2015-05-28 16:10:44 -07:00
Tim Hockin
4318ca5a8b
Rename 'portal IP' to 'cluster IP' most everywhere
...
This covers obvious transforms, but not --portal_net, $PORTAL_NET and
similar.
2015-05-28 16:10:44 -07:00
Tim Hockin
081ab3abac
Merge pull request #8853 from caesarxuchao/HostToNodeName
...
update PodSpec.Host to PodSpec.NodeName
2015-05-28 15:50:12 -07:00
Tim Hockin
e456e8d63e
Merge pull request #8921 from wojtek-t/update_instructions
...
Update instructions on auto-generating conversions.
2015-05-28 15:01:24 -07:00
Tim Hockin
f8d0060d6e
Merge pull request #8388 from pmorie/third-party-tests
...
Run tests for third-party code
2015-05-28 14:58:26 -07:00
Chao Xu
9c1153322e
update PodSpec.Host to PodSpec.NodeName in /pkg/api/types.go and /pkg/api/v1beta3/types.go
2015-05-28 14:10:06 -07:00
Wojciech Tyczynski
cb414d8bc4
Delete generated deep-copy files before updating.
2015-05-28 17:41:58 +02:00
Tim Hockin
0721377646
Merge pull request #8596 from andronat/fix_8319
...
Kubectl command renaming (run-container to run and resize to scale)
2015-05-27 15:37:54 -07:00
Tim Hockin
a3d5367156
Merge pull request #8765 from eparis/hack-test-failure
...
Fix build with --use_go_build (e2e.test failure)
2015-05-27 12:43:04 -07:00
Tim Hockin
f69eb0af67
Merge pull request #8831 from a-robinson/tp
...
Adjust the sleep time before tearing down e2e clusters and add a rough formula
2015-05-27 12:42:49 -07:00
Anastasis Andronidis
9e3a540940
rename resize to scale
2015-05-27 19:08:06 +02:00
Tim Hockin
244b10e8ba
Merge pull request #8812 from jayunit100/kubectlparam
...
Parameterized kubectl once and for all :)
2015-05-27 09:35:23 -07:00
Piotr Szczesniak
cd2c7e16d7
Merge pull request #8320 from wojtek-t/generated_deep_copy
...
Code to automatically generate functions for DeepCopy
2015-05-27 13:14:07 +02:00
jayunit100
6e4160eeb0
Set option for KubectlPath (kubectl-path) for E2E tests.
2015-05-26 21:46:59 -04:00
Alex Robinson
9d61a95464
Adjust the sleep time before tearing down e2e clusters and add a rough formula
...
for determining how long the sleep should be.
2015-05-26 21:09:05 +00:00
Alex Robinson
0188e9af8c
Sleep before deleting the cluster to give the controller manager time to
...
delete any cloudprovider resources still around from the last test.
2015-05-26 20:11:03 +00:00
Wojciech Tyczynski
b2280db724
Deep-copy functions autogeneration.
2015-05-26 21:16:26 +02:00
Eric Paris
d8187e26d3
Fix build with --use_go_build (e2e.test failure)
...
hack/build-go.sh --use_go_build would fail because e2e.test was not being
excluded from the set of things that we were "go build"ing
Instead of walking all binaries, only walk static and nonstatic
```
$ hack/build-go.sh
+++ [0524 18:09:51] Building go targets for linux/amd64:
cmd/kube-proxy
cmd/kube-apiserver
cmd/kube-controller-manager
cmd/kubelet
cmd/hyperkube
cmd/kubernetes
plugin/cmd/kube-scheduler
cmd/kubectl
cmd/integration
cmd/gendocs
cmd/genman
cmd/genbashcomp
examples/k8petstore/web-server
github.com/onsi/ginkgo/ginkgo
test/e2e/e2e.test
+++ [0524 18:09:51] +++ Warning: stdlib pkg with cgo flag not found.
+++ [0524 18:09:51] +++ Warning: stdlib pkg cannot be rebuilt since /usr/lib/golang/pkg is not writable by eparis
+++ [0524 18:09:51] +++ Warning: Make /usr/lib/golang/pkg writable for eparis for a one-time stdlib install, Or
+++ [0524 18:09:51] +++ Warning: Rebuild stdlib using the command 'CGO_ENABLED=0 go install -a -installsuffix cgo std'
+++ [0524 18:09:51] +++ Falling back to go build, which is slower
**************can't load package: package github.com/GoogleCloudPlatform/kubernetes/test/e2e/e2e.test: cannot find package "github.com/GoogleCloudPlatform/kubernetes/test/e2e/e2e.test" in any of:
/usr/lib/golang/src/github.com/GoogleCloudPlatform/kubernetes/test/e2e/e2e.test (from $GOROOT)
/storage/kubernetes/_output/local/go/src/github.com/GoogleCloudPlatform/kubernetes/test/e2e/e2e.test (from $GOPATH)
/storage/kubernetes/Godeps/_workspace/src/github.com/GoogleCloudPlatform/kubernetes/test/e2e/e2e.test
!!! Error in /storage/kubernetes/hack/lib/golang.sh:339
'go build -o "${outfile}" "${goflags[@]:+${goflags[@]}}" -ldflags "${version_ldflags}" "${binary}"' exited with status 1
Call stack:
1: /storage/kubernetes/hack/lib/golang.sh:339 kube::golang::build_binaries_for_platform(...)
2: /storage/kubernetes/hack/lib/golang.sh:488 kube::golang::build_binaries(...)
3: hack/build-go.sh:26 main(...)
Exiting with status 1
!!! Error in /storage/kubernetes/hack/lib/golang.sh:406
'( kube::golang::setup_env; local version_ldflags; version_ldflags=$(kube::version::ldflags); local host_platform; host_platform=$(kube::golang::host_platform); local goflags; eval "goflags=(${KUBE_GOFLAGS:-})"; local use_go_build; local -a targets=(); local arg; for arg in "$@";
do
if [[ "${arg}" == "--use_go_build" ]]; then
use_go_build=true;
else
if [[ "${arg}" == -* ]]; then
goflags+=("${arg}");
else
targets+=("${arg}");
fi;
fi;
done; if [[ ${#targets[@]} -eq 0 ]]; then
targets=("${KUBE_ALL_TARGETS[@]}");
fi; local -a platforms=("${KUBE_BUILD_PLATFORMS[@]:+${KUBE_BUILD_PLATFORMS[@]}}"); if [[ ${#platforms[@]} -eq 0 ]]; then
platforms=("${host_platform}");
fi; local binaries; binaries=($(kube::golang::binaries_from_targets "${targets[@]}")); local parallel=false; if [[ ${#platforms[@]} -gt 1 ]]; then
local gigs; gigs=$(kube::golang::get_physmem); if [[ ${gigs} -gt ${KUBE_PARALLEL_BUILD_MEMORY} ]]; then
kube::log::status "Multiple platforms requested and available ${gigs}G > threshold ${KUBE_PARALLEL_BUILD_MEMORY}G, building platforms in parallel"; parallel=true;
else
kube::log::status "Multiple platforms requested, but available ${gigs}G < threshold ${KUBE_PARALLEL_BUILD_MEMORY}G, building platforms in serial"; parallel=false;
fi;
fi; if [[ "${parallel}" == "true" ]]; then
kube::log::status "Building go targets for ${platforms[@]} in parallel (output will appear in a burst when complete):" "${targets[@]}"; local platform; for platform in "${platforms[@]}";
do
( kube::golang::set_platform_envs "${platform}"; kube::log::status "${platform}: go build started"; kube::golang::build_binaries_for_platform ${platform} ${use_go_build:-}; kube::log::status "${platform}: go build finished" ) &> "/tmp//${platform//\//_}.build" &
done; local fails=0; for job in $(jobs -p);
do
wait ${job} || let "fails+=1";
done; for platform in "${platforms[@]}";
do
cat "/tmp//${platform//\//_}.build";
done; exit ${fails};
else
for platform in "${platforms[@]}";
do
kube::log::status "Building go targets for ${platform}:" "${targets[@]}"; kube::golang::set_platform_envs "${platform}"; kube::golang::build_binaries_for_platform ${platform} ${use_go_build:-};
done;
fi )' exited with status 1
Call stack:
1: /storage/kubernetes/hack/lib/golang.sh:406 kube::golang::build_binaries(...)
2: hack/build-go.sh:26 main(...)
Exiting with status 1
```
2015-05-24 19:16:26 -04:00
Quinton Hoole
b8ca74ab66
Don't clobber GINKGO_TEST_ARGS in hack/jenkins/e2e.go
2015-05-22 14:54:05 -07:00
Dawn Chen
cc6a31354e
Merge pull request #8169 from kargakis/expose-use-resource-builder
...
expose: Use resource builder
2015-05-22 12:29:24 -07:00
Jerzy Szczepkowski
ef965a60f2
Implementation of e2e test that resizes cluster (works on GCE).
2015-05-22 02:59:25 +02:00
Dawn Chen
b33c4259f8
Merge pull request #8566 from markturansky/generator_godep
...
Added GOPATH vars and godep to generator script
2015-05-21 09:34:12 -07:00
kargakis
30958f892d
expose: Use resource builder
...
Plus:
* Rename flag --service-name to --name
* Some refactoring
2015-05-20 23:55:07 +02:00
Wojciech Tyczynski
2df11cea32
Automatically generate conversions
2015-05-20 17:11:18 +02:00
markturansky
10258c46d7
Added GOPATH vars and godep to generator script
2015-05-20 10:56:54 -04:00
Jeff Grafton
e968b6be81
Merge pull request #8442 from mbforbes/e2ePodsReady
...
Ensure pods both running and ready before starting e2e tests
2015-05-19 13:40:08 -07:00
Tim Hockin
97abc19810
Merge pull request #8299 from thockin/import-names
...
rename imported pkgs for readability
2015-05-19 12:01:57 -07:00
Tim Hockin
76a0a7dff2
Shush minor stdout noise on builds
2015-05-19 11:24:44 -07:00
Tim Hockin
70c94fad6d
Don't rename api imports in conversions
2015-05-19 11:21:21 -07:00
Max Forbes
1da46ca3d0
Ensure pods both running and ready before starting e2e tests
2015-05-19 10:53:02 -07:00
Jeff Grafton
90f61f3005
Change into the output directory before running go test -c.
2015-05-19 10:04:27 -07:00
Jeff Grafton
bf1de72f4a
Revert "Revert "Use native Ginkgo test runner instead of cmd/e2e (attempt N)""
...
This reverts commit f4bb6aa37d
.
2015-05-19 09:13:08 -07:00
Quinton Hoole
f4bb6aa37d
Revert "Use native Ginkgo test runner instead of cmd/e2e (attempt N)"
2015-05-18 21:04:26 -07:00
Nikhil Jindal
0a6007b299
Merge pull request #8429 from jackgr/master
...
Fix portability bugs in hack/local-up-cluster.sh
2015-05-18 18:17:47 -07:00
Tim Hockin
2307350d1b
Merge pull request #8443 from wojtek-t/conversion_improvements
...
Script for regenerate auto-generated conversions.
2015-05-18 17:24:08 -07:00
Wojciech Tyczynski
9a93206774
Script for automatically generate conversions.
2015-05-19 02:17:58 +02:00
Daniel Smith
5e056f119d
Merge pull request #6694 from bprashanth/bench
...
Add a simple master benchmark and a wrapper to run it.
2015-05-18 14:42:24 -07:00
jackgr
87a26e2fd2
Fixes portability issues in cleanup() that cause the pid expansion to fail when host_os=darwin by replacing ps --ppid and ps --pid with pgrep -P and ps -p, and by suppressing header line in output with ps -o pid=.
2015-05-18 12:14:21 -07:00
Jeff Grafton
35c4b92e92
Make e2e compatible with Go 1.3 and OS X.
...
Go 1.4 added the -o flag to the "go test" command as well as support for
the TestMain() function, so we must work around these not existing in
Go 1.3.
The version of readlink on OS X does not have the -f flag - so we'll
just skip canonicalizing the path.
2015-05-18 12:11:33 -07:00
Jeff Grafton
b79fae5d71
Revert "Revert "Once again, use native Ginkgo test runner instead of cmd/e2e.""
...
This reverts commit 67da1ac0c8
.
2015-05-18 11:39:21 -07:00
Victor Marmol
d431e98604
Merge pull request #8234 from nak3/terminate-child-process-local-up-cluster
...
Ensuring that we never call kill with empty arguments in local-cluster-up
2015-05-18 08:40:41 -07:00
Paul Morie
3b8e4d97a1
Run tests for third-party code
2015-05-16 16:52:23 -04:00
Jeff Lowdermilk
553f9f822b
Add ga-beacon analytics to gendocs scripts
...
hack/run-gendocs.sh puts ga-beacon analytics link into all md files,
hack/verify-gendocs.sh verifies presence of link.
2015-05-15 18:56:38 -07:00
Daniel Smith
cf337051e0
Merge pull request #7819 from nikhiljindal/etcdTranslation
...
Adding a script to update etcd objects as per the latest API Version
2015-05-15 18:28:36 -07:00
Prashanth Balasubramanian
4200033c0a
Add a simple master benchmark and a wrapper to run it.
2015-05-15 17:30:17 -07:00
Jeff Grafton
67da1ac0c8
Revert "Once again, use native Ginkgo test runner instead of cmd/e2e."
...
This change broke compilation on go 1.3 and running e2e tests on OS X.
This reverts commit 86b023fdd6
.
2015-05-15 16:41:55 -07:00
nikhiljindal
fa9f864782
Adding a script to update etcd objects
2015-05-15 16:20:35 -07:00
Kenjiro Nakayama
4c859c7e35
Ensuring that we never call kill with empty arguments in local-cluster-up
2015-05-16 07:50:31 +09:00
Quinton Hoole
c4fa78509d
Merge pull request #7653 from ixdy/native-ginkgo-runner
...
Once again, use native Ginkgo test runner instead of cmd/e2e
2015-05-15 15:29:19 -07:00
David Oppenheimer
b8c469e4f0
Merge pull request #8134 from nikhiljindal/test-go
...
Fixing the number of times our unit tests are run
2015-05-15 15:28:34 -07:00
Jeff Grafton
86b023fdd6
Once again, use native Ginkgo test runner instead of cmd/e2e.
...
This commit deletes cmd/e2e and updates hack/ginkgo-e2e.sh to use the
'ginkgo' command instead. All logic from cmd/e2e/e2e.go and
test/e2e/driver.go have been combined into the new file
test/e2e/e2e_test.go.
The test tarball now includes a built version of the test/e2e test
binary, which includes all tests under test/e2e. This was accomplished
by updating the build scripts to use 'go test -c' when a target name
ended with '.test', and adding a dependency on test/e2e/e2e.test.
This prebuilt test binary is passed to the Ginkgo runner in
hack/ginkgo-e2e.sh. In a future change, we can add support to run
Ginkgo against the source tree if it is available.
This change is generally intended to have no externally visible changes,
aside from the following caveats:
- The -t/--tests flag has been removed
- Calling cmd/e2e/e2e directly obviously won't work, but that was never
intended to be supported anyway
- If the GINKGO_PARALLEL environment variable is set to y, then ginkgo
will run test specs in parallel. (Currently defaults to n, since some
tests are broken in this mode.)
Additionally, several tests which made poor assumptions about cwd or
used testContext before it had been set have been fixed.
2015-05-15 11:54:53 -07:00
Rohit Jnagal
bd0156c65a
Merge pull request #8204 from jlowdermilk/gke-todos
...
Cleanup some todos for gke + rip out dead code
2015-05-14 10:30:24 -07:00
Yifan Gu
621dc01f42
Remove 'auth-path' in the arguments for kubelet.
...
Otherwise kubelet will fail to create the client because it can't
find the nonexisting auth file.
2015-05-13 16:26:22 -07:00
Paul Morie
8fcf470167
Merge pull request #8174 from liggitt/local_up_cluster
...
Fix key generation in local-up-cluster.sh
2015-05-13 17:33:25 -04:00
Jeff Lowdermilk
3f3760a14a
Cleanup some todos for gke + rip out dead AuthConfig code
2015-05-13 13:54:02 -07:00
Tim Hockin
8e7970f2a1
mkdir -p in doc generation
2015-05-13 12:50:25 -07:00
nikhiljindal
0e9d7d1451
Fixing the number of times our unit tests are run
2015-05-13 09:56:13 -07:00
Jordan Liggitt
b552503c07
Fix key generation in local-up-cluster.sh
2015-05-13 10:04:40 -04:00
Robert Bailey
c47b9178b4
Replace the auth config file with a kubeconfig file when
...
starting the kubelet on GCE.
2015-05-13 01:03:28 -07:00
Nikhil Jindal
d75bd8bf2a
Merge pull request #7101 from liggitt/service_account
...
ServiceAccounts
2015-05-12 10:23:41 -07:00
Max Forbes
579aed4161
Add zone to jenkins version-getting call.
2015-05-12 09:23:41 -07:00
Max Forbes
a161800e13
Allow Jenkins to get the version from the GKE server.
2015-05-11 17:31:29 -07:00
Jordan Liggitt
7e14a80f63
ServiceAccount admission plugin
2015-05-11 17:18:06 -04:00
Jordan Liggitt
db1f0dc906
JWT token generation/verification
2015-05-11 17:18:06 -04:00
saadali
94643ce6c9
Modify Jenkins E2E to not fetch/unpack Kuberenetes, when deployment is
...
disabled,
2015-05-11 12:31:31 -07:00
Nikhil Jindal
3d8f94ed59
Merge pull request #8040 from nak3/terminate-child-process-local-up-cluster
...
Terminate child process by cleanup() in local-up-cluster.sh
2015-05-11 10:11:28 -07:00
Jeff Lowdermilk
6523d18130
Future proof GKE kubeconfig handling in e2e driver
2015-05-11 09:57:54 -07:00
Kenjiro Nakayama
e39f29ca16
Terminate child process by cleanup() in local-up-cluster.sh
2015-05-11 00:07:22 +09:00
Shawn Smith
ecce796ee8
Use Fatalf
2015-05-10 13:08:55 +09:00
Justin SB
a442918d31
AWS: Don't try to copy gce_keys in jenkins e2e job
...
Should fix e2e builds.
For the AWS jenkins jobs, I've been using the secret plugin.
2015-05-09 08:55:35 -07:00
Max Forbes
590d3873ea
Make jenkins e2e runs reuse one key, take two.
2015-05-08 15:52:56 -07:00
Zach Loafman
c6400cab1f
Revert "Make jenkins e2e runs reuse one SSH key."
2015-05-08 15:46:42 -07:00
Max Forbes
41cc8027ab
Make jenkins e2e runs reuse one key.
2015-05-08 14:51:42 -07:00
saadali
7cc25842fa
Add control variables to Jenkins E2E script
2015-05-07 17:01:25 -07:00
CJ Cullen
fbd125e4e2
Remove restriction that cluster-cidr be a class-b
2015-05-06 15:01:13 -07:00
Paul Morie
5c3bf0b08f
Remove unnecessary bind-mount from dockerized kubelet run
2015-05-06 15:38:17 -04:00
Paul Morie
fa1d065595
Add ability to dockerize kubelet in local cluster
2015-05-06 09:36:52 -04:00
Zach Loafman
875e83a741
Revert "Revert "Security context - types, kubelet, admission""
2015-05-05 16:02:13 -07:00
Zach Loafman
f48904fd5e
Revert "Security context - types, kubelet, admission"
2015-05-05 15:20:39 -07:00
Yifan Gu
102a2c4269
hack/local-up-cluster.sh: Add env to enable rkt in local cluster.
...
This makes testing rkt easier.
2015-05-05 14:07:10 -07:00
Paul Morie
1625e231dd
Merge pull request #7343 from pweil-/security-context-types
...
Security context - types, kubelet, admission
2015-05-05 16:26:09 -04:00
Eric Paris
63e3366581
Merge pull request #7757 from nak3/build_genbashcomp_with_make_all
...
Add genbashcomp to KUBE_TEST_TARGETS
2015-05-05 13:47:11 -05:00
Paul Weil
982bf19c20
security context initial implementation - squash
2015-05-05 13:46:13 -04:00
Jeff Lowdermilk
87cdc3f032
Merge pull request #7672 from eparis/boilerplate-python
...
Check license boilerplate for python files
2015-05-05 09:23:36 -07:00
Jeff Lowdermilk
c1ae69da14
Merge pull request #7705 from bprashanth/rollingupdate_2
...
Reliable updates in rollingupdate
2015-05-05 09:23:25 -07:00
Kenjiro Nakayama
4c9f2d89ba
Add genbashcomp to KUBE_TEST_TARGETS
2015-05-05 16:42:23 +09:00
Eric Paris
c9cd50dc49
Check python files for valid license boilerplate
2015-05-04 18:37:47 -04:00
Prashanth Balasubramanian
faa65cbd20
More reliable updates in rollingupdate
2015-05-04 15:29:30 -07:00
Daniel Smith
838b59cb4d
make benchmark able to run only specific packages
2015-05-04 14:28:37 -07:00
Clayton Coleman
dd8184247e
Merge pull request #7629 from caesarxuchao/new-fix-7260-7491
...
Change the order the different versions of API are registered
2015-05-04 15:01:59 -04:00
Jeff Lowdermilk
dda0af07b3
Merge pull request #7654 from eparis/boilerplate-speedup
...
Boilerplate speedup
2015-05-04 09:46:21 -07:00
Wojciech Tyczynski
690c991415
Merge pull request #7692 from BenTheElder/e2e_fixes
...
Fix typo in e2e
2015-05-04 12:01:22 +02:00
Wojciech Tyczynski
a7205b1fe9
Merge pull request #7685 from jayunit100/etcd-minor
...
(minor) Add pgrep debugging to etcd error
2015-05-04 11:21:02 +02:00
BenTheElder
129d7f8d26
Fix typo in e2e
...
Correct comment in e2e.go ’…at least 3 minions running’ -> ‘…at least minMinionCount
minions running’.
2015-05-04 04:42:07 -04:00
jayunit100
cdf068495a
(minor) Add pgrep debugging to etcd error
2015-05-03 16:59:45 +00:00
Eric Paris
f4d0b8df3a
Do all boilerplate checks in 1 python call
...
It's just a little bit faster.....
BEFORE:
$ time hack/verify-boilerplate.sh
real 0m9.378s
user 0m3.405s
sys 0m13.906s
AFTER:
$ time hack/verify-boilerplate.sh
real 0m0.181s
user 0m0.114s
sys 0m0.068s
2015-05-01 20:46:57 -04:00
Chao Xu
4787c66214
Register the API versions to the DefaultRESTMapper in the order of preferred versions first.
...
This makes kubectl sends requests to URLs in the format defined by the latest API version.
2015-05-01 15:14:15 -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
Zach Loafman
230449f122
Merge pull request #7593 from ixdy/jenkins-godep
...
Build github.com/onsi/ginkgo/ginkgo as a part of the release
2015-05-01 14:10:31 -07:00
Jeff Grafton
1359125a4e
Build github.com/onsi/ginkgo/ginkgo as a part of the release.
...
Additionally, add hack/lib to the testing tarball.
2015-05-01 11:29:11 -07:00
Jeff Lowdermilk
ec9942e995
Merge pull request #7540 from bprashanth/rollingupdate
...
Fix rolling update --image
2015-05-01 10:07:46 -07:00
Alex Robinson
1bb76633da
Make hack/test-go.sh friendlier to OS X bash by not using a -1 array index.
...
Without this, everytime I run test-go.sh I get the following error:
./hack/test-go.sh: line 215: apiVersions: bad array subscript
2015-04-30 14:56:02 -07:00
Quinton Hoole
bfaf976df7
Revert "Use native Ginkgo test runner instead of cmd/e2e"
2015-04-30 13:45:46 -07:00
Quinton Hoole
3602884d32
Merge pull request #7462 from ixdy/native-ginkgo-runner
...
Use native Ginkgo test runner instead of cmd/e2e
2015-04-30 13:27:04 -07:00
Prashanth Balasubramanian
c8ea0c27e9
Fix rollingupdate --image
2015-04-30 11:28:18 -07:00
CJ Cullen
615906ccca
Fix parallel-e2e.sh to work on my macbook (bash v3.2)
2015-04-29 10:52:21 -07:00
Jeff Grafton
57750ccb51
Use native Ginkgo test runner instead of cmd/e2e.
...
This commit deletes cmd/e2e and updates hack/ginkgo-e2e.sh to use the
'ginkgo' command instead. All logic from cmd/e2e/e2e.go and
test/e2e/driver.go have been combined into the new file
test/e2e/e2e_test.go.
Additionally, several tests which made poor assumptions about cwd or
used testContext before it was set have been fixed.
This change is generally intended to have no externally visible changes,
aside from the following caveats:
- The -t/--tests flag has been removed
- Calling cmd/e2e/e2e directly obviously won't work, but that was never
supported anyway
- If the GINKGO_PARALLEL environment variable is set to y, then ginkgo
will run test specs in parallel. (Currently defaults to n, since some
tests are broken in this mode.)
2015-04-28 18:42:37 -07:00
Alex Robinson
79b9b1b0ef
Build hyperkube into a static binary.
2015-04-28 02:13:09 +00:00
Tim Hockin
a3d45fada8
Change flags to use dashes in help
2015-04-27 15:11:03 -07:00
Daniel Smith
83093af8b0
Merge pull request #5707 from endocode/kbeecher/etcd_prefix
...
Adds ability to define a prefix for etcd paths
2015-04-27 13:37:43 -07:00
Karl Beecher
a7623ca6cc
Adds ability to define a prefix for etcd paths
...
The API server can be supplied (via a command line flag) with a custom
prefix that is prepended to etcd resources paths.
Refs: #3476
2015-04-24 12:12:39 +02:00
Prashanth Balasubramanian
080bc5b3dd
Configurable log levels for integration tests.
2015-04-23 18:12:48 -07:00
David Oppenheimer
e8b28c59c6
Merge pull request #7228 from jlowdermilk/describe-examples
...
Add examples for kubectl describe, make gendocs less spammy
2015-04-23 16:08:35 -07:00
Jeff Lowdermilk
a8e2f6e9c8
Add examples for kubectl describe, and make gendocs less spammy
...
Makes hack/{run/verify}-gendocs.sh ignore generated-timestamp-only
changes so minor changes to kubectl don't have to touch the entire
set of md docs.
2015-04-23 14:53:10 -07:00
nikhiljindal
1e323d77bc
Updating the guestbook example to v1beta3
2015-04-23 14:34:36 -07:00
Brian Grant
97302af015
Merge pull request #5012 from smarterclayton/podtemplates
...
Pod templates as their own type
2015-04-22 11:50:24 -07:00
Zach Loafman
e055ee0b71
Use KUBE_SKIP_UPDATE in Jenkins
...
After #7146 , we need to protect Jenkins from the internal gcloud bug (again).
2015-04-22 10:08:09 -07:00
Clayton Coleman
10c2ace6bf
Pod Templates
2015-04-22 12:54:25 -04:00
Max Forbes
5880166845
Add support for using released tars (instead of just ci) as well as using a stable version (instead of just latest).
2015-04-21 15:56:23 -07:00
Daniel Smith
1ebe994ba7
Merge pull request #7056 from kubernetes-ui/kubernetes-ui-dashboard
...
Kubernetes UI with Dashboard component
2015-04-21 12:16:47 -07:00
Robert Bailey
a50e02bb3b
Merge pull request #7078 from jlowdermilk/gke-kubectl
...
Use standalone kubectl for gke, remove special case for vagrant
2015-04-21 12:11:45 -07:00
Jeff Lowdermilk
70a576e25a
Use standalone kubectl for gke, remove special case for vagrant
...
also fix hack/local-up-cluster.sh kubeconfig instructions
2015-04-21 11:01:45 -07:00
Patrick Reilly
716d98c39e
initial commit of chrome only of new replacement web ui
...
remove node modules
make new data file for web ui
initial commit of dashboard
switch back to non SSL request
move port splitting to common place; add to node resource location
Signed-off-by: Patrick Reilly <patrick@kismatic.io>
various path fixes
make svg path relative
work around missing mime type
Signed-off-by: Patrick Reilly <patrick@kismatic.io>
fix paths
fix karma path
remove bad protractor test
2015-04-21 07:24:06 -07:00
Wojciech Tyczynski
21788d8e66
Merge pull request #7033 from nak3/add-cert_dir-option-to-apiserver
...
Add cert_dir option to kube-apiserver
2015-04-21 09:16:01 +02:00
Jeff Lowdermilk
89fba5ff63
Merge pull request #6942 from smarterclayton/simplify_object_export
...
List output with differing types should be more resilient
2015-04-20 13:48:57 -07:00
Jeff Grafton
fafd1df7a6
Revert "Continue after failed unit test"
...
This reverts commit f70752d9e1
.
This change caused Travis and Shippable to report success on all test
runs, even if any tests failed or timed out.
2015-04-20 11:59:18 -07:00
Clayton Coleman
545a5a865f
List output with differing types should be more resilient
...
kubectl get can output a series of objects as a List in versioned
form, but not all API objects are available in the same schema.
Make the act of converting a []runtime.Object to api.List more
robust and add a test to verify its behavior in Get.
Makes it easier for client code to output unified objects.
2015-04-20 14:44:16 -04:00
Jeff Lowdermilk
196b3d066d
Merge pull request #6919 from zmerlynn/sharded-e2e
...
Add hack/parallel-e2e.sh to run hack/e2e.go on multiple clusters
2015-04-20 11:34:18 -07:00
Zach Loafman
a5f7f4c9a1
Add hack/parallel-e2e.sh to run hack/e2e.go on multiple clusters
...
$ hack/parallel-e2e.sh
Usage: hack/parallel-e2e.sh <number of clusters> [options to hack/e2e.go]
Output is logged to _output/e2e/<prefix>. Test failures are aggregated
by slurping the junit results from the parallelized output and
summarized at the end of the run.
2015-04-20 11:18:09 -07:00
Jeff Lowdermilk
3787fc5eca
set KUBECONFIG in common.sh, default to new location
...
and preserve value in ginkgo e2e test driver
2015-04-20 11:07:35 -07:00
Kenjiro Nakayama
51d0443dde
Add cert_dir option to kube-apiserver
2015-04-19 17:40:08 +09:00
Eric Paris
2915c90200
Remove -installsuffix from go build
...
This is a go install argument which has no use in go build. Clean it up.
2015-04-17 15:33:00 -04:00
Eric Paris
d7fefb6f39
Indicate progress when doing a go build
...
It is slow.
2015-04-17 15:32:26 -04:00
Brian Grant
95183dde5a
Merge pull request #6988 from zmerlynn/flock_gcloud_update
...
Use flock around gcloud component update to avoid race
2015-04-17 12:23:58 -07:00
Brian Grant
2cd04755c5
Merge pull request #6953 from eparis/cgo-build-fallback
...
fall back to go build when static cgo not possible
2015-04-17 12:03:50 -07:00
Jeff Lowdermilk
2a8291a67e
Retry Move KUBECONFIG to common.sh, change default to new location
2015-04-17 10:33:12 -07:00
Zach Loafman
d5f02b2970
Use flock around gcloud component update to avoid race
2015-04-17 09:50:15 -07:00
Clayton Coleman
3bc42f1635
Merge pull request #6573 from kargakis/setup-resource-aliases
...
Support setting up aliases for groups of resources
2015-04-17 11:16:30 -04:00
kargakis
9d056c6bd8
Support setting up aliases for groups of resources
...
Closes #5278
2015-04-17 16:31:59 +02:00
Eric Paris
5fb8602c65
fall back to go build when static cgo not possible
...
Instead of just failing, use go build if people don't have the magic cgo
stuff we need build-able/write-able.
2015-04-17 09:50:54 -04:00
Zach Loafman
0232888a4b
Merge pull request #6975 from zmerlynn/dont_error_on_update
...
Don't error out if gcloud update fails
2015-04-17 06:17:12 -07:00
Zach Loafman
db7e640bb5
Don't error out if gcloud update fails
...
Fixes #6974
2015-04-17 06:16:17 -07:00
Zach Loafman
e87ae8f8e3
Merge pull request #6891 from nak3/fix_obsolete_option
...
Replace obsolete tests option
2015-04-16 15:21:15 -07:00
Eric Tune
14eb70b1dc
Merge pull request #6899 from nak3/fix-unittest-after-fail
...
Continue after failed unit test
2015-04-16 13:21:45 -07:00
Kenjiro Nakayama
f70752d9e1
Continue after failed unit test
2015-04-16 16:53:07 +09:00
Kenjiro Nakayama
1d804629b6
Escape integration test codes from unit tests
2015-04-16 15:41:03 +09:00
Kenjiro Nakayama
9a7b842d17
Replace obsolete tests option
2015-04-16 11:49:55 +09:00
Brian Grant
29e68ad392
Merge pull request #6790 from nikhiljindal/encoder
...
Removing references to v1beta1 from hack/ and test/
2015-04-15 10:25:33 -07:00
Wojciech Tyczynski
586bae7948
Bigger performance test cluster
2015-04-15 09:25:35 +02:00
Dawn Chen
012a35bd02
Merge pull request #6816 from jlowdermilk/make-clean-is-your-friend
...
Suggest running make clean on verify-gendocs failure
2015-04-14 15:42:16 -07:00
Jeff Lowdermilk
797903798e
Suggest running make clean on verify-gendocs failure
2015-04-14 13:21:43 -07:00
Jeff Lowdermilk
b59266ad84
Merge pull request #6798 from xiang90/fix_doc
...
docs: fix docs for #6776
2015-04-14 13:15:10 -07:00
Xiang Li
5466dd8138
hack: reliable sort in util.sh
2015-04-14 12:52:28 -07:00
nikhiljindal
a2c29d48ec
Removing references to v1beta1 from hack/ and test/
2015-04-14 11:31:37 -07:00
Dawn Chen
913dc4e490
Revert "Use a helper to find built binaries"
2015-04-14 11:24:49 -07:00
Dawn Chen
7bfe57b30d
Merge pull request #6783 from eparis/use-hack-lib-find-binaries
...
Use a helper to find built binaries
2015-04-14 09:18:14 -07:00
Wojciech Tyczynski
8fb22a750b
Explicitly define scalability test suite
2015-04-14 14:55:11 +02:00
Fabio Yeon
e99141de0d
Merge pull request #6729 from smarterclayton/chaosclient
...
Add a new Chaos transport that can simulate network failure and add it to the kubelet
2015-04-13 16:06:53 -07:00
Eric Paris
6d4ab258f0
Use a helper to find built binaries
...
We should not be determining the arch/os and all the possible
directories binaries can live. Let a hack/lib/ helper do it for us.
2015-04-13 18:57:36 -04:00
Clayton Coleman
ca335d7be9
Add support for chaos to Kubelet and hack/local-up-cluster.sh
2015-04-13 18:21:20 -04:00
Eric Paris
26149bd83d
Doc generation should remove old doc files
...
Right now, our doc generation scripts notice if you make changes and
don't regen docs, don't include new docs, etc. But they miss it if your
changes should have REMOVED a doc. Both kubectl-apiversion and
kubectl-clusterinfo should have been removed, but weren't.
This patch starts tracking all generated doc files and will cause
problems if files should be removed and aren't.
2015-04-13 17:48:24 -04:00
Eric Paris
d7a89117b7
Use a helper to find built binaries
...
Instead of doing it all outselves....
2015-04-13 15:27:55 -04:00
Eric Paris
ebb0affc21
Automatically generate bash completions for kubectl
2015-04-13 15:27:55 -04:00
Dawn Chen
f345aec360
Merge pull request #6762 from justinsb/e2e_fix_aws
...
Specify equivalent instance types for AWS, in hack/jenkins/e2e.sh
2015-04-13 10:16:36 -07:00
Jeff Lowdermilk
4a41a7ffe5
Merge pull request #6745 from eparis/auto-gen-markdown
...
Auto gen markdown
2015-04-13 10:00:55 -07:00
Justin Santa Barbara
cf02d8cef2
Specify equivalent instance types for AWS, in hack/jenkins/e2e.sh
...
This should unbreak the AWS e2e tests
2015-04-13 08:28:24 -07:00
Wojciech Tyczynski
f7fbc2d0c5
Prepare for running scalability test on Jenkins
2015-04-13 11:36:12 +02:00
Eric Paris
263dc981db
Use spf13/cobra md generation instead of doing it outselves
2015-04-12 15:03:13 -04:00
derekwaynecarr
2484adbbfe
Local-up-cluster does not have admission control
2015-04-10 15:50:33 -04:00
Yu-Ju Hong
faf47b6f0b
Limit the number of concurrent tests in integration.go
...
Integration test often time out because the machine is loaded. Instead of
increasing timeout, this change hopes to address the issue by limiting the
number of tests running simultaneously.
Add a new flag in integration.go to specify the maximum number of concurrent
tests. Set the default in travis and shippable configurations to be 4.
2015-04-09 16:54:23 -07:00
nikhiljindal
08d9e244f7
Removing some references to v1beta1 from test code
2015-04-08 17:28:06 -07:00
Brian Grant
c4cbc9bc46
Merge pull request #6581 from nikhiljindal/v1beta3
...
Moving v1beta1 kubectl examples to v1beta3
2015-04-08 14:01:57 -07:00
nikhiljindal
fe60be3179
Moving v1beta1 kubectl examples to v1beta3
2015-04-08 13:08:13 -07:00
Tim Hockin
f9a3315367
Remove useless e2e noise
2015-04-07 17:52:32 -07:00
Rohit Jnagal
8b4914dd0f
Merge pull request #6472 from zmerlynn/fix_build_status
...
Add kube::util::wait-for-jobs to report status, unlike builtin wait
2015-04-06 13:39:58 -07:00
Zach Loafman
2bc5dd559a
Add kube::util::wait-for-jobs to report status, unlike builtin wait
...
** Sigh **
Fixes an additional complaint in #6463
2015-04-06 11:11:49 -07:00
Nikhil Jindal
7270010a3a
Merge pull request #6444 from you-n-g/master
...
etcd should be started after the trap func set
2015-04-06 10:50:14 -07:00
Rohit Jnagal
6b51476791
Merge pull request #6460 from jayunit100/gofmtmsg
...
Make gofmt message precise (-s option)
2015-04-06 08:58:20 -07:00
markturansky
95bd170ca2
PV & PVC Client implementation
2015-04-06 08:46:43 -04:00
jayunit100
8d6c163650
Make gofmt message explicit about -s option
2015-04-06 00:12:06 -04:00
Young
802610b13a
etcd should be started after the trap func set
2015-04-05 03:41:26 -04:00
Brian Grant
b0b6418ca3
Merge pull request #6377 from nikhiljindal/kubevtl
...
Updating components to use v1beta3
2015-04-03 15:58:09 -07:00
nikhiljindal
f2b72931fc
Updating components to use v1beta3
2015-04-03 15:19:14 -07:00
Brendan Burns
88dbdc4a69
Merge pull request #6203 from brendandburns/qps
...
Add a QPS limiter to the kubernetes client.
2015-04-03 14:24:29 -07:00
Eric Tune
e49424785e
Merge pull request #6380 from roberthbailey/kubelet-ssl
...
Configure the kubelet to use HTTPS (take 2)
2015-04-03 13:43:00 -07:00
Brendan Burns
3f98ac07c2
Add a QPS limiter to the kubernetes client.
2015-04-03 11:58:51 -07:00
Zach Loafman
c0ed73a10d
Only build in parallel if the build machine is >8G
2015-04-02 17:56:45 -07:00
Zach Loafman
e159c02a2a
Completely neutral commit that just factors each platform build out to
...
a function (to make it kinder on reviewers for the next piece).
2015-04-02 17:56:44 -07:00
Zach Loafman
04813f0dcd
Revert "Revert "Parallelize architectures in both the building and packaging phases of make release
""
...
This reverts commit 9f60dde320
.
2015-04-02 17:56:44 -07:00
Robert Bailey
f15e34a1bf
Revert "Merge pull request #6309 from GoogleCloudPlatform/revert-6243-kubelet-ssl"
...
This reverts commit 96a0a0d618
, reversing
changes made to 2af9b54147
.
2015-04-02 10:44:37 -07:00
Zach Loafman
9f60dde320
Revert "Parallelize architectures in both the building and packaging phases of make release
"
2015-04-02 08:49:11 -07:00
Jerzy Szczepkowski
ad306c9c6e
Merge pull request #6340 from zmerlynn/upgrade_gcloud
...
Automatically upgrade gcloud in Jenkins (reenable)
2015-04-02 09:37:27 +02:00
Jerzy Szczepkowski
8cff43dfb7
Merge pull request #6330 from jayunit100/local-up-fix
...
Check to prevent split brain api-servers/api-clients which can happen if...
2015-04-02 09:34:19 +02:00
Quinton Hoole
46e5ec3617
Merge pull request #6339 from zmerlynn/skip_paranoia
...
Skip cleaning docker cache prior to build
2015-04-01 20:21:49 -07:00
Zach Loafman
6ba14f1c28
Skip cleaning docker cache prior to build
...
This seems to be more trouble than its worth, and much of
the remaining build time (except the push itself). We can
cache the cross-build/golang images between builds - it's
not going to kill us, and it'll save the occasional weird
flake of not finding an image when it tries to rm one of
these.
2015-04-01 20:04:24 -07:00
jayunit100
1cc61174ea
Check to prevent split brain api-servers/api-clients which can happen if etcd dies between rerun of local-up-cluster.sh
2015-04-01 22:56:34 -04:00
Zach Loafman
4fa84a4f41
Automatically upgrade gcloud in Jenkins (reenable)
2015-04-01 19:27:17 -07:00
Zach Loafman
1ff0a1e2a1
Merge pull request #6270 from jlowdermilk/gcloud-updates
...
Updates for gcloud 0.9.54
2015-04-01 19:14:57 -07:00
Quinton Hoole
3a724b2622
Merge pull request #6196 from zmerlynn/parallel_arch
...
Parallelize architectures in both the building and packaging phases of `make release`
2015-04-01 17:55:43 -07:00
Victor Marmol
312bc71c8b
Merge pull request #6304 from roberthbailey/test-cmd-timeout
...
Increase the time we wait for the kubelet to be healthy.
2015-04-01 17:36:44 -07:00
Zach Loafman
0bbf4e99f6
Re tab-ify golang.sh
2015-04-01 17:31:15 -07:00
Zach Loafman
44b4c9ff26
Parallelize architectures in "make release"
...
On my desktop, this took the KUBE_RELEASE_RUN_TESTS=n
"make release" down from 172s to 115s
2015-04-01 17:29:22 -07:00
Satnam Singh
3c119c008d
Convert kubernetes/serve_hostname to gcr.io/google_containers/server_hostname
2015-04-01 15:39:05 -07:00
Robert Bailey
1fa7955807
Increase the time we wait for the kubelet to be healthy.
2015-04-01 15:10:32 -07:00
Victor Marmol
0cf3590c36
Merge pull request #6299 from thockin/faster_build
...
Make the build faster - call 'go install' once
2015-04-01 14:41:53 -07:00
Robert Bailey
32a1c052dc
Revert "Configure the kubelet to use HTTPS"
2015-04-01 13:59:31 -07:00
Robert Bailey
836fb4ac0b
Remove liveness.sh.
2015-04-01 11:56:39 -07:00
Tim Hockin
005da75f4a
Make the build faster - call 'go install' once
2015-04-01 10:10:27 -07:00
Jeff Lowdermilk
cfc04f41b8
Updates for gcloud changes (alpha, kubeconfig)
2015-04-01 09:27:06 -07:00
Robert Bailey
dd9ec46cc0
Fix test-cmd to work with the kubelet listening on HTTPS.
2015-04-01 09:09:29 -07:00
Paul Morie
fdae6748d2
Fix typo in std install instructions for build
2015-03-31 17:36:47 -04:00
Brian Grant
3354cffbf0
Merge pull request #6182 from thockin/plural_services_20
...
Implement multi-port Services
2015-03-31 12:55:21 -07:00
Abhishek Shah
745368d6b2
Nicer error msg if stdlib pkg with cgo flag is not installed
2015-03-31 08:37:33 -07:00
Tim Hockin
eeff1b74fb
Fixes from feedback and testing
2015-03-30 23:52:37 -07:00
Zach Loafman
8fff5338e2
Fix gke_test (should've realized why the cut -c 2- was there above this)
2015-03-30 13:38:29 -07:00
Zach Loafman
ec53868d4f
Allow gke-test to run on latest release version
2015-03-30 12:11:23 -07:00
Clayton Coleman
eb0eff69fe
Move watch to being a resthandler resource and expose it on LIST
...
GET /pods?watch=true&resourceVersion=10
will now function equivalent to GET /watch/pods.
2015-03-27 15:03:58 -04:00
Clayton Coleman
1618c39a46
Convert List query parameters via object conversion
...
Convert url.Values -> an object, with appropriate versioning. ListOptions
should also expose parameter names to swagger.
2015-03-27 15:03:57 -04:00
nikhiljindal
f56aa58741
Some improvements to #5687
2015-03-26 15:36:41 -07:00
Jeff Lowdermilk
653b7e629d
Merge pull request #5977 from smarterclayton/allow_expose_to_handle_other_resources
...
Allow `kubectl expose` to be polymorphic to the source of the selector
2015-03-26 13:23:21 -07:00
Jeff Lowdermilk
fc2eb66d9f
Merge pull request #5976 from smarterclayton/support_resource_builder_on_label
...
`kubectl label` should support resource builder
2015-03-26 13:21:56 -07:00
Clayton Coleman
64f91f7dac
Allow kubectl expose
to be polymorphic to the source of the selector
...
Allows exposing new resource types to be exposed (OpenShift deployment
controllers, copying services, and other resources that will have
pod label selectors).
Also fixed a bug where the selector wasn't exposed because of parameter
defaulting.
2015-03-26 14:36:53 -04:00
Clayton Coleman
1e496696ca
Merge pull request #5903 from smarterclayton/support_resources_by_type_and_name
...
Allow resource.Builder commands to take arguments by type/name
2015-03-26 14:23:03 -04:00
Clayton Coleman
68c46e7f52
kubectl label
should support resource builder
...
Allow applying labels to all resources, by existing selector, and
soon allow multiple selection.
2015-03-26 14:01:05 -04:00
Nikhil Jindal
5d379a2cb8
Merge pull request #5974 from nikhiljindal/testBranch
...
Fixing broken hack/test-go.sh
2015-03-25 18:10:56 -07:00
nikhiljindal
6b69ebda5b
Fixing broken hack/test-go.sh
2015-03-25 18:04:59 -07:00
Clayton Coleman
581d7cd789
Allow resource.Builder commands to take arguments by type/name
...
Will allow xarg behavior to fetch resources across multiple types.
Changes 'create', 'get', 'update', 'stop', and 'delete' to output
<resourceType>/<name>.
2015-03-25 20:39:22 -04:00
Jeff Grafton
46e8c08fe8
Update kube::log::{error,status} to include timestamp.
...
Additionally, make the build scripts call these rather than calling
'echo' directly.
2015-03-25 16:02:48 -07:00
Jeff Grafton
901a5dbe2b
Merge pull request #5687 from nikhiljindal/client_test
...
Updating test-go.sh and test-integration.sh to be able to run the tests for multiple API versions
2015-03-25 14:07:47 -07:00
nikhiljindal
5e4ab8e045
Updating test-go.sh to be able to run tests twice - for v1beta1 and 3
2015-03-25 12:51:22 -07:00
Zach Loafman
529c886f0d
Merge pull request #5925 from jlowdermilk/fix-watch-events
...
Fix e2e-watch-events.sh
2015-03-25 11:44:57 -07:00
Jeff Lowdermilk
7fcc69d00d
Fix e2e-watch-events.sh
2015-03-25 09:16:06 -07:00
Filip Grzadkowski
aa9e25f293
Wait for etcd shutdown in integration tests
2015-03-25 17:01:04 +01:00
Piotr Szczesniak
d8d06fd8f7
Removed guestbook.sh e2e test
...
The test is rewritten in Go #5045
2015-03-24 18:35:03 +01:00
Jeff Lowdermilk
7f7a004373
Merge pull request #5792 from ddysher/more-describe
...
More node describe, and 'kubectl describe' tests for all resources
2015-03-23 15:28:03 -07:00
Deyuan Deng
1c135c0bd4
Test kubectl describe from test-cmd
2015-03-23 17:13:45 -04:00
Deyuan Deng
4939c1137c
Add node describe labels, creationTimestamp
2015-03-23 17:13:45 -04:00
Fabio Yeon
5b77149461
Fix guestbook.sh to make it work on GKE.
2015-03-20 18:27:31 -07:00
Jeff Grafton
d845d49dc6
Merge pull request #5437 from lhuard1A/libvirt-coreos_kubeconfig
...
Make libvirt-coreos generate a .kubeconfig file and have e2e tests use it
2015-03-19 10:18:03 -07:00
Lénaïc Huard
fc6e6ed310
Explain when e2e --host parameter is used and when it is ignored
2015-03-19 15:13:35 +01:00
Brian Grant
11f9733599
Merge pull request #5587 from nikhiljindal/enable3
...
Updating integration tests to test both API versions - v1beta1 and 3
2015-03-18 16:14:20 -07:00
nikhiljindal
7e36bbab3c
Updating integration tests to test both API versions - v1beta1 and 3
2015-03-18 15:24:11 -07:00
Abhishek Shah
9a901ed46d
build kube-apiserver, kube-scheduler and kube-controller-manager statically.
2015-03-17 16:03:31 -07:00
Brendan Burns
60b2b5d5b4
Merge pull request #5447 from jayunit100/k8petstore
...
K8petstore
2015-03-17 07:28:30 -07:00
Jeff Lowdermilk
404b20e6b8
Add dependencies for k8petstore to Godeps
...
Cleanup k8petstore to use Godeps dependencies, add to hack/build-go.sh
Remove trailing spaces, README
2015-03-17 07:06:01 -04:00
Lénaïc Huard
efe345f8b6
Make libvirt-coreos generate a .kubeconfig file and have e2e tests use it
2015-03-17 11:10:18 +01:00
Victor Marmol
d7a7d4da08
Revert #5479 , don't force no cgo.
...
We allow cgo when available since some of our server components (mainly
Kubelet) rely on it. The current driving factor for the static binaries
was building Docker images from scratch. We will instead use images
built from small busybox bases.
Fixes #5517
2015-03-16 16:03:46 -07:00
Tim Hockin
dab2d1a14b
Merge pull request #5420 from vmarmol/cross
...
Make "kubernetes" a server binary.
2015-03-16 14:29:51 -07:00
Max Forbes
1c4e47fe22
Wait until all startup pods are 'Running' before running e2e tests.
2015-03-16 12:03:57 -07:00
Jeff Lowdermilk
9df2ea4aef
Merge pull request #5479 from ArtfulCoder/static_linking
...
Build statically linked binaries for kubernetes.
2015-03-16 10:24:35 -07:00
Abhishek Shah
4b24aa2d7f
Build statically linked binaryies. With the change to go 1.4, we probably were generating dynamically linked binaries accidentally.
2015-03-13 23:33:10 -07:00
Masahiro Sano
addeed6ad0
fix e2e test on vagrant provider
2015-03-14 03:42:09 +09:00
gmarek
c3ff36931b
fix ginko-e2e.sh
2015-03-13 10:00:28 +01:00
Victor Marmol
adbc8e2f9c
Make "kubernetes" a server binary.
...
It includes many of the server components which we only expect to be
able to build in the server target architectures, but it is included in
the client build targets.
2015-03-12 17:37:56 -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
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
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
Victor Marmol
c03b080328
Merge pull request #5332 from vishh/heapster_e2e
...
Adding a ginkgo version of monitoring e2e test
2015-03-12 08:37:45 -07:00
Piotr Szczesniak
b1e2b2f4b4
Improved guestbook.sh test to become actual test
...
After change test waits until pods come up and frotend starts serving content,
then adds entry to guestbook and verify if operation succeed
This fixes #3693
2015-03-12 11:39:26 +01:00
Satnam Singh
a3fd0a9fd5
Merge pull request #5284 from piosz/guestbook_bug
...
Rewrite guestbook example to use kube-dns instead of host:port
2015-03-11 23:14:18 -07:00
Vishnu Kannan
cbb3c96f31
Removing old shell based monitoring test.
2015-03-12 02:39:15 +00:00
Prashanth Balasubramanian
1ae44c3a78
Delete target pools and forwarding rules in guestbook.sh, with -q
2015-03-11 14:51:50 -07:00
Zach Loafman
e780592315
Merge pull request #5264 from jlowdermilk/kube-up
...
Standalone kubeconfig for gce kube-up (mulligan)
2015-03-11 11:46:45 -07:00
Deyuan Deng
48bcfc1e27
Remove etcd_servers from test-cmd
2015-03-11 14:38:20 -04:00
Zach Loafman
e6517e48eb
Merge pull request #4321 from justinsb/e2e_simple
...
Create AWS provider branch for Jenkins build script, which doesn't assume artifacts are uploaded to GCS
2015-03-11 10:10:43 -07:00
Piotr Szczesniak
4679a37b38
Rewrite guestbook example to use kube-dns instead of host:port
...
This fixes #5091
2015-03-11 09:51:47 +01:00
Jeff Lowdermilk
7db006ab1a
Generate standalone kubeconfig on kube-up, clear on kube-down.
...
Also tweaked the ginkgo tests to pull auth directly from a kubeconfig file
instead of the legacy kubernetes_auth file.
2015-03-10 14:23:34 -07:00
Brian Grant
a4d79bfb2c
Merge pull request #5139 from ddysher/node-more-describe
...
Add more information to node describe
2015-03-10 11:26:51 -07:00
Brian Grant
d230c72e83
Merge pull request #5249 from erictune/fix-locally
...
Remove ignored flag.
2015-03-10 09:20:15 -07:00
Eric Tune
4d3211c60b
Remove ignored flag.
...
When --apiservers is set, --etcd_servers is ignored.
Remove it.
2015-03-10 08:45:05 -07:00
Jeff Lowdermilk
a280e0da2d
Revert "Standalone kubeconfig for gce kube-up"
2015-03-09 17:45:06 -07:00
Satnam Singh
89bc7bbea9
Merge pull request #5154 from jlowdermilk/kube-up
...
Standalone kubeconfig for gce kube-up
2015-03-09 16:22:51 -07:00
Jeff Lowdermilk
4173d369aa
Generate standalone kubeconfig on kube-up, clear on kube-down.
...
Also tweaked the ginkgo tests to pull auth directly from a kubeconfig file
instead of the legacy kubernetes_auth file.
2015-03-09 16:02:00 -07:00
Deyuan Deng
58776da6a4
Add more information to node describe
2015-03-09 18:56:59 -04:00
Brendan Burns
9821c7f678
Delete any created load balancers in guestbook.sh
2015-03-09 13:38:45 -07:00
Clayton Coleman
42ff28c1a2
Merge pull request #5150 from vishh/issue_3628_1
...
Add json description to v1beta3 API.
2015-03-09 14:38:23 -04:00
Piotr Szczesniak
7c234d22ee
Merge pull request #5177 from roberthbailey/guestbook-teardown
...
Always stop the guestbook example regardless of how the tests finishes.
2015-03-09 19:22:15 +01:00
Robert Bailey
451727aa19
Always stop the guestbook example regardless of how the tests finishes. This
...
should more reliably clean up the external load balancer.
2015-03-09 11:46:50 +01:00
Brendan Burns
2b7ae7fcd4
Fix coverage testing to work on OS X, where xargs is different.
2015-03-07 11:01:41 +01:00
Vishnu Kannan
17446061b0
Turn on "description:" verification for v1beta3 API.
2015-03-06 23:53:35 +00:00
Brendan Burns
ee351b3f9c
Merge pull request #5110 from justinsb/aws_ginkgo_auth_config_path
...
auth_config path for aws for ginkgo
2015-03-06 15:29:53 +01:00
Justin Santa Barbara
4066826b10
auth_config path for aws for ginkgo
2015-03-05 15:19:25 -08:00
Salvatore Dario Minonne
75f2efb500
moving ParseSelector to Parse for labels only.
2015-03-05 22:39:36 +01:00
Justin Santa Barbara
e2c09f4470
Modify e2e to use local artifacts if present (to avoid GCS requirement)
2015-03-05 13:03:35 -08:00
roberthbailey
adc1492c2e
Revert "Improved guestbook.sh test to become actual test"
2015-03-04 21:00:46 -08:00
Jeff Lowdermilk
84ab8cc113
Merge pull request #4588 from piosz/guestbook_test
...
Improved guestbook.sh test to become actual test
2015-03-04 10:40:37 -08:00
markturansky
a6a6947618
Added -E to sudo command
2015-03-04 10:14:46 -05:00
CJ Cullen
7bb7ba6577
Remove pd.sh now that we have pd.go
2015-03-03 15:14:15 -08:00
Filipe Brandenburger
fbfbc7e086
Merge pull request #4686 from ixdy/parallelize-unit-tests
...
Parallelize execution of unit tests in hack/test-go.sh.
2015-03-03 10:05:25 -08:00
Filip Grzadkowski
6ad2b86181
Fix hack/test-cmd.sh so that it passes on a local machine
2015-03-03 17:23:55 +01:00
Lénaïc Huard
d64f0f1183
Make libvirt-CoreOS cluster able to run e2e tests
2015-03-02 23:11:48 +01:00
Jeff Grafton
fbd11a1a23
Renable code coverage collection in unit tests, including on Travis.
...
When code coverage is not being collected, just issue a single 'go test'
command, as is already done. Go will internally parallize execution.
When code coverage is being collected, it is necessary to issue separate
'go test' commands for each package, since Go does not support
collecting coverage across packages. Using xargs -P will parallelize
these invocations, however, speeding up test execution.
The number of simultaneous processes to use can be specified with
KUBE_COVERPROCS.
Update Travis config to pass along the number of CPUs to use for running
tests.
2015-03-02 13:04:13 -08:00
Piotr Szczesniak
cc707ab114
Improved guestbook.sh test to become actual test
...
After change test waits until pods come up, then adds
entry to guestbook and verify if operation succeed
This fixes #3693
2015-03-02 21:19:39 +01:00
Robert Bailey
3ae85812bd
Use the kubectl binary rather than the wrapper shell script in the
...
kubectl e2e test.
2015-03-01 21:45:04 -08:00
roberthbailey
3a21d295ec
Merge pull request #4848 from jlowdermilk/cleanup
...
Remove update.sh now that e2e/kubectl.go is stable
2015-02-27 10:36:08 -08:00
Tim Hockin
7fe7de45e7
Merge pull request #4873 from justinsb/add_skip_push_gcs_2
...
Add SKIP_PUSH_GCS env so we can run without a push to GCS
2015-02-26 15:41:39 -08:00
Brendan Burns
0d23875c99
Merge pull request #4497 from swagiaal/health-check-hostname-mismatch
...
WIP: Catch kubelet-master hostname mismatch during health check
2015-02-26 14:48:21 -08:00
Justin Santa Barbara
27c3031506
Add SKIP_PUSH_GCS env so we can run without a push to GCS
2015-02-26 14:02:16 -08:00
Mike Danese
c9fcf45fd9
fix bad cmd-test for patch.
2015-02-26 11:21:03 -08:00
Jeff Lowdermilk
31b990a415
Remove update.sh now that e2e/kubectl.go is stable
2015-02-26 09:51:39 -08:00
Sami Wagiaalla
9150cb9d95
Catch kubelet-master hostname mismatch during health check
...
During the kubelet's /healthz responce check to see if the
hostname used by the master matches the hostname the kubelet
knows itself by. If not fail the health check.
Signed-off-by: Sami Wagiaalla <swagiaal@redhat.com>
2015-02-26 10:22:03 -05:00
Zach Loafman
57fe439adf
Merge pull request #4773 from lhuard1A/test-cmd
...
Assert pre and post conditions of all commands in test-cmd.sh
2015-02-26 07:00:29 -08:00
Zach Loafman
f12f50e996
Merge pull request #4826 from a-robinson/certs
...
Rip out the certs.sh test since the certs.go test has been stable
2015-02-25 14:24:08 -08:00
Alex Robinson
ba12f9e229
Rip out the certs.sh test since the certs.go test has been stable.
2015-02-25 13:26:19 -08:00
Zach Loafman
84a2a9766a
Revert "Remove host ports from the update demo and update tests"
2015-02-25 09:56:03 -08:00
Zach Loafman
2089324555
Revert "Use a different port for the kubectl proxy in the shell and go tests."
2015-02-25 09:54:54 -08:00
Robert Bailey
e7d67e4449
Use a different port for the kubectl proxy in the shell and go tests.
2015-02-25 09:32:41 -08:00
Lénaïc Huard
c23046dc0a
Assert pre and post conditions of all commands in test-cmd.sh
...
`hack/test-cmd.sh` contains a list of `kubectl` commands to test.
However, the effect of the execution of those commands was not systematically
checked. As a consequence, it was possible to break a command without breaking
those tests.
This commit surrounds every single `kubectl` command with assertions on
pre and post condition.
2015-02-25 18:26:30 +01:00
Robert Bailey
dd87c247a5
Remove host ports from the update demo and update tests
2015-02-24 15:34:18 -08:00
rsokolowski
635281ebe3
Update guestbook example to use replication controller.
2015-02-24 20:21:13 +01:00
Masahiro Sano
29aae75329
fix missing command in test-cmd.sh
2015-02-24 23:20:45 +09:00
Jeff Grafton
0f2e9dbac8
Revert "Use goveralls to report coverage results from Travis."
...
Revert "Produce a combined coverage report when running Go unit tests."
These caused unit tests to run very slowly, causing problems with
Travis.
2015-02-23 14:35:48 -08:00
Zach Loafman
c0067656fb
Revert "Add SKIP_PUSH_GCS env so we can run without a push to GCS"
2015-02-23 11:15:54 -08:00
Rohit Jnagal
28dd73dd8c
Merge pull request #4667 from endocode/kbeecher/multi-resource
...
Adds support for multiple resources to kubectl
2015-02-23 10:29:32 -08:00
Zach Loafman
5269e06aa1
Merge pull request #4315 from justinsb/add_skip_push_gcs
...
Add SKIP_PUSH_GCS env so we can run without a push to GCS
2015-02-23 10:08:38 -08:00
Salvatore Dario Minonne
163ae10d78
adding minimal test for label command to hack/test-cmd.sh
2015-02-22 17:44:39 +01:00
Alex Robinson
5ea0895987
Merge pull request #4682 from a-robinson/e2e
...
Un-revert #4551 which moved the certs.sh e2e test to ginkgo and fix the e2e auth breakage it caused
2015-02-20 15:50:00 -08:00
Alex Robinson
fe42cd1235
Un-revert #4551 which moved the certs.sh e2e test to ginkgo and fix the
...
e2e auth breakage it caused. The fix is to not set project/zone/kube_master
to the empty string partway through the script, which I should have
realized was a bad idea in the first place.
2015-02-20 15:31:59 -08:00
Brian Grant
194f6571b8
Merge pull request #4545 from yujuhong/fixdochook
...
Fix hack/verify-description.sh to actually surface the error
2015-02-20 15:07:19 -08:00
Satnam Singh
8c7806dc4a
Merge pull request #4637 from jlowdermilk/examples-e2e
...
Port update.sh to ginkgo test
2015-02-20 14:58:50 -08:00
Jeff Lowdermilk
b389b360f8
Port update.sh to ginkgo test
2015-02-20 13:17:15 -08:00
Daniel Smith
17feadf977
Merge pull request #4240 from thockin/hyperkube
...
Hyperkube cleanup
2015-02-20 11:12:32 -08:00
Daniel Smith
a5fdac2f3f
Merge pull request #4649 from sdminonne/bug_fix
...
Adding resize command to hack/test.cmd.sh
2015-02-20 10:47:32 -08:00
Tim Hockin
0810e1fa99
build hyperkube
2015-02-20 08:49:11 -08:00
Eric Paris
9965604d4b
check gofmt with golang 1.4
2015-02-20 10:31:06 -05:00
Karl Beecher
ecbb91cc08
Adds support for multiple resources to kubectl
...
You can specify multiple resources by name when using the delete, get
and stop commands.
2015-02-20 16:18:57 +01:00
Salvatore Dario Minonne
b60dadae46
Adding resize command to hack/test.cmd.sh
2015-02-20 05:56:16 +01:00
Zach Loafman
7febce6321
Revert "Migrate the certs.sh e2e test to ginkgo"
2015-02-19 18:41:30 -08:00
Zach Loafman
2b5641deb8
Merge pull request #4574 from ixdy/travis-coveralls
...
Produce a combined coverage report when running Go unit tests, and use goveralls to report coverage results from Travis to Coveralls.io.
2015-02-19 18:04:52 -08:00
Jeff Grafton
26addee75b
Produce a combined coverage report when running Go unit tests.
...
The Go coverage tool does not currently support recording a coverage
data profile across packages, so we must manually combine these coverage
profiles and use it to produce an HTML report when KUBE_COVER is
nonempty. The exact value of KUBE_COVER is now ignored; KUBE_COVERMODE
can be used to set the coverage mode from the default of "atomic".
Additionally, if KUBE_GOVERALLS_BIN is set, hack/test-go.sh will attempt
to report coverage results to Coveralls.io. This is intended to be used
with the Travis build.
2015-02-19 17:49:36 -08:00
Zach Loafman
597dedf762
Merge pull request #4551 from a-robinson/e2e
...
Migrate the certs.sh e2e test to ginkgo
2015-02-19 17:34:04 -08:00
Brendan Burns
d9d5837510
Merge branch 'kubectl-man' of https://github.com/eparis/kubernetes into eparis-kubectl-man
...
Conflicts:
docs/kubectl.md
COMMIT_BLOCKED_ON_GENDOCS
2015-02-19 11:53:38 -08:00
Brendan Burns
c9657cad04
Merge pull request #4319 from justinsb/aws_fixes
...
Fixes to get AWS tests to run
2015-02-18 22:43:46 -08:00
Brendan Burns
6e2b733d4b
Fix update.sh if DOCKER_HUB_USER isn't defined.
2015-02-18 19:38:26 -08:00
Robert Bailey
e0cc7b4138
Remove the numbered shell scripts from the live update example and the
...
update.sh e2e test. They were needlessly obfuscating the actual kubectl
commands being run.
2015-02-18 17:02:44 -08:00
Alex Robinson
94161a44ee
Pass the GCE project, zone, and master name into e2e.go as flags.
2015-02-18 15:41:36 -08:00
Alex Robinson
f946aa887b
Migrate the certs.sh e2e test to ginkgo. Issue #4185 .
2015-02-18 13:45:44 -08:00
Yu-Ju Hong
69318a118c
Fix hack/verify-description.sh to actually surface the error
2015-02-18 12:56:46 -08:00
Jeff Grafton
502b95f045
Jenkins e2e tests: ignore test exit status.
...
Since Jenkins has hopefully been set up properly to read test failures
from junit*.xml files, only exit with a nonzero status when there are
infrastructure failures. If there are only test failures, the nonzero
exit status will be ignored.
Also, disable Ginkgo's colors to make the Jenkin console logs more
readable.
2015-02-18 11:32:41 -08:00
Jeff Grafton
ef801875ab
Add --test_args flag to hack/e2e.go.
...
Add a flag to allow passing options to the Ginkgo test runner, for
example to pass --ginkgo.focus to run only particular specs.
2015-02-17 17:40:32 -08:00
Alex Robinson
3043ae9144
Merge pull request #4492 from jlowdermilk/e2e
...
Cleanup resources after services/guestbook e2e tests.
2015-02-17 12:04:46 -08:00
CJ Cullen
47622092fd
Merge pull request #4164 from tkulczynski/mig
...
Use Managed Instance Group for managing Nodes in GCE
2015-02-17 12:01:48 -08:00
Tomek Kulczynski
bcadad2e2e
Use Managed Instance Group instead of manually creating Nodes in GCE
2015-02-17 20:33:31 +01:00
Jeff Lowdermilk
8ad671b01e
Cleanup resources after shell tests exit
2015-02-17 11:27:54 -08:00
Brian Grant
866135e52c
Merge pull request #4436 from EricMountain-1A/noargs-kubectl-create-test-fix
...
Fix "kubectl create with no args" test to verify exit code
2015-02-17 10:31:00 -08:00
Brian Grant
f3ec56bba6
Merge pull request #4437 from filbranden/hack_e2e_simplify_cmd_exec
...
Simplify usage of os/exec
2015-02-17 09:59:05 -08:00
Brian Grant
e1b07efd36
Merge pull request #4450 from mikedanese/update-fix
...
fix error where we can't use kubectl update patch
2015-02-17 09:58:18 -08:00
Brian Grant
876d651737
Merge pull request #4395 from smarterclayton/split_naming
...
Fix cross-namespace LIST and WATCH
2015-02-17 09:40:09 -08:00
Clayton Coleman
0e07e61a53
Merge pull request #4381 from sdminonne/bug_fix
...
kubectl delete resource : remove all resources
2015-02-17 12:25:56 -05:00
Clayton Coleman
9175082a1c
Split naming behavior out into objects that are derived from the request
...
Fix bug with cross namespace queries not being possible. Ensure selflink
is set on lists correctly.
2015-02-16 00:23:38 -05:00
Mike Danese
9f9153256d
fix error where we can't use patch and add cmd-test for patch and file
...
update
2015-02-15 10:43:35 -08:00
Filipe Brandenburger
70d37800b7
Simplify usage of os/exec
...
For now, keep the finishRunning() wrapper but use a straight cmd.Run()
call instead of the convoluted goroutine trying to catch signals.
It turns out that Unix process group handling is enough to interrupt
pending processes when stopping the run with something like a Ctrl+C
which should be enough.
Tested:
- Full e2e run with hack/e2e-test.sh, two tests failed but looks like
they've been failing before this change.
- Started a hack/e2e.go -v -build and interrupted it with Ctrl+C,
confirmed that build-release.sh was killed in the process.
2015-02-13 14:53:42 -08:00
Eric Mountain
b639f6ece4
Fix "kubectl create with no args" test to verify exit code instead of evaluating (empty) stdout of the command.
2015-02-13 23:18:24 +01:00
Jeff Lowdermilk
aa32f1b2ce
Retry #4337 : Make gce kubeconfig context include project
2015-02-13 13:31:50 -08:00
Salvatore Dario Minonne
fda17c1b7a
kubectl delete resource : remove all resources
2015-02-13 18:25:41 +01:00
Jeff Lowdermilk
61cc821506
Make local clusters work painlessly with kubeconfig
2015-02-12 16:30:41 -08:00
Brendan Burns
8b66b3f1da
Merge pull request #4400 from erictune/no_port_conflict
...
Make cleanup of local cluster more robust.
2015-02-12 16:16:54 -08:00
Eric Paris
a6beb2e7df
Autogenerate md documentation for kubectl
...
This does away with the giant dump from cobra for kubectl and instead
generates md files which contain similar information, but one per verb.
This might work well as part of the cobra project, instead of doing it
in kube, but this gets us nice, linked, documentation right now. If
people like it, I will try to get something similar into cobra.
2015-02-12 19:08:57 -05:00
Eric Paris
8e64be1c66
Add godeps for man page autogeneration
2015-02-12 18:38:25 -05:00
Eric Tune
e82b97d237
Make cleanup of local cluster more robust.
...
Try to cleanup if there is a failure in script at any point.
Handle undefined vars in cleanup.
Wait longer for apiserver.
Exit if apiserver doesn't come up.
2015-02-12 14:29:55 -08:00
Jerzy Szczepkowski
f94da1e6aa
Initial implementation of kube-dump.sh - script which dumps state of Kubernetes cluster for debugging. Tested on GCE only. This is initial attempt to fix #3500 .
2015-02-12 21:48:34 +01:00
Filipe Brandenburger
f9a4471eca
Merge pull request #4356 from filbranden/hack_e2e_clustersize_output
...
Simplify ValidateClusterSize() to use cmd.Output() directly
2015-02-11 16:55:30 -08:00
roberthbailey
2ed888592b
Merge pull request #4351 from rajatchopra/master
...
democratize restart-apiserver method across clouds
2015-02-11 15:23:06 -08:00
Filipe Brandenburger
43543faaa7
Simplify ValidateClusterSize() to use cmd.Output() directly
...
This is a first step towards getting rid of finishRunningWithOutputs and
using the native os/exec methods directly where possible.
2015-02-11 15:02:24 -08:00
Rajat Chopra
56462c020a
democratize restart-apiserver method across clouds
2015-02-11 13:44:43 -08:00
Zach Loafman
a08e04dd68
Unpatch Jenkins now that #4177 is fixed
...
And actually, make it more better: Go ahead and tear down the cluster
even when tests fail, but (hopefully) relay the test exit status
correctly. This fails if there's a double error (if -down *also*
fails, we'll fail due to errexit), but either way is a build failure,
and this means that the teardown of a test failure build isn't getting
charged to the next run.
2015-02-11 13:42:14 -08:00
Filipe Brandenburger
55e8357c0f
Merge pull request #4339 from zmerlynn/issue_4177
...
Fix hack/e2e.go exit status for -test
2015-02-11 13:21:37 -08:00
Zach Loafman
f08f7e6972
Clean up output handling in hack/e2e.go
...
Dovetail stdout/stderr and remove escaping for TAP.
2015-02-11 13:12:48 -08:00
Zach Loafman
ab38a78d70
Test() was mis-tracked. Change the variable name / handling here, and
...
also just make it unset so that if it's ever uninitialized it's
obvious.
Fixes #4177
2015-02-11 13:11:03 -08:00
Filipe Brandenburger
50a399fa30
Merge pull request #4341 from zmerlynn/i4340
...
Fix e2e-internal scripts for cluster-size and watch-events
2015-02-11 13:00:27 -08:00
Justin Santa Barbara
cf470f7da4
Fixes to get AWS tests to run
...
They don't pass (yet), but they at least run!
2015-02-11 15:58:33 -05:00
Zach Loafman
9257b58e68
Fix e2e-internal scripts for cluster-size and watch-events
...
Fixes #4340
2015-02-11 12:46:31 -08:00
Brian Grant
20f7cbb87b
Merge pull request #4291 from jlowdermilk/delete-kubecfg
...
Remove kubecfg, cleanup a few stray references.
2015-02-11 11:18:59 -08:00
roberthbailey
e14ebcbea8
Merge pull request #4317 from justinsb/retry_logic_on_update
...
Fix polling in e2e-suite/update.sh: exit if we time out
2015-02-11 11:09:04 -08:00
Justin Santa Barbara
934bf51fe9
Fix polling in e2e-suite/update.sh: exit if we time out
...
Also reduce the number of iterations to 20
2015-02-11 13:56:27 -05:00
roberthbailey
ed8237119f
Merge pull request #4316 from justinsb/optional_args
...
Default value for ${@}, otherwise nounset causes failure
2015-02-11 10:41:10 -08:00
roberthbailey
d68107be5e
Merge pull request #4314 from justinsb/e2e_fixes
...
Remove stray r
2015-02-11 10:29:20 -08:00
Justin Santa Barbara
8cbd97d8bd
Default value for ${@}, otherwise nounset causes failure
2015-02-11 12:39:06 -05:00
Justin Santa Barbara
7f142b0ee0
Add SKIP_PUSH_GCS env so we can run without a push to GCS
2015-02-11 12:36:40 -05:00
Justin Santa Barbara
4cf0e4c37f
Remove stray r
2015-02-11 12:34:19 -05:00
Jeff Lowdermilk
197059b65d
Remove kubecfg, cleanup a few stray references.
2015-02-10 16:43:12 -08:00
CJ Cullen
a840c20939
Merge pull request #4158 from HackToday/master
...
Check curl before use it
2015-02-10 16:24:53 -08:00
Zach Loafman
2f231e0a2a
Merge pull request #4268 from rajatchopra/master
...
Fix vagrant networking round 2
2015-02-10 07:39:48 -08:00
Rajat Chopra
1d12cad456
Fix vagrant networking. Include the master as part of overlay. And remove STP for efficiency.
...
fix e2e services for vagrant
Kubelet should wait on SDN to finish
Do not require docker on master for default clouds
2015-02-09 14:37:27 -08:00
Zach Loafman
6b8c332cd3
Revert "Fix vagrant networking"
2015-02-09 13:40:11 -08:00
Clayton Coleman
d6069aa13a
Merge pull request #4204 from rajatchopra/master
...
Fix vagrant networking
2015-02-09 14:52:13 -05:00
Clayton Coleman
4369e31b9d
Integration tests should use 127.0.0.1 consistently
2015-02-09 14:30:31 -05:00
Brendan Burns
e7a69504b4
Now that we automatically format GCE PD, remove formatting from the e2e test.
...
Also remove docs that note that it is necessary.
2015-02-06 20:30:58 -08:00
Rajat Chopra
a9d8713db4
fix e2e services for vagrant
2015-02-06 18:34:27 -08:00
Filipe Brandenburger
162d7a00b3
Fix hack/e2e.go --ctl output
...
Export the KUBE_CONFIG_FILE environment variable pointing to the test
output when calling cluster/kubectl.sh directly.
Tested by running:
$ go run ./hack/e2e.go -v -ctl='version --match-server-version=false'
2015-02-06 14:36:35 -08:00
Filipe Brandenburger
e63ccfff6c
Reintroduce "Turn the hack/e2e.go commands into standalone scripts."
...
This reverts commit 2765660101
,
which reverted a commit 0c7dce77dd
, so
we're reintroducing the same code from that commit here.
2015-02-06 14:35:43 -08:00
Zach Loafman
2765660101
Revert "Turn the hack/e2e.go commands into standalone scripts."
2015-02-06 14:13:00 -08:00
Zach Loafman
fc06acdd2b
Merge pull request #4198 from filbranden/e2e_standalone_scripts
...
Turn the hack/e2e.go commands into standalone scripts.
2015-02-06 12:24:48 -08:00
Filipe Brandenburger
0c7dce77dd
Turn the hack/e2e.go commands into standalone scripts.
...
This gets rid of bashWrap() and of running bash -s passing it a script
on stdin. Also get rid of most of the runBash*() helpers.
In particular, `go run hack/e2e.go -build` will now work when it needs
to ask whether it is OK to download a large docker image, it used to
fail since stdin was not available for the bash script using the `read`
command.
Tested by running a full `hack/e2e-test.sh` run including the build
stage without the docker image loaded, which used to fail before this
change.
2015-02-06 11:18:14 -08:00
Zach Loafman
134d332793
Move verbosity flag into driver.go, randomize specs
...
Before we get too many suites baked, I want to get spec randomization
in, just so no one accidentally thinks things flow from top to bottom.
The random seed is printed with every run:
Random Seed: 1423194521 - Will randomize all specs
and can be reproduced using --ginkgo.seed
2015-02-05 19:49:04 -08:00
Rajat Chopra
b61ea1bbf1
Fix vagrant networking. Include the master as part of overlay. And remove STP for efficiency.
2015-02-05 17:41:27 -08:00
Kennan
903ed06774
Merge remote-tracking branch 'upstream/master'
2015-02-06 08:16:28 +08:00
Kennan
492e03697f
Merge branch 'master' of https://github.com/HackToday/kubernetes
2015-02-06 08:10:49 +08:00
Kennan
eaab84a414
Check curl before use it
...
This check can help user figure out what's the issue during
local cluster setup
2015-02-06 08:02:50 +08:00
rsokolowski
df26b43a9d
Fix hack/e2e-test.sh broken due to removed flag from hack/e2e.go
2015-02-05 23:56:43 +01:00
Brian Grant
c1ca07338f
Merge pull request #4149 from nikhiljindal/autoSwaggerSpec
...
Adding static swagger spec and a script to update it
2015-02-05 12:13:33 -08:00
nikhiljindal
fe27529d7e
Adding static swagger spec and a script to update it
2015-02-05 12:00:28 -08:00
Zach Loafman
49a1984e98
Breakfix for #4177 , not a real solution
2015-02-05 11:24:45 -08:00
Zach Loafman
c15595fdf7
Revert jenkins/e2e.sh back to 606b517a
, minus -tap
2015-02-05 10:25:59 -08:00
Brendan Burns
8b25b43039
Merge pull request #4117 from wojtek-t/validate_docker_version
...
Check Docker version in Kubelet /healthz handler
2015-02-05 10:06:33 -08:00
Zach Loafman
dad85ef4f1
Add more logging
2015-02-05 10:01:45 -08:00
Zach Loafman
0b456e40bf
Fix jenkins/hack/e2e.sh, log errors better
2015-02-05 09:16:11 -08:00
Zach Loafman
f21a25e7fc
Add hack/ginkgo-e2e.sh to kubernetes-test.tgz
2015-02-05 08:06:50 -08:00
Zach Loafman
bace7593d0
Enable ginkgo.v (console output is missing spec without it)
2015-02-05 07:24:05 -08:00
Zach Loafman
688f96cd33
Run shell tests under Ginkgo, changing all reporting to JUnit
...
* Add a test/e2e/shell.go that slurps up everything in hack/e2e-suite
and runs it as a bash test, borrowing all the code from hack/e2e.go.
* Rip out all the crap in hack/e2e.go that deal with multiple tests
* Move hack/e2e-suite/goe2e.sh to hack/ginkgo-e2e.sh so that it
doesn't get slurped up.
2015-02-05 07:24:05 -08:00
Kennan
222c714cf6
Check curl before use it
...
This check can help user figure out what's the issue during
local cluster setup
2015-02-05 16:31:07 +08:00
Filipe Brandenburger
7bb62cbfb3
Make e2e shell tests work standalone
...
Simply incorporate some of the boilerplate from hack/e2e.go into the
scripts in hack/e2e-suite.
Use environment variables with default values to allow overrides in
kubectl command line and to use a versioned package root.
Tested:
- Ran `go run hack/e2e.go -test` on a test cluster.
- Ran the test cases individually.
- Ran hack/e2e-suite/goe2e.sh -t Pods to confirm it takes arguments.
- Also fixed cluster/test-network.sh (which should be more and more irrelevant.)
2015-02-05 00:22:16 -08:00
Wojciech Tyczynski
524cdba101
Fix hack/test-cmd.sh test.
2015-02-05 01:58:26 +01:00
Clayton Coleman
449f9d915e
Make hack/local-up-cluster.sh work again for etcd 2
2015-02-04 17:45:53 -05:00
Brendan Burns
b3014e4360
Fix goe2e.sh (I hope)
2015-02-03 23:04:58 -08:00
Zach Loafman
acbadc8ade
Merge pull request #3991 from zmerlynn/hermetic_jenkins_build
...
Clean out dead docker containers and docker images every Jenkins build
2015-02-03 14:56:59 -08:00
Brendan Burns
aa5a724f8d
Merge pull request #4067 from jlowdermilk/verify-gendocs
...
Point to hack/run-gendocs.sh in verify-gendocs.sh error message.
2015-02-03 12:20:01 -08:00
Jeff Lowdermilk
c6c46753fd
Point to hack/run-gendocs.sh in verify-gendocs.sh error message.
2015-02-03 11:53:30 -08:00
Jeff Lowdermilk
890615d93e
Replace kubecfg with kubectl in e2e tests
2015-02-03 11:43:55 -08:00
Satnam Singh
6d5c56b2a7
Merge pull request #3995 from filbranden/e2e_pod_update_remove_external_json
...
Convert load of api/examples/pod.json into native Go definition of the api.Pod
2015-02-02 11:37:19 -08:00
Filipe Brandenburger
5b6eee294e
Merge pull request #3993 from satnam6502/services
...
Fix services.sh to swap out broken kubecfg calls
2015-01-30 15:48:16 -08:00
Filipe Brandenburger
1d981f9345
Convert load of api/examples/pod.json into native Go definition of the api.Pod
...
This is another step in removing external dependencies of the Go e2e tests.
Remove references to this file on list of files required to run e2e tests.
Also use an unique name for the pod, so that failure in cleanup of a
previous run should not break a new run with a name conflict.
Tested by running cmd/e2e -t TestPodUpdate against an API server in GCE.
2015-01-30 15:25:56 -08:00
Satnam Singh
b7aa81ebc6
Fix services.sh to swap out broken kubectl calls
2015-01-30 15:22:39 -08:00
Zach Loafman
67c382b5f0
Clean out dead docker containers and docker images every Jenkins build
...
This will increase build times on Jenkins, but should make the build
times consistent and make them pull from sources every time versus
leftover artifacts. Also upping timeout. (Try to address recent
some aborted builds.)
2015-01-30 13:53:27 -08:00
Filipe Brandenburger
a74fce5bd7
Convert load of test/e2e/pod.json into native Go definition of the api.Pod
...
This is another step in removing external dependencies of the Go e2e tests.
Also remove other references to this file.
Tested by running cmd/e2e -t TestKubeletSendsEvent against an API server in GCE.
2015-01-30 13:21:09 -08:00
Satnam Singh
c29d89a534
Merge pull request #3357 from proppy/fix-podex
...
contrib/podex: fix ordering and manifest generation
2015-01-30 12:02:15 -08:00
Brendan Burns
a20ca78fb3
Update etcd to version 2.0.0
2015-01-29 17:53:53 -08:00
Tim Hockin
d01ea11a6e
Merge pull request #3856 from smarterclayton/validation_logic_needs_cleanup
...
Validation of ObjectMeta is inconsistently applied
2015-01-29 14:12:44 -08:00
Clayton Coleman
053c2b2100
Fix grafana and heapster RC names
2015-01-29 16:26:39 -05:00
Tim Hockin
7603f88960
Merge pull request #3903 from brendandburns/e2e2
...
Add a simple script for running go e2e tests against existing clusters.
2015-01-29 11:51:36 -08:00
Brendan Burns
0ad036e0eb
Put watch in a loop so that we grab all event logs, even if the watch hangs up.
2015-01-29 09:56:20 -08:00
Brendan Burns
ca6de16df7
Merge pull request #3915 from brendandburns/fixer
...
Fix update.sh
2015-01-28 20:02:58 -08:00
Brendan Burns
9f5ca3f6ac
Fix update.sh
2015-01-28 20:00:47 -08:00
roberthbailey
9bfdfa0522
Merge pull request #3902 from satnam6502/killshell
...
Remove basic.sh and private.sh shell e2e tests
2015-01-28 16:51:22 -08:00
Brendan Burns
ca6576d060
Add a simple script for running go e2e tests against existing clusters.
...
Also add an even simpler script for testing the network setup.
2015-01-28 16:39:21 -08:00
Zach Loafman
668d8539b8
Merge pull request #3855 from filbranden/ginkgo1
...
Initial adoption of Ginkgo in Kubernetes e2e tests
2015-01-28 16:32:11 -08:00
Filipe Brandenburger
606b517a07
Enable Go e2e report_dir in Jenkins
...
Use the E2E_REPORT_DIR global environment variable to define the
location where the JUnit XML reports should be saved.
Modify the Jenkins e2e.sh script to export that variable pointing to the
top of the Jenkins build tree.
Tested by running `E2E_REPORT_DIR=${PWD}/.. hack/e2e-test.sh` and
confirmed ../junit.xml was generated and looked good.
2015-01-28 16:27:43 -08:00
Maxwell Forbes
5500b1a261
Merge pull request #3576 from jlowdermilk/examples
...
Update update-demo example to use kubectl
2015-01-28 15:43:18 -08:00
Jeff Lowdermlk
c912b831ce
Update update-demo example and e2e test to use kubectl
2015-01-28 15:26:56 -08:00
Satnam Singh
7e6a4ec0f5
Remove basic.sh and private.sh shell e2e tests
2015-01-28 14:43:53 -08:00
Filipe Brandenburger
18880d9086
Merge pull request #3895 from brendandburns/e2e
...
introduce a timeout for the update test.
2015-01-28 14:42:21 -08:00
Brendan Burns
d13d2e8661
Add a hacky sleep in an attempt to deflake a test.
2015-01-28 14:19:19 -08:00
Brendan Burns
281b3c15ab
introduce a timeout for the update test.
2015-01-28 14:10:51 -08:00
Tim Hockin
988d15943f
Merge pull request #3787 from satnam6502/serve_hostname
...
Reduce size of serve_hostname image
2015-01-28 09:07:26 -08:00
Brendan Burns
abce3ecf26
Fix update.sh given the renaming of the network container.
2015-01-27 21:58:21 -08:00
Tim Hockin
a480794efc
Tighten validation of Name and Namespace
2015-01-27 17:04:59 -05:00
Paul Morie
8917c669d1
Make it possible to test a single package w/o cover report
2015-01-25 21:26:36 -05:00
Satnam Singh
3841d1b5d1
Reduce size of serve_hostname image
2015-01-24 09:49:26 -08:00
Vishnu Kannan
2131ed5616
Fix monitoring.sh
2015-01-24 00:09:44 +00:00
Tim Hockin
9566467cdd
Fix monitoring e2e to find kubectl
2015-01-23 12:36:03 -08:00
Vishnu Kannan
adbbfbf62f
Improve monitoring e2e test.
2015-01-23 18:59:05 +00:00
Joe Beda
f3b0f285fa
Fix min minions for e2e
2015-01-21 11:37:57 -08:00
Brian Grant
fc1e3854af
Merge pull request #3684 from smreed/services-e2e-fix
...
Fixes endpoint propagation failure in services e2e
2015-01-21 10:37:26 -08:00
Steve Reed
0d79cfc581
Adds trailing semi-colon as per PR comment
2015-01-21 10:30:58 -08:00
Steve Reed
e3f7899be2
Extra echo in services.sh e2e test to get it to pass
2015-01-21 10:30:19 -08:00
Brian Grant
91533095e5
Merge pull request #3656 from jbeda/vagrant-e2e
...
Fix up a bunch of vagrant stuff to enable e2e
2015-01-21 07:26:13 -08:00
Satnam Singh
fc83ba704b
Make basic end to end test robustly wait for hostIP
2015-01-20 19:30:13 -08:00
Joe Beda
a76b6dddad
Turn of services.sh as it is broken.
...
See https://github.com/GoogleCloudPlatform/kubernetes/issues/3655 .
2015-01-20 16:48:10 -08:00
Joe Beda
c5634e90ba
Verify cluster size before e2e
2015-01-20 09:11:29 -08:00
Paul Morie
0c51f9df8d
Make e2e -up recreate running clusters; remove kube-up retry
2015-01-18 12:19:07 -05:00
Satnam Singh
d8f07da775
Revert basic.sh and private.sh
2015-01-16 14:43:11 -08:00
Eric Tune
98bdd3f7c4
Test for and fix crash with nil client in kubelet.
...
Added test that fails before fix.
Fixed use of nil pointer.
2015-01-16 13:39:31 -08:00
Vishnu Kannan
50c32fbba4
Adding a replication controller for all monitoring pods.
...
Removed auth for Grafana to facilitate usage via service proxy on the api-server.
Added a grafana service
Removed elasticsearch dependency for monitoring - faster startup times.
2015-01-16 18:37:46 +00:00
Johan Euphrosine
363ce1b39a
contrib: fix name and readability, exclude from test
2015-01-16 11:54:11 +01:00
Satnam Singh
33e00320bf
Convert private.sh test to Go and remove basic.sh and private.sh
2015-01-15 18:04:12 -08:00
Satnam Singh
1bff012c36
Convert basic.sh e2e test to Go
2015-01-15 11:41:29 -08:00
Joe Beda
224ffa4567
Merge pull request #3480 from jbeda/all_pflag
...
Convert all main binaries to pflag library
2015-01-15 11:26:41 -08:00
Brendan Burns
718a563b1f
Add a gendocs pre-submit hook.
2015-01-15 09:52:51 -08:00
Joe Beda
228659a177
Fix up for posix flags
2015-01-15 09:12:19 -08:00
Joe Beda
ddcd2e1d2b
Merge pull request #3463 from jlowdermilk/gendocs
...
Autogenerate markdown docs for kubectl
2015-01-14 13:32:38 -08:00
Jeff Lowdermlk
250c948ae7
Autogenerate markdown docs for kubectl
...
Add test to verify generated docs are up to date.
2015-01-14 13:21:14 -08:00
Zach Loafman
0c4119fb07
Revert "Add --v=4 to e2e bash executions by default"
...
This reverts commit abc621759a
, which
interacts weirdly with Jenkins on the GKE provider. Tactical revert
until that can be figured out:
https://github.com/GoogleCloudPlatform/kubernetes/issues/3474
2015-01-14 13:10:45 -08:00
Zach Loafman
e14d5f3416
Merge pull request #3464 from smarterclayton/fix_invalid_json_in_services.sh
...
Fix e2e invalid JSON, ensure CLI communicates invalid JSON errors effectively
2015-01-14 10:26:34 -08:00
Clayton Coleman
ccdc20d90c
Ignore empty objects from streams and error when nothing passed to create
...
Passing zero objects to create should be an error
2015-01-14 13:12:33 -05:00
Clayton Coleman
31413c8727
Add more tests around JSON/YAML decoding from the CLI
...
Switch the ignore stream errors behavior to print a Warningf on
failure to parse, not v(2)
2015-01-14 12:38:36 -05:00
Clayton Coleman
abc621759a
Add --v=4 to e2e bash executions by default
...
Will allow more debugging output to be available in CLI
2015-01-14 12:37:40 -05:00
Clayton Coleman
d986028cf7
Remove trailing commas from e2e services.sh
2015-01-14 12:36:25 -05:00
Zach Loafman
1f210d4961
Merge pull request #3438 from zmerlynn/fix_pd_sh
...
Deflake pd.sh: Try really, really hard to detach and delete PD
2015-01-14 07:57:39 -08:00
Zach Loafman
21e81de190
Deflake pd.sh: Try really, really hard to detach and delete PD, up pod-up timeout
2015-01-14 07:48:34 -08:00
Clayton Coleman
ec803cb809
Allow resource.Builder to stream YAML from the CLI
...
Add both JSON and YAML STDIN tests in test-cmd
2015-01-14 00:50:13 -05:00
Clayton Coleman
be8d97077e
hack/test-cmd.sh can be easier to read if we set PATH
...
instead of using a replacement var. Makes cut and paste testing
easier.
2015-01-13 19:04:47 -05:00
Clayton Coleman
80260f4cb9
Improve hack/test-cmd.sh tests to check versions and default API behavior
2015-01-13 18:46:13 -05:00
Zach Loafman
ba618db226
Fix kubernetes-e2e-gke build
...
Got a little aggressive combining options here. Accidentally forgot
that this parameter would bork normal GKE.
2015-01-12 16:55:56 -08:00
Zach Loafman
c5c70dfcbb
Merge pull request #3417 from brendandburns/e2e
...
Don't just sleep and hope when deleting the pd pod.
2015-01-12 16:13:00 -08:00
Brendan Burns
bdcb0c53f5
Don't just sleep and hope when deleting the pd pod.
2015-01-12 16:06:57 -08:00
Daniel Smith
14b718973a
Merge pull request #3415 from zmerlynn/e2e_jenkins_script
...
Add Jenkins e2e script
2015-01-12 15:11:28 -08:00
Brendan Burns
a6f6f25dda
Merge pull request #3387 from zmerlynn/fix_monitor_flake
...
Fix monitoring.sh flake (hopefully)
2015-01-12 14:32:31 -08:00
Zach Loafman
3095f1bf64
Add Jenkins e2e script
...
This commit adds and documents the e2e script that Jenkins runs
2015-01-12 13:49:24 -08:00
Zach Loafman
0b3baad0f4
Kill the forced upload to GCS.
...
This actually tickles the -opipefail, and is only necessary if you're
rebuilding (which isn't really safe, because it can slice downstream
builds.)
2015-01-12 09:52:58 -08:00
Zach Loafman
c5ab2412a3
chmod 755 hack/jenkins/build.sh (sorry)
2015-01-12 09:33:50 -08:00
Dawn Chen
724e766f91
Merge pull request #3360 from zmerlynn/jenkins_scripts_start
...
Initial commit of Jenkins script + README
2015-01-12 09:22:39 -08:00
Zach Loafman
0918bdbd88
Fix monitoring.sh flake (hopefully)
...
This was staring at me yesterday, and I even commented that "huh,
there's got to be something wrong with the firewall rules, but then
job/kubernetes-e2e-gce/1002/tapResults/ made it obvious: If you have
two e2e jobs running at the same time in the same project (hint:
Jenkins does), they'll race with each other, since resource names are
project scoped.
2015-01-10 08:19:55 -08:00
Zach Loafman
ca1753e51f
Initial commit of Jenkins script + README
...
And a config description. This doesn't yet have much - first want to
make sure I can do the build job. Next I'll submit the e2e script with
its twiddles and switch those over. (After going to 3 e2es, I think
it's finally time for version control.)
2015-01-09 16:28:48 -08:00
Clayton Coleman
dcd11761e7
Reenable Coverage and Race detection for travis and integration test
2015-01-09 13:16:30 -05:00
bgrant0607
7bff03fb41
Merge pull request #2878 from smarterclayton/enable_v1beta3
...
Enable v1beta3 API via --runtime_config=api/v1beta3 flag
2015-01-08 11:04:06 -08:00
Tim Hockin
812e8346ac
Merge pull request #3314 from zmerlynn/fix_services_sh_version_skewed
...
GKE: Fix services.sh for server versions < 0.8.0
2015-01-08 10:55:31 -08:00
Zach Loafman
e250c46598
GKE: Fix services.sh for server versions < 0.8.0
...
Commit e045c6ce
broke this test against all server versions <0.8.0,
which immediately broke the GKE Jenkins runs.
2015-01-08 10:42:01 -08:00
Clayton Coleman
7fd887df61
Enable v1beta3 API via --runtime_config=api/v1beta3 flag
...
This exposes the proper v1beta3 API endpoint when the user specifies
the --runtime_config=api/v1beta3 argument to the apiserver. v1beta3
is still considered experimental and subject to change.
--runtime_config is a map of string keys and values, that can be
specified by providing
--runtime_config=a=b,b=c,d,e
Only the key must be specified, the value can be omitted.
Enables v1beta3 in hack/local-up-cluster.sh and hack/test-cmd.sh
2015-01-08 13:01:24 -05:00
Clayton Coleman
8262c30c97
Improve serialization round trip test and add v1beta3
2015-01-08 12:44:28 -05:00
Clayton Coleman
2495174ab7
test-cmd should test all api versions
2015-01-08 10:47:53 -05:00
Vish Kannan
869f06c4e8
Merge pull request #3257 from brendandburns/monitoring
...
Add some more robustness to the curl check.
2015-01-08 07:40:16 -08:00
Zach Loafman
3ddde070f3
Merge pull request #3309 from brendandburns/race
...
Add some retry around the wget, in an effort to deflake the test
2015-01-07 22:20:42 -08:00
Brendan Burns
dba7248d0e
Add some more robustness to the curl check.
2015-01-07 21:07:49 -08:00
Brendan Burns
eda47206bd
Add some retry to the wget checking from container.
2015-01-07 21:05:19 -08:00
Eric Tune
0d4d1e28b2
Merge pull request #3270 from smarterclayton/kubelet_fixes
...
Cleanup to client initialization in Kubelet
2015-01-07 15:55:38 -08:00
Tim Hockin
d314862e46
Merge pull request #3285 from erictune/public_reflectors
...
Make Reflector helpers reusable.
2015-01-07 14:10:57 -08:00
Eric Tune
7d5ac856c5
Make Reflector helpers reusable.
...
Scheduler uses Reflector from pkg/client/cache.
It defines some helper classes.
I'd like to use those helpers with pkg/client/cache
in kube-proxy and kubelet too.
2015-01-07 13:49:37 -08:00
Clayton Coleman
ba53d723d3
Clean up how client is passed to Kubelet in preparation for reading pods
...
Also fixes how Kubelet server looks up pods by name when there are multiple
sources.
2015-01-07 14:40:37 -05:00
Rohit Jnagal
62ecd5f3ff
Fix few vet errors.
...
There are quite a few 'composite literal uses unkeyed fields' errors that I have kept out of this patch.
And there's a couple where vet just seems confused. These are the easiest ones.
2015-01-07 08:40:16 +00:00
Eric Tune
ee2f63a877
Merge pull request #3221 from thockin/integ
...
Reduce verbosity on integration tests
2015-01-06 12:50:38 -08:00
Eric Tune
823d878b30
Merge pull request #3246 from zmerlynn/newline_printable
...
Fix newlines in TAP stdout/stderr output
2015-01-06 11:41:08 -08:00
Zach Loafman
9312af4f79
Fix newlines in TAP stdout/stderr output
...
It turns out, newlines are not "printable", causing the TAP
stderr/stdout output to be smushed. Also address etune's comment on
pr3208.
2015-01-06 08:08:19 -08:00
Brendan Burns
cdad54ba48
Merge pull request #3232 from nikhiljindal/third_party
...
Moving swagger-ui files from www/swagger-ui to third_party/swagger-ui
2015-01-05 21:38:41 -08:00
nikhiljindal
1db30aeb51
Moving swagger-ui files from www/swagger-ui to third-party/swagger-ui
...
and adding LICENSE and README files
2015-01-05 16:27:33 -08:00
Joe Beda
943ed6d289
Merge pull request #3146 from zmerlynn/limit_liveness_gke
...
GKE: Limit liveness.sh to server version >0.7.2
2015-01-05 14:41:39 -08:00
Zach Loafman
7d507a4fa9
Merge pull request #3228 from jbeda/dns-release
...
Create cluster/addons for things to put into a kubernetes cluster
2015-01-05 14:26:04 -08:00
Zach Loafman
e965fc1f79
GKE: Limit liveness.sh to server version >0.7.2
...
What I really want is
https://github.com/GoogleCloudPlatform/kubernetes/issues/2953 , but
haven't had a chance to code that yet. Maybe it's time. (Then I'd
remove the provider-specific test and just say "is it > 0.7.2, or does
it claim to be capable of something from the future?" The latter
covers the HEAD server case .. though just bumping the server version
immediately after release might also accomplish that, too.)
2015-01-05 14:21:21 -08:00
Clayton Coleman
d90cf9b8ac
Boilerplate checks on 2014, but commit included a 2015 (breaks travis)
...
Revert boilerplate to 2014 until hack/verify-boilerplate.sh is fixed
2015-01-05 16:28:52 -05:00
Joe Beda
9aa48b7628
Move heapster data files to cluster/addons.
...
Also pretty up the JSON (make it real JSON) and streamline the sed in cluster/gce/init.sh.
2015-01-05 12:32:35 -08:00
Joe Beda
4e417b98b5
Merge pull request #3206 from zmerlynn/jenkins_style_e2e
...
Add script to run e2e tests from binary deployment: e2e-from-release.sh
2015-01-05 11:09:38 -08:00
Tim Hockin
987d6ccef4
Reduce verbosity on integration tests
2015-01-05 10:51:43 -08:00
Zach Loafman
d938ecaba2
Escape stdout/stderr YAML-like elements for TAP output
...
Fixes https://github.com/GoogleCloudPlatform/kubernetes/issues/3094
2015-01-04 08:02:43 -08:00
Zach Loafman
51afb97b59
Add script to run e2e tests from binary deployment: hack/e2e-from-release.sh
...
We need a way to quickly emulate what Jenkins is doing. This script
easily demonstrates problems like
https://github.com/GoogleCloudPlatform/kubernetes/issues/3190 , which
git based e2e runs won't show.
2015-01-04 05:55:29 -08:00
Tim Hockin
e045c6ce2f
Split portals into host and container
...
After this DNS is resolvable from the host, if the DNS server is targetted
explicitly. This does NOT add the cluster DNS to the host's resolv.conf. That
is a larger problem, with distro-specific tie-ins and circular deps.
2014-12-29 09:18:12 -08:00
Tim Hockin
1c9ac79e78
Merge pull request #3141 from lavalamp/optimize
...
Fix e2e; add template function to make this possible
2014-12-23 15:03:33 -08:00
Daniel Smith
eff054515a
fix update.sh
2014-12-23 22:48:43 +00:00
Brendan Burns
3f43dd32be
Add some extra checks to (hopefully) prevent flakes.
2014-12-23 09:34:27 -08:00
Patryk Dunski
02862f926d
Issue #3101 - fixes high CPU load in hack/local-up-cluster.sh when there is no standard input defined
2014-12-22 22:47:00 +01:00
Joe Beda
44ce5bef6a
Merge pull request #3088 from sergeyevstifeev/patch-1
...
Remove unnecessary 'sudo'
2014-12-22 13:19:49 -08:00
Sergey Evstifeev
5236b22cda
Run only kubernetes components with sudo
2014-12-22 20:12:02 +01:00
Vishnu Kannan
ad37518fbe
Improve monitoring e2e test.
2014-12-20 02:02:03 +00:00
Max Forbes
c3efef86d0
Add GKE as a provider.
2014-12-19 11:47:06 -08:00
Brendan Burns
4833b88af4
Fix the e2e test to remove a race.
2014-12-18 13:45:41 -08:00
Brendan Burns
1720a4f170
Merge pull request #3001 from zmerlynn/taptimes
...
Fix duration_ms output to seconds (_ms obviously means measure-in-second...
2014-12-17 21:42:01 -08:00
Zach Loafman
d3aed6c9cd
Add kubernetes-test.tar.gz
...
Add test artifacts to the build. This lets you do:
tar -xzf kubernetes.tar.gz
tar -xzf kubernetes-test.tar.gz
cd kubernetes
go run ./hack/e2e.go -up -test -down
without having a git checkout.
2014-12-17 14:30:30 -08:00
Zach Loafman
7ee633d186
Fix duration_ms output to seconds (_ms obviously means measure-in-seconds!?)
2014-12-17 10:04:09 -08:00
Zach Loafman
c25229937c
Add test timing to TAP output in hack/e2e.go
...
Found this buried at https://issues.jenkins-ci.org/browse/JENKINS-16647
2014-12-16 16:54:45 -08:00
bgrant0607
003ba68e4c
Merge pull request #2978 from brendandburns/exec
...
Add an e2e test for exec liveness probes. Fix the docker exec integration
2014-12-16 14:53:21 -08:00
Joe Beda
e933ac5784
Make it clearer how to run kubectl after bringing up a local cluster.
...
Fixes #2935 .
2014-12-16 14:21:22 -08:00
Brendan Burns
3a0d16ff35
Add an e2e test for exec liveness probes. Fix the docker exec integration.
2014-12-16 13:53:32 -08:00
bgrant0607
56ee66831b
Merge pull request #2979 from brendandburns/e2e
...
Wait for not pending, not for running.
2014-12-16 13:49:49 -08:00
Brendan Burns
12803c1a0e
Merge pull request #2944 from deads2k/deads-make-monitoring.sh-run
...
make e2e/monitor.sh work outside gce
2014-12-16 13:28:49 -08:00
Brendan Burns
d2ff21d3d5
Wait for not pending, not for running.
...
When failures occur, we go to 'Terminated' which can cause
indefinite blocking.
2014-12-16 13:27:34 -08:00
deads2k
8313e5d9bf
make e2e/monitor.sh work outside gce
2014-12-16 15:01:16 -05:00
Daniel Smith
e62280d84a
Merge pull request #2957 from brendandburns/e2e
...
Add an e2e test for http liveness.
2014-12-16 11:42:33 -08:00
Brendan Burns
f1b55c04e2
Add an e2e test for http liveness.
2014-12-16 11:38:52 -08:00
Alex Robinson
fe76243b05
Make it easy to use the e2e tests to test upgrading a running master
...
by adding support for testing official release versions and writing a
simple script to first bring up and test the old version before
upgrading it and testing it again. Related to supporting in-place
upgrades of masters (#2524 ).
2014-12-15 16:03:11 -08:00
Max Forbes
f9108c62c2
Use GCLOUD var consistently.
2014-12-15 13:08:10 -08:00
Max Forbes
bea37d5b17
Fix up e2e tests.
2014-12-15 11:53:51 -08:00
Brendan Burns
2d1b279311
Merge pull request #2905 from smarterclayton/misc_cleanup
...
Small fixes to prepare for v1beta3
2014-12-15 11:49:29 -08:00
Clayton Coleman
7d2a64b2a8
test-cmd should test all api versions
2014-12-12 18:23:17 -05:00
Zach Loafman
43addc7202
Add Test Anything Protocol (TAP) output to e2e.go
...
Adds a --tap option to change outputs to match the TAP format. Changes
pass/fail in general to "ok" / "not ok".
2014-12-11 12:20:38 -08:00
Zach Loafman
369064c69f
Add --times to e2e.go
...
Make each test available for execution --times times. Acts like a
multi-deck shoe. (Otherwise this is easily scriptable outside the
e2e.go command).
Useful for "I want to walk away for a few hours leaving some end-to-ends
running", until we have more stress tests. Also useful for detecting
flakes.
Reporting is changed to break out Passed, Flaky and Failed. I chose to
keep all three lines even if --times isn't on, just for consistency in
scraping. Similarly, it always outputs the counts now. A report looks
like:
2014/12/09 07:31:21 Passed tests: goe2e.sh[100/100] guestbook.sh[100/100] private.sh[100/100] services.sh[100/100]
2014/12/09 07:31:21 Flaky tests: basic.sh[99/100] certs.sh[99/100] monitoring.sh[98/100] pd.sh[98/100] update.sh[98/100]
2014/12/09 07:31:21 Failed tests:
2014/12/09 07:31:21 8 test(s) failed.
2014-12-11 12:18:56 -08:00
Brendan Burns
a670f833bd
Improve the pd e2e test by deleting the pod, and verifying that the PD was unmounted by
...
recreating the pod.
2014-12-10 20:31:46 -08:00
Clayton Coleman
d1d7505272
Rename client Minions->Nodes, select the correct path for v1beta3
...
Replaces the client public interface but leaves old references to "minions"
for a later refactor. Selects the path "nodes" for v1beta3 and "minions"
for older versions.
2014-12-10 12:08:19 -05:00
Deyuan Deng
bf42ea26d5
Use EXIT pseudo-signal
2014-12-08 21:28:18 -05:00
Zach Loafman
b7a7e92ad1
Add --pushup to e2e.go
...
Silly but hopefully memorable name for an option to --push OR --up
depending on cluster state.
2014-12-08 15:23:30 -08:00
Daniel Smith
c5667e1cfe
Merge pull request #2782 from zmerlynn/e2e.shuffle
...
Run e2e tests in deterministic random order
2014-12-08 13:01:32 -08:00
Zach Loafman
f3a992aa08
Run e2e tests in deterministic random order
...
Currently, we run the e2e tests in whatever order readdir happens to
return, which is random on some filesystems, name sorted on others,
create order on others, etc. Eventually, we may want to be
automatically hermetic between e2e tests (especially as we introduce
more resource destructive tests), but until then, it would be useful
if we permute the test order randomly between runs to ensure that
developers don't accidentally rely on a particular order. This
introduces a form of forced hermeticism, since improper state cleanup
from one test may not perturb a given test, but there's probably *a*
test in the suite that the order will perturb, so the RNG will find
that order eventually.
Adds logging of the generated seed, and an --orderseed argument that
can be used to re-run in the same order. Also sorts the pass/fail list
now for easier human reading.
2014-12-08 11:10:39 -08:00
Daniel Smith
0166649364
Merge pull request #2783 from zmerlynn/IsUp
...
Check if cluster is up before e2e test without -up
2014-12-08 10:54:22 -08:00
Zach Loafman
3afcebecca
Fix e2e-suite/certs.sh unbound variables
...
Fixes e2e failure on GCE
2014-12-07 16:39:56 -08:00
Zach Loafman
3009c88865
Check if cluster is up before e2e test without -up
...
Minor usability nuisance: If you run:
go run hack/e2e.go -v -test
.. and you don't happen to have an up e2e cluster, it should fail
fast, rather than chugging through every test and having them fall
over.
2014-12-07 15:35:22 -08:00
Brendan Burns
2a53b002ef
Fix the update test.
2014-12-05 15:21:53 -08:00
Brendan Burns
f5dd5138ef
Merge pull request #2774 from brendandburns/fix
...
Make certs.sh executable.
2014-12-05 15:19:18 -08:00
Brendan Burns
c60742a436
Make certs.sh executable.
2014-12-05 14:11:19 -08:00
Jordan Liggitt
4ab41f5be8
Add script to build ui assets, rebuild with latest go-bindata
2014-12-04 22:38:00 -08:00
Daniel Smith
9dfd5a1247
Merge pull request #2731 from brendandburns/bash
...
Adjust the regexp so that we can handle extra sub versions.
2014-12-04 11:12:47 -08:00
Tim Hockin
2486331d34
Add an e2e case for public IPs
2014-12-03 08:30:00 -08:00
Tim Hockin
bf1395f06a
use a here-doc instead of kubecfg run
2014-12-02 23:55:45 -08:00
Brendan Burns
373cf77ae1
Adjust the regexp so that we can handle extra sub versions.
2014-12-02 23:00:01 -08:00
Brendan Burns
77d4950f83
Add an e2e test for cert generation.
2014-12-02 17:08:48 -08:00
Brendan Burns
6ec5da9f6a
Merge pull request #2706 from vishh/monitoring_e2e
...
Adding an e2e test for monitoring.
2014-12-02 14:00:18 -08:00
Vishnu Kannan
090eb966f2
Adding an e2e test for monitoring.
2014-12-02 06:54:59 +00:00
James Kyle
361c8dbae5
Support remote docker hosts on OS X.
...
This commit brings two main changes, notably:
Two new options that can be set as environment variables
- DOCKER_OPTS: any arbitrary set of docker options. Example: --tlsverify
- DOCKER_NATIVE: This forces the use of the native docker available.
This is most useful if you're on OS X and do not want
to use boot2docker.
Now uses 'docker cp' instead of tar piping to transfer files. This
currently must be done by copying the binaries off of the docker volume
and into a local filesystem (/tmp) before a docker cp is done. This
workaround will no longer be necessary after bug fix
https://github.com/docker/docker/pull/8509 makes it into stable.
This was necessary because the tar | tar method was creating corrupted
archives on OS X even with the < /dev/null workaround.
2014-12-01 11:47:16 -08:00
Joe Beda
6ba07b38fc
Convert gcutil to gcloud compute
2014-11-25 15:17:00 -08:00
Joe Beda
175ca37bc7
trace-bash flag for e2e.go
2014-11-25 15:16:35 -08:00
Brendan Burns
45d1f26889
Merge pull request #2583 from jbeda/window-build
...
Support building/packaging Windows client binaries.
2014-11-25 11:17:20 -08:00
Brendan Burns
e1764e2e01
Add an e2e test for gce pd.
...
Add an example for gce pd.
Add an extra log message.
2014-11-25 09:02:00 -08:00
Joe Beda
5bf43236e3
Support building/packaging Windows client binaries.
...
Ug -- .exe suffix is a pain. These are largely untested.
2014-11-24 14:10:28 -08:00
Eric Tune
248dddf34a
Merge pull request #2538 from brendandburns/fix
...
Increase the verbosity of integration test runs.
2014-11-24 09:41:08 -08:00
Brendan Burns
5bda4f9292
Increase the verbosit of integration test runs.
2014-11-21 21:45:21 -08:00
Brian Grant
2ac8400cb2
Add API documentation pre-commit hook.
2014-11-20 20:25:44 +00:00
Brendan Burns
cea52d7e4f
Merge pull request #2409 from mattmoor/master
...
Implements a credentialprovider library for use by DockerPuller.
2014-11-17 21:53:25 -08:00
Matt Moore
0c5d9ed0d2
Implements a credentialprovider library for use by DockerPuller.
...
This change refactors the way Kubelet's DockerPuller handles the docker config credentials to utilize a new credentialprovider library.
The credentialprovider library is based on several of the files from the Kubelet's dockertools directory, but supports a new pluggable model for retrieving a .dockercfg-compatible JSON blob with credentials.
With this change, the Kubelet will lazily ask for the docker config from a set of DockerConfigProvider extensions each time it needs a credential.
This change provides common implementations of DockerConfigProvider for:
- "Default": load .dockercfg from disk
- "Caching": wraps another provider in a cache that expires after a pre-specified lifetime.
GCP-only:
- "google-dockercfg": reads a .dockercfg from a GCE instance's metadata
- "google-dockercfg-url": reads a .dockercfg from a URL specified in a GCE instance's metadata.
- "google-container-registry": reads an access token from GCE metadata into a password field.
2014-11-17 21:46:54 -08:00
Joe Beda
66d287f7e4
Merge branch 'rename-to-kube' of https://github.com/eparis/kubernetes into eparis-rename-to-kube
...
* 'rename-to-kube' of https://github.com/eparis/kubernetes :
rename kube server binaries to kube-
Conflicts:
docs/salt.md
2014-11-17 09:52:10 -08:00
Brendan Burns
403e57be09
Merge pull request #2404 from jbeda/fix-nogo-build
...
Make dockerized build work when golang isn't installed.
2014-11-17 09:43:08 -08:00
Joe Beda
f18cd53687
Make dockerized build work when golang isn't installed.
2014-11-16 16:29:58 -08:00
Brendan Burns
c38880047d
Update guestbook to fix given recent changes.
2014-11-15 19:36:02 -08:00
Tim Hockin
eafdc684e9
Merge pull request #1922 from brendandburns/guestbook
...
Update the services now that Services v2 has IP per service.
2014-11-14 21:13:19 -08:00
Daniel Smith
e4eb6149f8
Merge pull request #2383 from brendandburns/fix
...
Fix service e2e test, by eliminating the assumption that ips are re-used
2014-11-14 17:22:50 -08:00
Brendan Burns
97001e317b
Fix service e2e test, by eliminating the assumption that ips are re-used.
2014-11-14 17:22:01 -08:00
Joe Beda
06d838ffb1
Merge pull request #2369 from jbeda/vagrant-fix
...
Vagrant fixes
2014-11-14 16:43:06 -08:00
Dawn Chen
aa711af39e
Merge pull request #2355 from brendandburns/kubelet
...
Add support for the a clusters cloud interface to cloud provider.
2014-11-14 11:14:17 -08:00
Brendan Burns
d3e48c9525
Add the container API to our dependencies.
...
Update google-api-go-client
2014-11-14 10:38:22 -08:00
Joe Beda
5a0159ea00
Get Vagrant to start using TLS client certs.
...
Also fix up cert generation. It was failing during the first salt highstate when trying to chown the certs as the apiserver user didn't exist yet. Fix this by creating a 'kube-cert' group and chgrping the files to that. Then make the apiserver a member of that group.
Fixes #2365
Fixes #2368
2014-11-13 22:16:45 -08:00
Eric Paris
a99c3c7963
rename kube server binaries to kube-
...
apiserver becomes kube-apiserver
controller-manager -> kube-controller-manager
scheduler and proxy similarly.
Only thing I promise is that right now hack/build-go.sh and
build/release.sh exit with 0. That's it. Who knows if any of this
actually works....
2014-11-13 20:08:26 -05:00
Daniel Smith
c219d138ef
make e2e test get events in background, for easier debugging after the fact.
2014-11-13 17:03:06 -08:00
Dawn Chen
143d986b28
Merge pull request #2336 from davidopp/master
...
Change update example to use a trivial webserver instead of nginx (issue...
2014-11-13 09:57:00 -08:00
Daniel Smith
4e1ab8045b
fix e2e.go args for kubectl
2014-11-12 15:22:09 -08:00
David Oppenheimer
3d69351924
Change update example to use a trivial webserver instead of nginx (issue #1803 ).
2014-11-12 15:13:11 -08:00
Brendan Burns
110b5a3345
Update the services now that Services v2 has IP per service.
2014-11-12 11:31:28 -08:00
davidopp
6a736901ca
Revert "Change update example to use a trivial webserver instead of nginx (issue..."
2014-11-11 23:03:23 -08:00
davidopp
004bc49349
Merge pull request #2320 from davidopp/master
...
Change update example to use a trivial webserver instead of nginx (issue...
2014-11-11 22:56:27 -08:00
David Oppenheimer
03ae4b54a3
Change update example to use a trivial webserver instead of nginx (issue #1803 ).
2014-11-11 22:16:18 -08:00
Eric Tune
cf21f97cd2
Merge pull request #2309 from lavalamp/fix3
...
Refactors of kubectl object printers.
2014-11-11 16:39:04 -08:00
Daniel Smith
d6d6229fea
Actually let hack/e2e.go run kubectl
2014-11-11 15:32:12 -08:00
Daniel Smith
10c2a98eb0
Merge pull request #2043 from hmrm/e2e-vagrant
...
Clean up e2e bash-in-go script
2014-11-11 13:39:39 -08:00
Joe Beda
ba611c2e31
Merge pull request #2299 from jbeda/version-fix
...
Use all tags for version detection
2014-11-11 12:19:10 -08:00
Joe Beda
e02322ba4e
Use all tags for version detection
2014-11-11 11:20:19 -08:00
Haney Maxwell
fae27e2f17
Clean up e2e test
2014-11-11 11:03:07 -08:00
Brendan Burns
2c1221864d
Make a standalone binary.
2014-11-10 13:34:11 -08:00
Daniel Smith
d5c6499d93
Update scripts to expect versioned output in templates.
2014-11-07 16:47:22 -08:00
Daniel Smith
b8aa87ed50
Add handy -cfg and -ctl options to make it easy to run a kubecfg or kubectl command against your e2e cluster.
2014-11-07 16:47:22 -08:00
Daniel Smith
5d0036070c
Remove test verbosity; makes it hard to find failures when travis reports one.
2014-11-05 17:36:47 -08:00
Eric Paris
8a0e3e51e0
fix unbounded host_platform when building with --use_go_build
...
It's actually used unset a couple of lines after this patch, but this
just resolves it in one place instead of calling
$(kube::golang::host_platform) twice.
2014-11-04 13:58:06 -05:00
Eric Paris
7403de8bd4
add --use_go_build option when building binaries
...
Because of Fedora's crazy packaging guidelines, go install basically
isn't allowed. So allow us to use go build instead of go install.
test-integration also needs to accept the flag to be able to pass it
along to the build function.
2014-11-04 13:04:22 -05:00
Clayton Coleman
6026c8b56a
Add more extensive test-cmd scenarios for output
2014-11-04 10:44:56 -05:00
Clayton Coleman
179213f61c
local-up-cluster: terminate all processes on SIGINT
2014-11-04 10:44:56 -05:00
Brendan Burns
a4abafea02
Merge pull request #2129 from ddysher/fix-local-up
...
Fix local cluster scripts
2014-11-03 13:24:42 -08:00
Dawn Chen
2d92305338
Merge pull request #2132 from erikstmartin/kubelet-rootdir-fix
...
Fixes #1612 kubelet should fail to start if it cannot create rootDir
2014-11-03 12:51:47 -08:00
Erik St. Martin
f75f2bbc0f
Fixes #1612 kubelet should fail to start if it cannot create rootDir
2014-11-03 14:44:46 -05:00
Clayton Coleman
3836d24838
Merge pull request #2109 from smarterclayton/test_cmd_can_fail_on_public_addr
...
test-cmd.sh can fail if public IP not available
2014-11-03 11:21:27 -05:00
Deyuan Deng
a7bdb362da
Fix local cluster scripts
2014-11-02 23:30:14 -05:00
Joe Beda
bbb66af3db
Merge pull request #2092 from jbeda/1729-hack-build
...
Rationalize `build` and `hack` directories
2014-11-01 18:02:12 -07:00
Joe Beda
5d33ce46cc
Rework hack/ and build/ directories.
...
* Rewrite a bunch of the hack/ directory with modular reusable bash libraries.
* Have 'build/*' build on 'hack/*'. The stuff in build now just runs hack/* in a docker container.
* Use a docker data container to enable faster incremental builds.
* Standardize output to _output/{local,dockerized}/bin/OS/ARCH/*. This regularized placement makes cross compilation work.
* Move travis specific scripts under hack/travis
With new dockerized incremental builds, I can do a no-op `make quick-release` in ~30s. This is a significant improvement.
2014-11-01 17:56:41 -07:00
Clayton Coleman
c1c11557a4
hack/local-up-cluster fails to even launch apiserver
...
--machines was removed but still referenced in hack/local-up-cluster.
This is not a total fix, but at least allows the apiserver to start.
2014-11-01 12:20:16 -04:00
Clayton Coleman
6e1527ed06
test-cmd.sh can fail if public IP not available
...
test-cmd runs a 127.0.0.1 version of the apiservers, but does not
set --public_address_override, which means it can fail on some systems
(like Macs) which don't expose a bindable external port by default.
Since reachability is not necessary for test-cmd.sh today, set
public_address_override to 127.0.0.1
2014-11-01 12:19:13 -04:00
Eric Tune
55c2d6bbbb
Add basic Authorization.
...
Added basic interface for authorizer implementations.
Added default "authorize everything" and "authorize nothing
implementations.
Added authorization check immediately after authentication check.
Added an integration test of authorization at the HTTP level of
abstraction.
2014-10-31 12:04:33 -07:00
Deyuan Deng
019b7fc74c
Separate minion controller from master.
2014-10-30 20:24:15 -04:00
Daniel Smith
6befc75da5
Build local go components as well as a release
2014-10-28 12:37:03 -07:00
bgrant0607
653d9d70d1
Merge pull request #1993 from hmrm/e2e-vagrant
...
Allow e2e tests to run with vagrant
2014-10-27 19:19:29 -07:00
bgrant0607
e45910fb08
Merge pull request #2017 from jbeda/fix-e2e
...
Fix e2e tests
2014-10-27 16:51:19 -07:00
Joe Beda
053d65c086
Fix e2e tests
2014-10-27 16:31:31 -07:00
bgrant0607
ddea4ff709
Merge pull request #1977 from lavalamp/fix4
...
Start running e2e go tests. Disable broken test.
2014-10-27 16:27:11 -07:00
Brendan Burns
df3dd288f2
Fix the e2e tests and kubecfg given recent additional validation.
2014-10-27 13:39:21 -07:00
Joe Beda
019170e6fb
Merge pull request #1716 from proppy/boot2docker-bootstrap
...
docker: add cluster bootstrap and doc
2014-10-27 11:46:55 -07:00
Haney Maxwell
d709d8561a
Allow e2e tests to run with vagrant
2014-10-24 17:16:10 -07:00
Johan Euphrosine
966c3dae70
boot2docker: add cluster bootstrap and doc
2014-10-23 18:06:17 -07:00
Daniel Smith
1e249be99d
Start running e2e go tests. Disable broken test.
2014-10-23 16:13:46 -07:00
Daniel Smith
47f1cb966b
Fixes to e2e script
2014-10-23 14:54:50 -07:00
Brendan Burns
e1ae7bd16c
Merge pull request #1973 from lavalamp/fix4
...
fix backwards compatible script
2014-10-23 12:52:37 -07:00
Daniel Smith
d055e279fe
fix backwards compatible script
2014-10-23 12:51:21 -07:00
Brendan Burns
dbb23abac2
Fix the guestbook e2e test.
2014-10-23 11:32:01 -07:00
Daniel Smith
bfabb41604
New e2e script (in go this time) that doesn't completely suck
2014-10-23 11:03:30 -07:00
Brendan Burns
77d2815b86
Merge pull request #1967 from jbeda/e2e-fix
...
Fix e2e test for .ID->.Name change
2014-10-22 17:20:44 -07:00
Joe Beda
33763d07b2
Fix e2e test for .ID->.Name change
2014-10-22 17:19:53 -07:00
Haney Maxwell
3160500940
Refactor kubelet access and add SSL
2014-10-22 14:53:59 -07:00
Joe Beda
cb027ce2a9
Look at all tags when looking for version.
...
'git describe' uses only annotated tags by default. We want to use all tags as we can only create 'lightweight' tags in the GitHub UI.
2014-10-17 14:34:30 -07:00
Tim Hockin
95f57dc886
Clean up e2e more
...
Don't early-terminate on test fail.
Log which tests failed at the end.
2014-10-16 11:08:39 -07:00
Tim Hockin
99bca68c7d
Add local-up support
2014-10-16 08:36:47 -07:00
Tim Hockin
1c2f04b8b7
Add e2e test
2014-10-16 08:36:47 -07:00
Tim Hockin
e907011111
Core support for ip-per-service
2014-10-16 08:36:47 -07:00
Eric Tune
6f577aa321
Merge pull request #1789 from lavalamp/eventing4
...
Add event creation library and implement in scheduler.
2014-10-15 15:55:26 -07:00
Joe Beda
1874926a70
Merge pull request #1815 from thockin/e2e
...
Better final print in e2e
2014-10-15 15:51:18 -07:00
Sam Ghods
4b220f8b0a
kubectl: kubecfg rewrite for better modularity and improved UX
2014-10-15 15:29:54 -07:00
Tim Hockin
ee1f2ddf7c
Better final print in e2e
2014-10-15 14:31:15 -07:00
bgrant0607
e7573f63b3
Merge pull request #1812 from thockin/e2e
...
Allow e2e to only run some tests
2014-10-15 13:45:17 -07:00
Tim Hockin
d6d92d13f0
Allow e2e to only run some tests
2014-10-15 13:08:25 -07:00
Daniel Smith
180e90f7eb
Merge pull request #1790 from jbeda/1678-fix-e2e
...
Deal with the case where a pod goes away after we list it.
2014-10-15 12:01:28 -07:00
Daniel Smith
2987747a0f
Merge pull request #1794 from brendandburns/e2e
...
Add a pod update e2e test in go. Also adjust validation logic a little.
2014-10-15 11:59:30 -07:00
Daniel Smith
d4c750a878
Fix vet-go.sh and some things it complained about
2014-10-15 11:56:19 -07:00
Joe Beda
391335cbff
Deal with the case where a pod goes away after we list it.
...
Fixes #1678
2014-10-15 11:20:17 -07:00
Tim Hockin
360f2e53b0
Revamp e2e basic test to use a smaller container.
2014-10-15 10:54:56 -07:00
Brendan Burns
8d38f8890e
Add an e2e test in go. Also adjust validation logic a little to make it more reasonable.
...
Not integrated into existing e2e yet.
2014-10-14 16:43:00 -07:00
Joe Beda
e1b9f1aae2
Handle empty array in update.sh
...
Fixes #1776
2014-10-14 13:07:22 -07:00
Joe Beda
96c1bc17ca
Set shell options for reliability.
...
Tweak a few other small things in our shell scripts.
2014-10-10 12:33:36 -07:00
Joe Beda
d43a6ec5a3
Standardize how we refer to the kubernetes root.
...
Now use $KUBE_ROOT as the variable pretty much everywhere.
2014-10-10 12:33:36 -07:00
Joe Beda
38d5906044
Clean up READMEs and broken stuff.
...
Move all support for clouds that are broken with this change into an `icebox` directory. We'll move that stuff back out as we fix it up.
2014-10-10 12:33:36 -07:00
Filipe Brandenburger
60af857077
Merge pull request #1633 from thockin/vet
...
Add a script to run 'go vet'
2014-10-09 17:23:51 -07:00
Johan Euphrosine
784553c483
hack: add cluster in a pod manifest
2014-10-08 17:52:08 -07:00
Tim Hockin
61dcb91885
Add a script to run 'go vet'
2014-10-07 17:54:38 -07:00
Sam Ghods
868c6fe4b8
Increase logging levels in hack/local-up-cluster.sh
2014-10-07 00:07:05 -07:00
Sam Ghods
97dd16b913
Fix hack/local-up-cluster.sh to ensure apiserver comes up
2014-10-06 19:38:27 -07:00
Dawn Chen
a86d496f9a
Fix e2e tests.
2014-10-06 13:37:24 -07:00
David Reynolds
9fece09f26
Use -addr in start_etcd instead of -bind-addr
2014-09-30 19:33:28 -07:00
Joe Beda
81e91db697
Grab images as part of update e2e test
2014-09-26 14:31:12 -07:00
Joe Beda
7d6f5b45ea
Merge pull request #1414 from brendandburns/fix
...
Clean up scripts to require a minimal gsutil version.
2014-09-25 09:54:36 -07:00
Tim Hockin
d5f3d152d2
Merge pull request #1435 from brendandburns/e2e2
...
Add a new network for e2e tests, to isolate it from any other cluster.
2014-09-25 08:47:19 -07:00
Brendan Burns
511ec280b9
Add a new network for e2e tests, to isolate it from any other cluster.
2014-09-24 22:37:19 -07:00
Brendan Burns
431caa93df
Merge pull request #1335 from dchen1107/exit1
...
Convert existing kubernetes system to use ContainerStatus, instead of
2014-09-24 21:37:24 -07:00
Dawn Chen
96686b3692
Update e2e test to reflect the change.
2014-09-24 16:42:10 -07:00
Brendan Burns
4a034b4e77
Clean up scripts to require a minimal gsutil version.
2014-09-24 14:27:16 -07:00
Daniel Smith
50eb2cf59c
fix verify-gofmt's version detection
2014-09-24 14:25:21 -07:00
Dawn Chen
0e6ec3cbfc
Convert existing kubernetes system to use ContainerStatus, instead of
...
docker.Container directly.
Conflicts:
pkg/kubelet/dockertools/docker.go
pkg/registry/pod/rest.go
2014-09-24 11:16:46 -07:00
Filipe Brandenburger
30db3e281d
Cleanup hack/test-integration.sh
...
Proper quoting, error checks, use $KUBE_* variables when applicable, trap to do
cleanup on all errors, call cleanup explicitly on successful exit.
Tested:
- Ran it manually to completion, test run successful.
- Interrupted it during the run, checked that $? was non-zero, etcd was killed.
Signed-off-by: Filipe Brandenburger <filbranden@google.com>
2014-09-23 09:37:29 -07:00
Eric Paris
a96d16f8c0
Allow option to not build cmd/integration
...
In case it was built seperately (as in, on Fedora, we cannot use go
install as we do not have write permission to portions of the GOPATH)
2014-09-23 11:56:26 -04:00
Eric Paris
3a40db8f56
hack: Switch some $(dirname $0)../blah to use ${KUBE_*} vars
...
This doesn't fix anything broken. But we have config-go which exports
KUBE_REPO_ROOT and KUBE_TARGET. Using those means the test scripts can
be more easily moved around the repo and still work. Especially in
hack/test-integration.sh where we use hack/build-go.sh which is going
to use KUBE_TARGET to place the binary, then we use a different method
to find/execute the binary...
2014-09-23 10:10:55 -04:00
Tim Hockin
cf86d66076
rename labels in kubcfg logic
2014-09-22 15:34:13 -07:00
Clayton Coleman
463a16af36
Add benchmarks for API tests
2014-09-19 17:17:54 -04:00
Clayton Coleman
54e0af8b96
Allow -race to be disabled in test-go.sh
2014-09-19 14:09:42 -04:00
Clayton Coleman
27bbd7df56
Increase the hack/test-go.sh timeout to account for more fuzzing
...
We fuzz v1beta1 and v1beta2 now, so fuzzer takes twice as long.
2014-09-18 14:17:32 -04:00
Jessica Forrester
2dc30aa932
Remove unused enable_cors flag and allow localhost without a port as an origin in local-up-cluster
2014-09-12 13:01:32 -04:00
Filipe Brandenburger
fabf7c7f55
Fix the e2e scripts after PR 1284 which added a new file.
2014-09-11 15:32:11 -07:00
Daniel Smith
6757b402d5
Merge pull request #1133 from jwforres/enable_cors
...
Add option to enable a simple CORS implementation for the api server
2014-09-11 13:59:14 -07:00
Eric Paris
d687156154
Try to document all environment variable used by config-go.sh
2014-09-10 17:16:27 -04:00
Eric Paris
df5fe66636
KUBE_NO_GODEPS to not use in tree godeps
...
If this is set, and it normally shouldn't be, the config file will not
add the in tree Godeps to the GOPATH. So all of them must be solved by
the KUBE_EXTRA_GOPATH
2014-09-10 16:51:23 -04:00
Eric Paris
35f03d4241
KUBE_EXTRA_GOPATH to append to the GOPATH
...
So you can add your own package to the GOPATH outside of the kube tree
2014-09-10 16:47:57 -04:00
Eric Paris
e426dd78a1
function to turn list of targets to list of go packages
2014-09-10 13:16:45 -04:00
Eric Paris
4ba97e3968
Move default target list from build_go to config_go
2014-09-10 12:20:50 -04:00
Jessica Forrester
8b4ca9c2a7
Move CORS handler wrapping into cmd/apiserver and switch config flag to a list of allowed origins
2014-09-09 17:50:18 -04:00
Jessica Forrester
8723eece49
Add option to enable a simple CORS implementation for the api server
2014-09-09 17:50:18 -04:00
Daniel Smith
d397d64b9e
go test -cover -race is fixed now
2014-09-09 14:06:23 -07:00
Dan Mace
2e1d62ac65
Typo correction
2014-09-08 20:23:30 -04:00
Joe Beda
073327277b
Fix label query in e2e basic.sh
2014-09-05 14:10:02 -07:00
Joe Beda
1410724031
Fix up some flaky behavior of the new improved update e2e test.
2014-09-05 13:04:31 -07:00
Daniel Smith
ee1c0838d8
Merge pull request #1142 from jbeda/tweak-demo
...
Improve update demo, support rolling template update
2014-09-05 10:07:58 -07:00
Filipe Brandenburger
be322fc5da
Merge pull request #1174 from eparis/version-shell-overrides
...
Allow setting of git_commit, version, and dirty via shell varables
2014-09-05 09:26:01 -07:00
Eric Paris
428e0aaff0
Allow setting of git_commit, version, and dirty via shell varables
...
This is particularly useful if building from a tarball instead of from a
checked out git repo (as all Linux distributions do)
2014-09-05 11:48:04 -04:00
Eric Paris
c7e8e05706
Capitalize bash variable and prefix with KUBE_
...
We intend to make these setable by the environment. This just does the
renaming.
2014-09-05 11:42:51 -04:00
Eric Paris
78b82382cf
default to build all binaries even if build options given
2014-09-05 10:07:10 -04:00
Joe Beda
ce34eacd2c
Fix up e2e test for update demo.
...
Use the scripts that are in the example directory. Also actually run the update as part of the test.
2014-09-04 13:25:39 -07:00
Joe Beda
c47b405841
Use KUBECFG instead of CLOUDCFG in scripts
2014-09-04 13:25:39 -07:00
Andriy Yurchuk
22ce0022d1
Merge branch 'master' into build-go-verbose
2014-09-04 22:16:24 +03:00
Brendan Burns
4a934427db
Exclude vendored etcd.
2014-09-04 12:05:34 -07:00
Andriy Yurchuk
24d0eb43ec
Merge branch 'master' into build-go-verbose
2014-09-04 21:27:15 +03:00
Dawn Chen
87278a6f56
Merge pull request #1179 from brendandburns/fix
...
Fix travis and cluster installs.
2014-09-04 10:32:45 -07:00
Brendan Burns
3864cf453a
Fix travis and cluster installs.
2014-09-04 10:31:09 -07:00
Brendan Burns
78df593c57
Fix a shell typo.
2014-09-04 10:03:49 -07:00
Tim Hockin
512b0ab90a
Merge pull request #1176 from brendandburns/travis
...
Re-enable travis for Go tip
2014-09-04 09:57:14 -07:00
Brendan Burns
53e3bff464
Re-enable travis for Go tip
2014-09-04 09:56:28 -07:00
Andriy Yurchuk
5878794fd7
Be a little more verbose while building local go
2014-09-04 13:25:16 +03:00
Filipe Brandenburger
3d03b4b80f
Also assume arguments starting with dashes are go flags in hack/build-go.sh
...
Tested:
$ hack/build-go.sh cmd/kubelet -v
github.com/GoogleCloudPlatform/kubernetes/pkg/...
Signed-off-by: Filipe Brandenburger <filbranden@google.com>
2014-09-03 14:59:29 -07:00
Filipe Brandenburger
8effbdc63f
In hack/test-go.sh
treat arguments that start with a dash as go flags.
...
This fixes `hack/test-go.sh pkg/apiserver -test.run=<a_specific_test_name>`
which was broken by PR #1116 .
Signed-off-by: Filipe Brandenburger <filbranden@google.com>
2014-09-03 14:57:19 -07:00
Tim Hockin
640a1d323d
Improve test script
...
add usage
verify flag value for -i is numeric
allow multiple targets on the command line
actually capture coverage output
fix lingering GOFLAGS undef issue
fix issue with -i not working at all: ((x++)) returns 1 when x is 0, which is
incompatible with "set -e"
2014-09-03 09:40:20 -07:00
Filipe Brandenburger
b94749ec70
Set gitMajor and gitMinor from hack/build-go.sh
...
Set the values of major and minor version based on the output of the
`git describe` command, which uses annotated tags as source of
versioning information.
Minor will get a "+" appended whenever the annotated tag does not match
the tree exactly (including when the tree is dirty.) So that only
official releases will have a "bare" minor version, all others will have
a "+" to indicate the binaries contain changes from the released version
in minor.
(This is similar to how versions of development builds of the Linux
kernel work.)
Tested:
- With no annotated tags:
$ hack/build-go.sh
$ _output/go/bin/kubecfg -version=raw
version.Info{Major:"0", Minor:"1+", GitVersion:"v0.1+", GitCommit:"7d29873bdee87efacaace30ab3602297cacf1b4f", GitTreeState:"clean"}
- Tagging current version on a clean git tree:
$ git tag -a -m 'Test tag v2.3' v2.3
$ hack/build-go.sh
$ _output/go/bin/kubecfg -version=raw
version.Info{Major:"2", Minor:"3", GitVersion:"v2.3", GitCommit:"7d29873bdee87efacaace30ab3602297cacf1b4f", GitTreeState:"clean"}
- Tagging current version on a dirty git tree:
$ git tag -a -m 'Test tag v2.3' v2.3
$ touch test.txt # this is enough to mark the tree as dirty
$ hack/build-go.sh
$ _output/go/bin/kubecfg -version=raw
version.Info{Major:"2", Minor:"3+", GitVersion:"v2.3-dirty", GitCommit:"7d29873bdee87efacaace30ab3602297cacf1b4f", GitTreeState:"dirty"}
- Tagging a previous version on a clean tree:
$ git tag -a -m 'Test tag v2.3' v2.3 HEAD~5
$ hack/build-go.sh
$ _output/go/bin/kubecfg -version=raw
version.Info{Major:"2", Minor:"3+", GitVersion:"v2.3-6-g7d29873bdee87e", GitCommit:"7d29873bdee87efacaace30ab3602297cacf1b4f", GitTreeState:"clean"}
Signed-off-by: Filipe Brandenburger <filbranden@google.com>
2014-09-02 16:23:31 -07:00
Filipe Brandenburger
8cd7387cc0
Include -dirty
suffix in version info when building on a dirty tree
...
Ensure the output of `git describe` will include the `-dirty` suffix
when building on a tree with modified files in it.
Tested:
- ...
Signed-off-by: Filipe Brandenburger <filbranden@google.com>
2014-09-02 16:23:31 -07:00
Joe Beda
843ae1fbe2
Rename output/
directory to _output/
...
go build ./... will ignore any directory starting with an underscore.
2014-08-29 14:44:55 -07:00
Tim Hockin
f0c3896281
Build tweaks
...
Wrap long lines.
Add GOFLAGS support to build and test.
Comments.
2014-08-28 22:56:00 -07:00
Deyuan Deng
c63205b0a7
Add quotes for variable; change shell redirection.
2014-08-28 22:31:53 -04:00
Deyuan Deng
9fed990da6
Start scheduler locally.
2014-08-28 20:48:36 -04:00
Daniel Smith
e2895c3bd8
Merge pull request #1055 from brendandburns/flake
...
Add the ability to multiple test iterations without rebuilding.
2014-08-28 10:31:44 -07:00
Daniel Smith
8072f69a4c
Merge pull request #1054 from filbranden/build_without_godep
...
Build without godep
2014-08-28 10:07:05 -07:00
Ryan Richard
2565164a8d
Add Rackspace support for dev-build-and-up
2014-08-28 10:36:58 -05:00
Brendan Burns
9fce47ac68
Add the ability to multiple test iterations without rebuilding.
...
Address comments.
2014-08-27 22:07:40 -07:00
Filipe Brandenburger
0ade8a5cf4
Do not leak undocumented variables from config-go.sh
...
Run the snippet that creates the output/go/ tree in a subshell.
Tested:
- Built it with hack/build-go.sh
- Ran release/build-release.sh successfully.
- Moved away the git tree to confirm no regression in PR #1073 .
- Sourced hack/config-go.sh in the shell, confirmed no variable or
function other than the expected ones leaked into the environment.
- Used `git grep` to confirm the no longer exported variables were
not in use by any script other than config-go.sh.
Signed-off-by: Filipe Brandenburger <filbranden@google.com>
2014-08-27 21:17:47 -07:00
Filipe Brandenburger
391cd856c1
Use cd
and pwd
in a subshell to define ${KUBE_REPO_ROOT}
...
The old method (using `readlink`) was convoluted and not portable. We
can achieve the same result using only bash builtins.
Signed-off-by: Filipe Brandenburger <filbranden@google.com>
2014-08-27 21:17:24 -07:00
Filipe Brandenburger
09dd081543
Document public KUBE_* environment variables and export them
...
Add a section for environment variables in config-go.sh. Document the
three public environment variables defined by this script. Make sure the
variables get exported so that they can be used by commands spawned by a
shell that sourced the config script.
Signed-off-by: Filipe Brandenburger <filbranden@google.com>
2014-08-27 21:14:30 -07:00
Filipe Brandenburger
e33d4678e6
Fix line 55: ldflags[*]: unbound variable
...
This is caused by bash thinking that an empty array is the same as an
undefined variable and `set -o nounset` treating that as an error.
Fix that by using an empty string as the default for the expansion.
Fixes PR #1069 (6e25f60288
).
Tested:
- Before this patch:
$ mv .git .gitbackup
$ hack/build-go.sh
/home/filbranden/devel/kubernetes/hack/config-go.sh: line 55: ldflags[*]: unbound variable
- After this patch:
$ mv .git .gitbackup
$ rm -rf output/
$ hack/build-go.sh
$ output/go/bin/kubelet -version
Kubernetes version 0.1+, build (unknown)
Signed-off-by: Filipe Brandenburger <filbranden@google.com>
2014-08-27 19:04:48 -07:00
Filipe Brandenburger
bf9113ea2e
Grab complete version information from git
...
This replaces the gitcommit() shell function with kube::version_ldflags()
which prepares a string suitable for Go's -ldflags parameter that fills
in the git version fields in pkg/version/base.go.
The gitCommit is now a full 40-character SHA1, the gitVersion will be
filled from `git describe` output (which will only be available once we
have annotated git tags) and gitTreeState will be filled with either
"clean" or "dirty" depending on the tree status at the time of the
build.
Use a kube:: "namespace" (there's really no such a thing in shell, but
the illusion still makes it nice) in order to make this nice to import
into existing shell scripts or on a shell session. (In the future, I'm
planning to introduce more functions and convert some of the top-level
commands into other kube::* shell functions.)
There's a difference now that -version will report a full SHA1, this
will be improved in a follow up change which will improve the Go code
for -version handling to give a more meaningful string that should be
enough to identify the origin of the binary in git.
Tested:
- Built it and checked output of -version:
$ hack/build-go.sh
$ output/go/bin/kubelet -version
Kubernetes version 0.1+, build 3ff7ee4b8c843c7767cd856fbf7d3027cd5410e6
- Ran the release script and checked output of the common.sls file:
$ release/build-release.sh TESTINSTANCE
$ cat output/release/master-release/src/saltbase/pillar/common.sls
instance_prefix: TESTINSTANCE-minion
go_opt: -ldflags '-X github.com/GoogleCloudPlatform/kubernetes/pkg/version.gitCommit 3ff7ee4b8c843c7767cd856fbf7d3027cd5410e6 -X github.com/GoogleCloudPlatform/kubernetes/pkg/version.gitTreeState clean'
- Successful run of hack/e2e-test.sh end-to-end tests.
Signed-off-by: Filipe Brandenburger <filbranden@google.com>
2014-08-27 17:36:04 -07:00
Filipe Brandenburger
4df5573967
Remove build dependency on godep
...
Instead of using `godep path`, we can simply set the GOPATH directly to
point to the Godeps/_workspace. We can still use `godep` to manage the
dependencies on the Godeps/ tree, but we don't need to have it available
for straight builds from git.
v2: Rebased and moved to inside kube::setup_go_environment() function.
Tested:
- Built it without godep in $PATH:
$ hack/build-go.sh
- Ran unit tests without godep in $PATH:
$ hack/test-go.sh
- Retested after rebase.
Signed-off-by: Filipe Brandenburger <filbranden@google.com>
2014-08-27 17:15:09 -07:00
Filipe Brandenburger
6e25f60288
Move go detection and environment setup into its own function
...
This way hack/config-go.sh can be used in environments where Go is not
available, such as running release/build-release.sh for Vagrant.
(The intention is to make config-go.sh a general library of helper
functions and import it from most other shell scripts.)
Fixes Issue #1057 .
Tested:
- Built it and made sure it works.
$ hack/build-go.sh
$ output/go/bin/kubelet -version
Kubernetes version 0.1+, build 0766e7a411c7-dirty
- Ran unit tests.
$ hack/test-go.sh
ok github.com/GoogleCloudPlatform/kubernetes/examples 1.105s coverage: 0.0% of statements
ok github.com/GoogleCloudPlatform/kubernetes/pkg/api 6.188s coverage: 86.1% of statements
ok github.com/GoogleCloudPlatform/kubernetes/pkg/api/errors 1.015s coverage: 81.8% of statements
ok github.com/GoogleCloudPlatform/kubernetes/pkg/apiserver 1.806s coverage: 85.1% of statements
ok github.com/GoogleCloudPlatform/kubernetes/pkg/client 1.211s coverage: 67.2% of statements
ok github.com/GoogleCloudPlatform/kubernetes/pkg/client/cache 1.115s coverage: 95.5% of statements
ok github.com/GoogleCloudPlatform/kubernetes/pkg/cloudprovider/gce 1.052s coverage: 7.3% of statements
ok github.com/GoogleCloudPlatform/kubernetes/pkg/cloudprovider/vagrant 1.045s coverage: 76.8% of statements
ok github.com/GoogleCloudPlatform/kubernetes/pkg/constraint 1.038s coverage: 100.0% of statements
ok github.com/GoogleCloudPlatform/kubernetes/pkg/controller 1.559s coverage: 78.8% of statements
ok github.com/GoogleCloudPlatform/kubernetes/pkg/conversion 3.440s coverage: 72.4% of statements
ok github.com/GoogleCloudPlatform/kubernetes/pkg/election 1.034s coverage: 71.4% of statements
ok github.com/GoogleCloudPlatform/kubernetes/pkg/health 1.043s coverage: 94.5% of statements
ok github.com/GoogleCloudPlatform/kubernetes/pkg/healthz 1.034s coverage: 100.0% of statements
ok github.com/GoogleCloudPlatform/kubernetes/pkg/httplog 1.027s coverage: 82.4% of statements
ok github.com/GoogleCloudPlatform/kubernetes/pkg/kubecfg 6.081s coverage: 58.5% of statements
ok github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet 1.400s coverage: 72.2% of statements
ok github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet/config 1.139s coverage: 90.1% of statements
ok github.com/GoogleCloudPlatform/kubernetes/pkg/labels 1.041s coverage: 98.7% of statements
ok github.com/GoogleCloudPlatform/kubernetes/pkg/master 1.033s coverage: 33.3% of statements
ok github.com/GoogleCloudPlatform/kubernetes/pkg/proxy 1.095s coverage: 86.5% of statements
ok github.com/GoogleCloudPlatform/kubernetes/pkg/proxy/config 1.038s coverage: 39.2% of statements
ok github.com/GoogleCloudPlatform/kubernetes/pkg/registry/binding 1.046s coverage: 100.0% of statements
ok github.com/GoogleCloudPlatform/kubernetes/pkg/registry/controller 1.039s coverage: 43.6% of statements
ok github.com/GoogleCloudPlatform/kubernetes/pkg/registry/endpoint 1.029s coverage: 25.0% of statements
ok github.com/GoogleCloudPlatform/kubernetes/pkg/registry/etcd 1.110s coverage: 79.5% of statements
ok github.com/GoogleCloudPlatform/kubernetes/pkg/registry/minion 1.048s coverage: 72.3% of statements
ok github.com/GoogleCloudPlatform/kubernetes/pkg/registry/pod 1.052s coverage: 62.1% of statements
ok github.com/GoogleCloudPlatform/kubernetes/pkg/registry/service 1.054s coverage: 80.0% of statements
ok github.com/GoogleCloudPlatform/kubernetes/pkg/scheduler 1.030s coverage: 90.4% of statements
ok github.com/GoogleCloudPlatform/kubernetes/pkg/service 1.363s coverage: 83.8% of statements
ok github.com/GoogleCloudPlatform/kubernetes/pkg/tools 1.136s coverage: 81.9% of statements
ok github.com/GoogleCloudPlatform/kubernetes/pkg/util 1.049s coverage: 83.9% of statements
ok github.com/GoogleCloudPlatform/kubernetes/pkg/util/config 1.036s coverage: 92.9% of statements
ok github.com/GoogleCloudPlatform/kubernetes/pkg/util/wait 1.029s coverage: 86.7% of statements
ok github.com/GoogleCloudPlatform/kubernetes/pkg/volume 1.032s coverage: 83.3% of statements
ok github.com/GoogleCloudPlatform/kubernetes/pkg/watch 1.040s coverage: 100.0% of statements
ok github.com/GoogleCloudPlatform/kubernetes/plugin/pkg/scheduler 1.026s coverage: 90.9% of statements
ok github.com/GoogleCloudPlatform/kubernetes/plugin/pkg/scheduler/factory 1.075s coverage: 85.4% of statements
? github.com/GoogleCloudPlatform/kubernetes/test/integration [no test files]
- Ran release/build-release.sh without go or godep in my $PATH.
$ PATH=...
$ which go
$ which godep
$ release/build-release.sh MYTEST
Building release tree
~/devel/kubernetes ~/devel/kubernetes
~/devel/kubernetes
Packaging release
$ cat output/release/master-release/src/saltbase/pillar/common.sls
instance_prefix: MYTEST-minion
go_opt: -ldflags "-X
github.com/GoogleCloudPlatform/kubernetes/pkg/version.gitCommit '0766e7a411c7-dirty'"
$ find output/release/master-release/ | wc -l
598
Signed-off-by: Filipe Brandenburger <filbranden@google.com>
2014-08-27 17:04:19 -07:00
Clayton Coleman
9006eadcfe
kube-proxy can read config from the apiserver
...
All clients that talk to a "master" as a host:port or URL
(scheme://host:port) parameter. Add tests.
2014-08-27 15:49:01 -04:00
Filipe Brandenburger
b777eb19e2
Add additional ldflags constants for Kubernetes versioning
...
Now it is possible to push these variables through ldflags:
- gitMajor
- gitMinor
- gitVersion (from latest annotated tag, output of git describe)
- gitCommit (renamed commitFromGit, intended to have the full sha1)
- gitTreeState (either "clean" or "dirty")
These are spawned into its separate source file, since they are meant to
be updated separately when a new version is released.
Also use the notation vX.Y+ for when git information is not present.
(This is consistent with the kernel build, e.g. Linux 3.15+ means its
version is >= 3.15 and < 3.16.)
v2: Added comments to the individual fields in pkg/version/base.go
Tested:
- Built it and checked the -version output:
$ hack/build-go.sh
$ output/go/bin/kubelet -version
Kubernetes version 0.1+, build c328679ef8aa
Signed-off-by: Filipe Brandenburger <filbranden@google.com>
2014-08-27 10:06:22 -07:00
Filipe Brandenburger
7785f14b32
Fix gitcommit() in hack/config-go.sh
...
Previously it would only print a version when the tree was dirty. Fix it
so that it will also print one on a clean tree.
Tested:
- Built it from a committed tree:
$ hack/build-go.sh
$ output/go/bin/kubelet -version
Kubernetes version 0.1, build a091590dd10c
Signed-off-by: Filipe Brandenburger <filbranden@google.com>
2014-08-27 09:16:35 -07:00
Daniel Smith
4d232cfee2
Merge pull request #1046 from ghodss/start-etcd-local-up-cluster
...
Modify hack/local-up-cluster.sh to use start_etcd function
2014-08-26 17:33:35 -07:00
Sam Ghods
242e1f9690
Modify hack/local-up-cluster.sh to use start_etcd function
2014-08-26 16:57:36 -07:00
Joe Beda
5722eba780
Propagate version info into salt config and use to build.
...
Fixes #1043 .
2014-08-26 16:17:06 -07:00
Joe Beda
bce7a4bd90
Merge pull request #1014 from smarterclayton/set_commit_with_ldflags
...
Use -ldflags to set git commit version
2014-08-26 10:56:56 -07:00
Clayton Coleman
9336373857
Use -ldflags to set git commit version
2014-08-25 16:40:47 -04:00
Daniel Smith
12af8a2161
Merge pull request #1008 from MSOpenTech/azure-fix
...
Refactor Azure deploy scripts
2014-08-25 11:45:33 -07:00
Clayton Coleman
b037989478
Add an integration test for etcd
2014-08-23 11:44:21 -04:00
Clayton Coleman
8a677b1226
Rename integration-test and update README
2014-08-23 11:44:21 -04:00
Jeff Mendoza
d8d09ace41
Refactor Azure deploy scripts.
...
Refactored to work with cluster/* scripts which require
actions to be defined as methods in cluster/azure/util.sh
2014-08-22 15:48:06 -07:00
Clayton Coleman
1c68247954
Merge pull request #909 from lavalamp/scheduler3
...
Scheduler plugin v1
2014-08-21 19:04:51 -04:00
Brendan Burns
0c1b89c7f2
Add some extra debugging, and a sleep to attempt to deflake the update test.
2014-08-20 22:28:54 -07:00
Tim Hockin
5f21ff5b45
Whitespace
2014-08-20 20:17:16 -07:00
Daniel Smith
dddad888b5
Begin scheduler plugin
2014-08-20 15:32:49 -07:00
Brendan Burns
0adde96bba
Update e2e scripts to use the -template parameter.
...
Add a script for the update demo.
2014-08-20 12:24:39 -07:00
brendandburns
6c9fda472d
Merge pull request #952 from smarterclayton/let_timeout_be_overriden
...
Let coverage and timeout be overriden in hack/test-go.sh
2014-08-19 09:36:04 -07:00
Clayton Coleman
d573d81306
Let coverage and timeout be overriden in hack/test-go.sh
...
As usual, shell review / test gratefully accepted. Tested on OSX and
F20
2014-08-19 01:13:03 -04:00
Joe Beda
617e5c72af
Improve documentation and checks for godep
2014-08-18 15:34:00 -07:00
Daniel Smith
a753372948
Merge pull request #922 from brendandburns/godep
...
Add a better error message if godep isn't in the path.
2014-08-18 09:37:56 -07:00
Brendan Burns
ff5ca94aa0
Add a better error message if godep isn't in the path.
2014-08-15 20:44:29 -07:00
derekwaynecarr
8c07a0f524
Fix verify-boilerplate
2014-08-15 13:12:01 -05:00
Joe Beda
629f964791
Fix e2e teardown
2014-08-14 13:57:50 -07:00
Brendan Burns
9f49650fba
Add a tear down option to the e2e, that just tears down the cluster
...
Useful for cleaning state after failed runs.
2014-08-14 09:58:40 -07:00
Nan Monnand Deng
eb462eba06
changed scripts to use godep
2014-08-13 15:02:14 -04:00
Daniel Smith
713a9488a2
Fix verification scripts to actually look at all go files.
2014-08-12 17:47:59 -07:00
csrwng
c65470583e
Remove etcd servers flag from controller manager in local-up-cluster
2014-08-07 10:02:15 -04:00
Tim Hockin
812d651b1b
Call build-go.sh before bundling a release
...
Now the dev-build-and-* scripts actually work.
2014-08-04 13:58:32 -07:00
Clayton Coleman
67166e581b
Run all go tests in parallel (6x speedup)
...
Currently hack/test-go.sh runs in serial in independent executions of
go test. By running all tests at once, we get parallel execution.
However, we cannot use -coverprofile with this mode, which seems worthwhile.
On a 4-core mac, runs tests in 15s that ran in 80s before. Tested on F20 and
OSX Mavericks.
2014-08-04 13:39:34 -04:00
brendandburns
6564f14ac4
Merge pull request #704 from derekwaynecarr/issue_603
...
Improve testing reliability
2014-08-04 09:11:57 -07:00
Filipe Brandenburger
d00e08bb5f
Fix shell script quoting, clean up build scripts
...
Fix quoting so that it works with arbitrary path names (e.g. containing
spaces.) Make hack/config-go.sh non-executable since it is meant for
sourcing and not as a standalone.
Tested:
- Checked out the tree to a directory with spaces, called the
build script from outside the tree, confirmed it worked as expected.
- Confirmed binaries work by running them with -version.
- Ran hack/build-go.sh cmd/kubecfg and confirmed only kubecfg was built.
- Ran hack/build-go.sh cmd/integration and confirmed it was built.
- Checked it out on a Mac and confirmed that the build script works.
- Confirmed that hack/test-go.sh and hack/test-cmd.sh work.
Signed-off-by: Filipe Brandenburger <filbranden@google.com>
2014-08-01 08:23:16 -07:00
Filipe Brandenburger
de405ac126
Improve generation of version information from the git tree
...
Detect whether the tree is dirty and append a "-dirty" indication to the
git commit (common practice with other repos, e.g. kernel, docker.)
Properly handle the case where a git tree is not found (e.g. building
from archive.)
In the sed expression, look for the variable to be updated
(commitFromGit) instead of hardcoding a line number.
Tested:
- Built from a dirty tree:
$ output/go/bin/kubelet -version
Kubernetes version 0.1, build 2d784c684c75-dirty
- Built from a clean tree:
$ output/go/bin/kubelet -version
Kubernetes version 0.1, build 505f23a31172
- Built from an archive:
$ hack/build-go.sh
WARNING: unable to find git commit, falling back to commitFromGit = `(none)`
$ output/go/bin/kubelet -version
Kubernetes version 0.1, build (none)
Signed-off-by: Filipe Brandenburger <filbranden@google.com>
2014-07-30 18:48:57 -07:00
Filipe Brandenburger
7e56609139
Handle -version flag on all commands
...
Tested: Passed -version argument to kubelet (and all other binaries):
$ output/go/bin/kubecfg -version
Kubernetes version 0.1, build 6454a541fd56
Signed-off-by: Filipe Brandenburger <filbranden@google.com>
2014-07-30 18:48:56 -07:00
derekwaynecarr
10e8c43f46
Improve testing reliability
2014-07-30 16:34:48 -04:00
Daniel Smith
3b8488028d
Add /version to server and check it in client.
...
Will help detect client/version skew and prevent e2e test from passing
while running a version other than the one you think it's running.
2014-07-28 15:45:25 -07:00
Brendan Burns
d898fb46cd
Exit if release.sh has errors.
2014-07-28 15:24:07 -07:00
brendandburns
1d4ed339c9
Merge pull request #664 from smarterclayton/remove_integration_from_build-go
...
Remove cmd/integration from hack/build-go.sh
2014-07-28 14:49:31 -07:00
Clayton Coleman
f9b6248f26
Travis should test that build-go.sh generated something
...
Add a new hack/test-cmd.sh that tries to use the generated
executables in a meaningful way. It does not require Docker
so as to be runnable in Travis
2014-07-28 15:23:17 -04:00
Clayton Coleman
34c1ad2a07
Remove cmd/integration from hack/build-go.sh
...
Covered by hack/integration-test.sh in travis
2014-07-28 14:46:28 -04:00
brendandburns
616398987a
Merge pull request #643 from zhgwenming/build
...
Use 'go install' instead of 'go build' to generate all commands at the same time.
2014-07-28 11:44:05 -07:00
brendandburns
d558a93a98
Merge pull request #651 from smarterclayton/allow_api_port_to_change
...
Allow API_{PORT,HOST} to be changed via hack/local-up
2014-07-28 10:47:39 -07:00
Albert Zhang
0375709fa3
Use 'go install' to build all commands at the same time.
...
'go build' compiles the packages but discards the results if multiple packages specified.
2014-07-27 22:20:13 -04:00
Clayton Coleman
7a63b53ee2
Allow API_PORT to be changed via hack/local-up
2014-07-27 15:38:12 -04:00
Brendan Burns
ea15e6709c
Add a sanity check for running etcd servers to the integration test script.
2014-07-26 22:31:30 -07:00
Kelsey Hightower
124b0e7ee6
Fix hack/build-go.sh to work on all platforms
...
Currently the hack/build-go.sh build script does not work
on OS X 10.9.x systems. This changes reverts back to building
one binary via a for loop.
2014-07-26 15:28:48 -07:00
brendandburns
25150947c8
Merge pull request #626 from smarterclayton/speed_up_build
...
Build all commands at the same time
2014-07-25 12:57:25 -07:00
Clayton Coleman
6f84fc06da
Remove cmd/ prefix on build-go.sh
...
Update places that depend on it.
2014-07-25 13:31:20 -04:00
Clayton Coleman
899127701e
Build all commands at the same time
...
In Go it's much more efficient to build several commands in the same
`go build` because the build has to load most of the dependency tree
each time. Roughly 50% on my machine:
Together (go1.2 on OS X):
real 0m4.049s
user 0m8.387s
sys 0m2.766s
Separate:
real 0m13.392s
user 0m12.420s
sys 0m6.882s
2014-07-25 13:23:23 -04:00
Clayton Coleman
f7948015bd
The quotes around the file should not be necessary
...
In Go 1.2 on the Mac they result in a file created with actual
quotes.
2014-07-25 13:11:45 -04:00
Brendan Burns
bf5ae4bb9d
Fork API types.
2014-07-24 21:47:08 -07:00
derekwaynecarr
69ae2fe4bb
Initial vagrant setup and e2e testing support
2014-07-24 16:32:36 -04:00
Jeff Mendoza
95ec94514b
Rename and move Azure scripts.
2014-07-18 16:13:05 -07:00
Jeff Mendoza
3ff6b0f8a6
First draft of shell scripts for deploying kube to Azure.
2014-07-18 13:11:50 -07:00
Albert Zhang
23e9c39a96
make build script works on os x if the current dir is not the kubernetes root
2014-07-13 18:47:52 +08:00
Brendan Burns
96187c10f0
Fix build script for os x.
2014-07-12 21:46:28 -07:00
Kouhei Ueno
663b80b6a3
make hack/config-go.sh sourceable from zsh
2014-07-12 15:37:24 +09:00
Clayton Coleman
9a9d140a8a
-cover causes races in Go 1.2
...
Make -covermode=atomic the default until we drop 1.2 support
Enable Go 1.2 in Travis
2014-07-11 15:48:31 -04:00
Clayton Coleman
8b06cd8e01
Allow hack/test-go.sh to support flags
...
Pass arguments after the package directly to go test
hack/test-go.sh pkg/util -v -test.run=TestNewStringSet
And also allow global flags
hack/test-go.sh "" -v
2014-07-07 09:30:44 -04:00
Nan Deng
903c4a957c
remove 1.2
2014-07-02 23:27:00 -07:00
Nan Deng
e444bf23f6
turn off code cover.
2014-07-02 23:23:14 -07:00
Nan Deng
0a97e514b3
turn on race detector by default
2014-07-02 23:22:09 -07:00
Daniel Smith
60f05c8d8d
update version package when building.
2014-07-02 15:32:30 -07:00
Brendan Burns
e5f36b8ec1
Disable gofmt for non go1.2 or go1.3
2014-07-01 11:25:59 -07:00
Brendan Burns
4d6a783e5f
Initial add of an environment variable for the kubernetes master.
2014-07-01 10:12:38 -07:00
Brendan Burns
c002cac157
Add some extra validation and checking to the local cluster setup.
2014-06-27 21:47:01 -07:00
Daniel Smith
ce7eb7686a
Merge pull request #256 from ironcladlou/local-cluster-proxy
...
Launch proxy as part of local-up-cluster.sh
2014-06-26 14:16:40 -07:00
Dan Mace
b733585123
Launch proxy as part of local-up-cluster.sh
2014-06-26 15:48:26 -04:00
Justin Huff
253a783365
Remove localkube
2014-06-26 11:52:23 -07:00
brendandburns
60e2d4b258
Merge pull request #250 from lavalamp/fix
...
Make boilerplate hook work for .sh files, too.
2014-06-26 10:01:46 -07:00
Daniel Smith
c97c514742
Rename cloudcfg to kubecfg
2014-06-25 18:01:37 -07:00
Daniel Smith
260af3017b
Make boilerplate hook work for .sh files, too.
2014-06-25 17:11:48 -07:00
Justin Huff
e948248546
Make local-up-cluster more user-friendly
2014-06-25 12:19:37 -07:00
Daniel Smith
f7968ce00b
Make integration test the manifest url feature. Make kubelet's docker pull command testable.
2014-06-24 16:57:35 -07:00
brendandburns
e173c21b7a
Merge pull request #210 from lavalamp/fix_doc
...
Add script to verify all boilerplate; add line to make travis run it.
2014-06-23 19:47:56 -07:00
Daniel Smith
a446467848
Fix jq detection (tested, works)
2014-06-23 13:57:05 -07:00
Daniel Smith
06410321e3
Add script to verify all boilerplate; add line to make travis run it.
2014-06-23 13:50:14 -07:00
Tim Hockin
035bc3ba3c
Minor: allow hack/build-go.sh to take args for faster iteration.
...
e.g.
$ ./hack/build-go.sh kubelet
+++ Building kubelet
$
2014-06-23 11:38:04 -07:00
Justin Huff
5736cc8d8a
Pass through args to localkube
2014-06-20 09:28:23 -07:00
Daniel Smith
53f6f3ead2
fix e2e test
2014-06-19 14:57:06 -07:00
brendandburns
e6b8555ba8
Add quotes around ${TRAVIS}.
2014-06-18 13:59:03 -07:00
Daniel Smith
3124db63c6
Merge pull request #155 from brendandburns/scripts
...
Add a version check for go.
2014-06-18 13:53:42 -07:00
Brendan Burns
35bf0fc0b7
Add a version check for go.
2014-06-18 13:38:29 -07:00
Brendan Burns
e824f84f20
Always build the cloudcfg binary at the beginning of the e2e script.
2014-06-18 10:10:18 -07:00
Brendan Burns
5f66d33880
Add load balancing support to services.
2014-06-17 21:28:20 -07:00
Daniel Smith
c27ad1390d
etcd does some trickery that was avoiding the pid capturing in our tests. Run in subshell.
2014-06-16 22:05:12 -07:00
Daniel Smith
b709532fdd
Move jq requirement message
2014-06-16 20:45:38 -07:00
Daniel Smith
b3c934cde1
Parse status; makes test much faster
2014-06-16 20:42:17 -07:00
Daniel Smith
d3049e4d11
Still build and push before running test, even if cluster is already running.
2014-06-15 23:39:24 -07:00
Daniel Smith
f03460ce5b
Rename local-up2.sh to local-up-cluster.sh
2014-06-15 22:15:37 -07:00
Daniel Smith
0a4e6b50ed
Add an alternate local-up experience.
2014-06-15 22:06:55 -07:00
Daniel Smith
c7a307ceb2
Merge pull request #105 from lavalamp/improve_e2e
...
Add a new e2e test; fix some bugs/usability problems
2014-06-14 16:03:56 -07:00
Daniel Smith
f02c27312b
Fix --allowed syntax
2014-06-14 09:52:29 -07:00
Daniel Smith
cba453d72b
Fix basic test the other way.
2014-06-13 17:31:57 -07:00
Daniel Smith
74ea18209a
Add mac instructions
2014-06-13 17:27:01 -07:00
Daniel Smith
2d0b111ba8
Fix basic e2e test
2014-06-13 17:24:12 -07:00
Joe Beda
d230625e1a
Move third_party code under third_party/src so it can be used in $GOPATH.
2014-06-13 17:15:49 -07:00
Daniel Smith
5626703634
Add a new e2e test; fix some bugs/usability problems
2014-06-13 16:30:26 -07:00
Daniel Smith
de3ae061ee
Split up e2e test code. More e2e tests on the way.
2014-06-13 12:35:03 -07:00
Daniel Smith
d937f6f776
working on a better e2e test
2014-06-13 11:26:55 -07:00
Joe Beda
110a390c97
Switch from gcloud compute
to gcutil
.
...
We'll switch back to the future once the interface has settled down.
2014-06-12 15:43:00 -07:00
Daniel Smith
69acbf5a74
Fix build
2014-06-12 09:35:04 -07:00
Daniel Smith
187f7d2534
cloudcfg working locally now
2014-06-12 09:35:04 -07:00
Daniel Smith
9e03e1d8ea
Generate password for local cluster, too
2014-06-12 09:35:04 -07:00
Daniel Smith
5d02bf0e4b
change name
2014-06-12 09:35:04 -07:00
Daniel Smith
8178240bbe
Add a binary and scripts for running a local kubernetes cluster.
2014-06-12 09:35:04 -07:00
Daniel Norberg
0a4e7985a9
e2e-test: expose minion 8080 port
...
Otherwise the test fails when trying to reach the
nginx containers.
2014-06-11 20:36:00 -04:00
Brendan Burns
9010ef954c
Update tests
2014-06-09 07:16:43 -07:00
Brendan Burns
40d615056e
Add a sleep to the e2e tests to ensure that the docker pull finishes.
2014-06-07 22:04:34 -07:00
Brendan Burns
bdbd79bf0a
fix up whitespace.
2014-06-06 23:42:14 -07:00
Brendan Burns
f833d9a594
Add a error if go isn't present on the system.
2014-06-06 23:42:13 -07:00
Joe Beda
894a7e3282
Move everything out of src and reorganize scripts.
...
Fixed up some scripts to be more robust. Changed the e2e test setup to use g1-small instances. Fixed up documentation to reflect the new script locations. Disabled the "curl | bash" cluster launch as it hasn't been well tested and doesn't include the cloudcfg tool yet.
2014-06-06 21:41:19 -07:00