- 07 Dec, 2016 1 commit
-
-
bprashanth authored
-
- 06 Dec, 2016 39 commits
-
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue enable the kubernetes-metadata-plugin in a case of daemonSet <!-- Thanks for sending a pull request! Here are some tips for you: 1. If this is your first time, read our contributor guidelines https://github.com/kubernetes/kubernetes/blob/master/CONTRIBUTING.md and developer guide https://github.com/kubernetes/kubernetes/blob/master/docs/devel/development.md 2. If you want *faster* PR reviews, read how: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/faster_reviews.md 3. Follow the instructions for writing a release note: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/pull-requests.md#release-notes --> **What this PR does / why we need it**: **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes # **Special notes for your reviewer**: **Release note**: <!-- Steps to write your release note: 1. Use the release-note-* labels to set the release note state (if you have access) 2. Enter your extended release note in the below block; leaving it blank means using the PR title as the release note. If no release note is required, just write `NONE`. --> ```release-note ``` instruction to users that would like to enable the fluentd kubernetes-metadata plugin. Relevant only if you are using daemon-set
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 36990, 37494, 38152, 37561, 38136) join client CA bundles Last commit grabs client CA bundles from disparate parts of the auth config and makes a pool that contains all of them. I suspect a rebase broke this because of ordering. I'll keep these separate to make it easier for me to debug.
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 36990, 37494, 38152, 37561, 38136) api federation types First commit adds types that can back the kubernetes-discovery server with an `kubectl` compatible way of adding federated servers. Second commit is just generated code. After we have types, I'd like to start splitting `kubernetes-discovery` into a "legacy" mode which will support what we have today and a "normal" mode which will provide an API federation server like this: https://github.com/kubernetes/kubernetes/blob/master/docs/proposals/federated-api-servers.md that includes both discovery and proxy in a single server. Something like this: https://github.com/openshift/kube-aggregator . @kubernetes/sig-api-machinery @nikhiljindal
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 36990, 37494, 38152, 37561, 38136) Node E2E: Move ssh related functions into ssh.go. This PR moves all ssh related functions and variables into a separate file `ssh.go`. This is a minor cleanup preparing for my test framework refactoring work. Will send out the refactor PR later. /cc @kubernetes/sig-node
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 36990, 37494, 38152, 37561, 38136) Pass proxy environment variables to static pods **What this PR does / why we need it**: To access outside world or cloud provider APIs it might be required to use proxy. kubeadm will be passing proxy variables to static pods during init stage. **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes kubernetes/kubernetes#36573, kubernetes/kubeadm#5 **Special notes for your reviewer**: **Release note**: ```release-note - kubeadm will pass proxy environment variables to static pods. ```
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 36990, 37494, 38152, 37561, 38136) Never set hairpin mode on every interface <!-- Thanks for sending a pull request! Here are some tips for you: 1. If this is your first time, read our contributor guidelines https://github.com/kubernetes/kubernetes/blob/master/CONTRIBUTING.md and developer guide https://github.com/kubernetes/kubernetes/blob/master/docs/devel/development.md 2. If you want *faster* PR reviews, read how: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/faster_reviews.md 3. Follow the instructions for writing a release note: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/pull-requests.md#release-notes --> **What this PR does / why we need it**: Abandon setting hairpin mode if finding the peer interface fails; simply return an error. There are many reasons why finding the peer could fail - "`ethtool` not installed" is popular. Going ahead and changing the hairpin setting on every bridge-connected interface on the machine may have unwanted effects on other things installed on the machine (e.g. https://github.com/kubernetes/kops/issues/879) **Which issue this PR fixes** : fixes #19766 **Special notes for your reviewer**: **Release note**: <!-- Steps to write your release note: 1. Use the release-note-* labels to set the release note state (if you have access) 2. Enter your extended release note in the below block; leaving it blank means using the PR title as the release note. If no release note is required, just write `NONE`. --> ```release-note Kubelet will no longer set hairpin mode on every interface on the machine when an error occurs in setting up hairpin for a specific interface. ``` /cc @thockin who appears to have requested this implementation at https://github.com/kubernetes/kubernetes/pull/13628#issuecomment-138128180
-
keglevich3 authored
instruction to users that would like to enable the fluentd kubernetes-metadata plugin. Relevant only if you are using daemon-set
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Add "make help" to list all make targets and help info As discussed in [PR#29320comment](https://github.com/kubernetes/kubernetes/pull/29320#issuecomment-234420145), add a `make help` to make the use of `make` easy. Though it works well on my Ubuntu now (see the output as below, not sure if it still works on other systems), I believe the scripts are somewhat ugly, so, any suggestion for optimization is welcome. BTW, I intended to list targets by groups, but it's hard to do that automatically. So I just list them in alphabetical order. I think this may be enough. There are still some TODOs (also mentioned in the Makefile): 1. make EXCLUDE_TARGET auto-generated when there are other files in cmd/ 2. should we exclude the target "cmd/libs" but include "cmd/libs/go2idl/*"? 3. should we let `help` be the first/default target? It will show the help when we just type `make`. 1 and 2 are to exclude the invalid targets generated by `$(notdir $(abspath $(wildcard cmd/*/)))`: - OWNERS is just a file, it can't be a target - libs itself cannot be built /cc @thockin @jfrazelle @MHBauer @dims Output: ``` root@vm:/home/paas/zxp/code/k8s/fork/kubernetes# make help -------------------------------------------------------------------------------- all # Build code. # # Args: # WHAT: Directory names to build. If any of these directories has a 'main' # package, the build will produce executable files under _output/go/bin. # If not specified, "everything" will be built. # GOFLAGS: Extra flags to pass to 'go' when building. # GOLDFLAGS: Extra linking flags passed to 'go' when building. # GOGCFLAGS: Additional go compile flags passed to 'go' when building. # # Example: # make # make all # make all WHAT=cmd/kubelet GOFLAGS=-v # make all GOGCFLAGS="-N -l" # Note: Use the -N -l options to disable compiler optimizations an inlining. # Using these build options allows you to subsequently use source # debugging tools like delve. --------------------------------------------------------------------------------- check # Build and run tests. # # Args: # WHAT: Directory names to test. All *_test.go files under these # directories will be run. If not specified, "everything" will be tested. # TESTS: Same as WHAT. # GOFLAGS: Extra flags to pass to 'go' when building. # GOLDFLAGS: Extra linking flags to pass to 'go' when building. # GOGCFLAGS: Additional go compile flags passed to 'go' when building. # # Example: # make check # make test # make check WHAT=pkg/kubelet GOFLAGS=-v --------------------------------------------------------------------------------- clean # Remove all build artifacts. # # Example: # make clean # # TODO(thockin): call clean_generated when we stop committing generated code. --------------------------------------------------------------------------------- clean_generated # Remove all auto-generated artifacts. # # Example: # make clean_generated --------------------------------------------------------------------------------- clean_meta # Remove make-related metadata files. # # Example: # make clean_meta --------------------------------------------------------------------------------- cross # Cross-compile for all platforms # # Example: # make cross --------------------------------------------------------------------------------- federation-apiserver federation-controller-manager genfeddocs # Add rules for all directories in federation/cmd/ # # Example: # make federation-apiserver federation-controller-manager --------------------------------------------------------------------------------- gendocs genkubedocs genman genswaggertypedocs genutils genyaml hyperkube kube-apiserver kube-controller-manager kubectl kube-dns kubelet kubemark kube-proxy kubernetes-discovery libs linkcheck mungedocs # Add rules for all directories in cmd/ # # Example: # make kubectl kube-proxy --------------------------------------------------------------------------------- generated_files # Produce auto-generated files needed for the build. # # Example: # make generated_files --------------------------------------------------------------------------------- ginkgo # Build ginkgo # # Example: # make ginkgo --------------------------------------------------------------------------------- help # Print make targets and help info # # Example: # make help --------------------------------------------------------------------------------- quick-release # Build a release, but skip tests # # Example: # make release-skip-tests --------------------------------------------------------------------------------- release # Build a release # # Example: # make release --------------------------------------------------------------------------------- release-skip-tests # Build a release, but skip tests # # Example: # make release-skip-tests --------------------------------------------------------------------------------- test # Build and run tests. # # Args: # WHAT: Directory names to test. All *_test.go files under these # directories will be run. If not specified, "everything" will be tested. # TESTS: Same as WHAT. # GOFLAGS: Extra flags to pass to 'go' when building. # GOLDFLAGS: Extra linking flags to pass to 'go' when building. # GOGCFLAGS: Additional go compile flags passed to 'go' when building. # # Example: # make check # make test # make check WHAT=pkg/kubelet GOFLAGS=-v --------------------------------------------------------------------------------- test-cmd # Build and run cmdline tests. # # Example: # make test-cmd --------------------------------------------------------------------------------- test-e2e # Build and run end-to-end tests. # # Example: # make test-e2e --------------------------------------------------------------------------------- test-e2e-node # Build and run node end-to-end tests. # # Args: # FOCUS: Regexp that matches the tests to be run. Defaults to "". # SKIP: Regexp that matches the tests that needs to be skipped. Defaults # to "". # RUN_UNTIL_FAILURE: If true, pass --untilItFails to ginkgo so tests are run # repeatedly until they fail. Defaults to false. # REMOTE: If true, run the tests on a remote host instance on GCE. Defaults # to false. # IMAGES: For REMOTE=true only. Comma delimited list of images for creating # remote hosts to run tests against. Defaults to a recent image. # LIST_IMAGES: If true, don't run tests. Just output the list of available # images for testing. Defaults to false. # HOSTS: For REMOTE=true only. Comma delimited list of running gce hosts to # run tests against. Defaults to "". # DELETE_INSTANCES: For REMOTE=true only. Delete any instances created as # part of this test run. Defaults to false. # ARTIFACTS: For REMOTE=true only. Local directory to scp test artifacts into # from the remote hosts. Defaults to ""/tmp/_artifacts". # REPORT: For REMOTE=false only. Local directory to write juntil xml results # to. Defaults to "/tmp/". # CLEANUP: For REMOTE=true only. If false, do not stop processes or delete # test files on remote hosts. Defaults to true. # IMAGE_PROJECT: For REMOTE=true only. Project containing images provided to # IMAGES. Defaults to "kubernetes-node-e2e-images". # INSTANCE_PREFIX: For REMOTE=true only. Instances created from images will # have the name "-". Defaults to "test". # INSTANCE_METADATA: For REMOTE=true and running on GCE only. # # Example: # make test-e2e-node FOCUS=Kubelet SKIP=container # make test-e2e-node REMOTE=true DELETE_INSTANCES=true # make test-e2e-node TEST_ARGS="--cgroups-per-qos=true" # Build and run tests. --------------------------------------------------------------------------------- test-integration # Build and run integration tests. # # Example: # make test-integration --------------------------------------------------------------------------------- verify # Runs all the presubmission verifications. # # Args: # BRANCH: Branch to be passed to verify-godeps.sh script. # # Example: # make verify # make verify BRANCH=branch_x --------------------------------------------------------------------------------- vet # Run 'go vet'. # # Args: # WHAT: Directory names to vet. All *.go files under these # directories will be vetted. If not specified, "everything" will be # vetted. # # Example: # make vet # make vet WHAT=pkg/kubelet --------------------------------------------------------------------------------- ```
-
deads2k authored
-
deads2k authored
-
Eric Paris authored
fix mesos unit tests
-
deads2k authored
-
Kubernetes Submit Queue authored
Merge pull request #37636 from juanvallejo/jvallejo/bugfix/print-resource-kind-when-single-resource-type Automatic merge from submit-queue add resource prefix to multiple items w/ same kind **Release note**: ```release-note release-note-none ``` This patch ensures that a resource prefix is added to multiple items of the same kind, when using `kubectl get all`. Before, a prefix was added only when a single item was returned on `kubectl get all`, but ignored if only a single resource kind existed but multiple items for that kind were returned. **Example** ``` $ kubectl get all No resources found. $ kubectl create service loadbalancer testsvc1 --tcp=8080 $ kubectl get all NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE svc/testsvc1 172.30.119.220 172.46.100.155,172.46.100.155 8080/TCP 1h $ kubectl create service loadbalancer testsvc2 --tcp=8081 $ kubectl get all NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE svc/testsvc1 172.30.119.220 172.46.100.155,172.46.100.155 8080/TCP 1h svc/testsvc2 172.30.241.197 172.46.164.158,172.46.164.158 8081/TCP 1h ``` @fabianofranz
-
deads2k authored
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 38185, 37966) decided to extract common logic for RESTMapping and RESTMappings to a… <!-- Thanks for sending a pull request! Here are some tips for you: 1. If this is your first time, read our contributor guidelines https://github.com/kubernetes/kubernetes/blob/master/CONTRIBUTING.md and developer guide https://github.com/kubernetes/kubernetes/blob/master/docs/devel/development.md 2. If you want *faster* PR reviews, read how: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/faster_reviews.md 3. Follow the instructions for writing a release note: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/pull-requests.md#release-notes --> **What this PR does / why we need it**: the changes introduced in this PR extract common logic of RESTMapping and RESTMappings to one common method. **Special notes for your reviewer**: this is my first PR - be polite. The only change in logic to what was before is when calling commonRESTMappings from RESTMapping we search all defaultGroupVersion as opposed to just one when no mapping was found for provided versions.
-
deads2k authored
-
deads2k authored
-
Bryan Boreham authored
Instead of setting it on every bridge-connected interface which may have unwanted effects on unrelated things installed on the machine.
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue test: restore polling for stabilizing deployment tests Discussed in https://github.com/kubernetes/kubernetes/commit/886052c2252925a5b2cf8bcfc483b711316930e3#commitcomment-20081416 @rmmh @janetkuo @wojtek-t ptal
-
deads2k authored
-
deads2k authored
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 37365, 37696) Make it possible to run Load and Density tests using Deployments or ReplicaSets This is a first extension to our scalability tests. cc @timothysc @jeremyeder
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue gcOrphaned check via the API that the node doesn’t exist It's needed to make sure we don't make invalid decisions when system is overloaded and cache is not keeping up. @wojtek-t - this adds one `Node.List()` per 20 sec. Listing Nodes is an expensive operation, so I'd like you to chime in.
-
Alexander Kanevskiy authored
To access outside world or cloud provider APIs it might be required to use proxy. Fixes: kubernetes/kubernetes#36573, kubernetes/kubeadm#5
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 38079, 37434) eventclient create error info print
-
gmarek authored
-
gmarek authored
-
Michail Kargakis authored
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue etcd2: watching from 0 returns all initial states as ADDED events ref: https://github.com/kubernetes/kubernetes/pull/36797 https://github.com/kubernetes/kubernetes/issues/36545 https://github.com/kubernetes/kubernetes/pull/36561 https://github.com/kubernetes/kubernetes/issues/13969 Since we have made consensus and fixed the behavior in etcd3, we would also change etcd2 to make this uniform and consistent. The end goal is that we would have it explicit on interface docs. **release note**: ``` etcd2: watching from 0 returns all initial states as ADDED events ```
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Remove integration test dependencies on etcd client <!-- Thanks for sending a pull request! Here are some tips for you: 1. If this is your first time, read our contributor guidelines https://github.com/kubernetes/kubernetes/blob/master/CONTRIBUTING.md and developer guide https://github.com/kubernetes/kubernetes/blob/master/docs/devel/development.md 2. If you want *faster* PR reviews, read how: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/faster_reviews.md 3. Follow the instructions for writing a release note: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/pull-requests.md#release-notes --> **What this PR does**: Remove integration test dependencies on etcd client **Release note**: <!-- Steps to write your release note: 1. Use the release-note-* labels to set the release note state (if you have access) 2. Enter your extended release note in the below block; leaving it blank means using the PR title as the release note. If no release note is required, just write `NONE`. --> ``` NONE ```
-
NickrenREN authored
Need to print error info when creating eventClient error , just as create kubeClient does 8 lines above
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 37870, 36643, 37664, 37545) drop startKubelet's return Since startKubelet() function will always return nil, we donot need to judge its return err
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 37870, 36643, 37664, 37545) cluster/gci: Fix typo
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 37870, 36643, 37664, 37545) Add option to disable federation ingress controller **What this PR does / why we need it**: Added an option to enable/disable federation ingress controller as currently federated ingresses doesn't work in environments other than GCE/GKE. Also ignore reconcile config maps if no federated ingresses exist. **Which issue this PR fixes** fixes #33943 @quinton-hoole **Release note**: ```release-note Add `--controllers` flag to federation controller manager for enable/disable federation ingress controller ```
-
Random-Liu authored
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue [Federation] Separate the cleanup phases of service and service shards so that service shards can be cleaned up even after the service is deleted elsewhere. Fixes Federated Service e2e test. This separation is necessary because "Federated Service DNS should be able to discover a federated service" e2e test recently added a case where it deletes the service from federation but not the shards from the underlying clusters. Because of the way cleanup was implemented in the AfterEach block currently, we did not cleanup any of the underlying shards. However, separating the two phases of the cleanup needs this separation. cc @kubernetes/sig-cluster-federation @nikhiljindal
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 38149, 38156, 38150) Node E2E: Remove setup-node option This PR removes `setup-node` option, because: * It is misleading. `setup-node` doesn't really setup the node, test framework will only put current user into docker user group when it is specified. * It is not necessary anymore. Because we always run node e2e test as root now, we don't need to do this anymore. This is a minor cleanup preparing for my test framework refactoring work. Will send out the refactor PR later. /cc @kubernetes/sig-node
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 38149, 38156, 38150) Remove girishkalele from most places @matchstick you might need to help here. I am doing this because the bot is trying to create an issue assigned to @girishkalele but it cannot be created as he is not a member of the org any longer.
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Move some lb tests to the slow suite These tests have been stable, so move the basic ones to slow.
-