Commit Graph

981 Commits (89900fa19b03d8e2f1599bba02b1d4cafe2d8a01)

Author SHA1 Message Date
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