Commit Graph

11722 Commits

Author SHA1 Message Date
Wojciech Tyczynski
ff8c772fe0 Increase timeout for deleting RC in e2e tests. 2015-05-25 11:51:11 +02:00
Jerzy Szczepkowski
7d2fb16829 Extended wait for cluster size timeout.
Extended wait for cluster size timeout in resize nodes e2e test to fix #8715.
2015-05-25 11:03:26 +02:00
Marek Grabowski
f5a3f7d17f Merge pull request #8721 from smarterclayton/incorrect_description
Description of ImagePullPolicy wrong in v1(beta3)
2015-05-25 10:50:44 +02:00
Filip Grzadkowski
5b03939b84 Fix WARNING when creating firewall during e2e tests 2015-05-25 09:46:24 +02:00
Wojciech Tyczynski
abc24fa65c Ignore /proxy from performance metrics 2015-05-25 09:21: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
Eric Paris
21335ce977 Remove unused stuff from Godeps
We don't need it any more, but it never got removed.  Yay!
2015-05-24 18:29:45 -04:00
invenfantasy
f70daaf606 Merge pull request #1 from invenfantasy/duplicate-config
remove duplicate configuration
2015-05-24 23:23:29 +08:00
invenfantasy
9ff8f7ec7d remove duplicate configuration 2015-05-24 23:20:03 +08:00
wizard
ca0d82dd44 add kubectl fix#8373 2015-05-24 16:33:11 +08:00
Paul Morie
95806ea68c Make references to files in examples links 2015-05-24 03:22:26 -04:00
Daniel Smith
cf7b0bdc2a Merge pull request #8547 from caesarxuchao/volumes-doc
update docs/volumes.md to v1beta3
2015-05-23 20:16:22 -07:00
Justin Santa Barbara
6564fedbdb Set (short) timeout for http request polling 2015-05-23 22:13:49 -04:00
Daniel Smith
fe3d59ba7a Merge pull request #8739 from justinsb/continue_to_support_publicips
WIP: Continue to support (deprecated) publicIPs
2015-05-23 17:41:09 -07:00
Paul Morie
38c96725c0 Add doc.go files for all volume plugins 2015-05-23 16:59:12 -04:00
Justin Santa Barbara
4b9b7ec2f9 Continue to support (deprecated) publicIPs
Not doing so breaks e2e tests and people that may be using them,
even though we will eventually want to stop supporting this now
that we have better alternatives for typical use cases (NodePort)
2015-05-23 16:37:27 -04:00
Paul Morie
34aa9455f9 Use byte buffer in expansion/expand.go 2015-05-23 14:34:10 -04:00
markturansky
3ad583cf2d Fixed spotty CanSupport for PV and added more unit tests for same 2015-05-23 09:59:05 -04:00
Vishnu Kannan
c2fcdec503 Adding an e2e test for headless services. 2015-05-22 23:00:24 -07:00
Vishnu Kannan
f0c20e17c5 Adding support for generating A records for headless services. 2015-05-22 23:00:24 -07:00
Dawn Chen
fe84643ccd Merge pull request #8728 from justinsb/nodeport_gce_e2e_fixes
Nodeport GCE e2e fixes
2015-05-22 21:08:15 -07:00
Justin Santa Barbara
ae80ed53cf Automatically open NodePort firewall rules for e2e tests 2015-05-22 22:39:40 -04:00
Justin Santa Barbara
c68e4163fe e2e fix: set NodePort back to 0, when changing from NodePort -> ClusterIP 2015-05-22 22:20:29 -04:00
Paul Morie
a4045d7da1 Change reference to downward api pod to link in doc 2015-05-22 21:51:12 -04:00
Zach Loafman
4292866c03 Merge pull request #8720 from cjcullen/clusterName
Re-add the cluster-name flag to ControllerManager
2015-05-22 16:53:57 -07:00
Dawn Chen
8d6d03b4a4 Merge pull request #8707 from justinsb/nodeport
WIP: ServiceType & NodePort work
2015-05-22 16:46:59 -07:00
Clayton Coleman
3db9f0528a Description of ImagePullPolicy wrong in v1(beta3) 2015-05-22 19:35:26 -04:00
CJ Cullen
d6e0aedec1 Re-add the cluster_name flag that the ServiceController and RouteController need. 2015-05-22 16:31:22 -07:00
Justin Santa Barbara
ada6882373 Add conversions for CreateExternalLoadBalancer for v1beta1 and v1beta2 2015-05-22 19:26:54 -04:00
Kamal Marhubi
bbcbbc9713 Explain that CoreOS 653.0.0+ is required for etcd2
This way inquisitive people won't have to check the blame to see why
that version is required.
2015-05-22 16:21:19 -07:00
Justin Santa Barbara
19c0d82edc Include the actual failing value in a validation error message 2015-05-22 19:14:28 -04:00
Justin Santa Barbara
270701b88a e2e testing for NodePort services 2015-05-22 19:14:28 -04:00
Justin Santa Barbara
bb697cee7e Clear LoadBalancerStatus both on LB delete and on update in the API
Although it takes some time to destroy a load balancer, we hide this complexity
from the user.
2015-05-22 19:14:28 -04:00
Justin Santa Barbara
a271771341 Richer errors for validation 2015-05-22 19:14:28 -04:00
Justin Santa Barbara
9255770068 Fix a few occurences of old language (e.g. visibility -> ServiceType) 2015-05-22 19:14:28 -04:00
Justin Santa Barbara
7346cc8042 Add ServiceType = NodePort; wire everything up 2015-05-22 19:14:28 -04:00
Justin Santa Barbara
03cdc077c3 Wire up the portallocator to service NodePorts
We still don't actually enable this though!
2015-05-22 19:14:28 -04:00
Justin Santa Barbara
3bb2fe2425 Create port allocator, based on IP allocator mechanism
Including some refactoring of IP allocator
2015-05-22 19:14:28 -04:00
Justin Santa Barbara
e49ad95462 Mark PublicIPs as deprecated & rename to DeprecatedPublicIPs in the latest API
We need to keep them in the API so that we can round-trip between versions.
2015-05-22 19:14:27 -04:00
Justin Santa Barbara
2197c8da5a Add NodePort to ServicePort
We prevent it from being set by validation
2015-05-22 19:14:27 -04:00
Justin Santa Barbara
973c2e4819 Add Type to ServiceSpec: ClusterIP or LoadBalancer 2015-05-22 19:14:21 -04:00
Dawn Chen
4cad3b568f Merge pull request #8644 from mbforbes/e2eLogBetter
Better logging for e2e start (debug failing pods)
2015-05-22 16:01:34 -07:00
saadali
27c777d61d Modify GCE upgrade script to not require exact version number 2015-05-22 15:57:35 -07:00
Dawn Chen
e52e299de2 Merge pull request #8706 from lavalamp/e2e-timeout
Use e2e framework in more tests
2015-05-22 15:53:00 -07:00
Dawn Chen
e58674b3cc Merge pull request #8579 from roberthbailey/kubelet-unit-tests
Fix kubelet tests for systems without functional dns to look up localhost
2015-05-22 15:50:39 -07:00
Daniel Smith
05d2ae5642 add framework to service accounts test 2015-05-22 15:29:12 -07:00
Daniel Smith
86799cdd9d add framework to emptyDir test 2015-05-22 15:29:12 -07:00
Daniel Smith
6ae8c78527 secrets test uses framework 2015-05-22 15:29:12 -07:00
Daniel Smith
11087d13b4 dns test uses framework 2015-05-22 15:29:12 -07:00
Justin Santa Barbara
3884d5fc59 Add LoadBalancer status to ServiceStatus
This will replace publicIPs
2015-05-22 18:27:05 -04:00