- 03 Dec, 2016 7 commits
-
-
Michael Adam authored
Signed-off-by:Michael Adam <obnox@redhat.com>
-
Humble Chirammal authored
-
Michael Adam authored
An allocator of integers that allows for changing the range. Previously allocated numbers are not lost, and can be released later even if they have fallen outside of the range. Signed-off-by:Michael Adam <obnox@redhat.com>
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 36263, 36755, 37357, 37222, 37524) kubeadm: Skip etcd related preflight checks and reset actions for external etcd **What this PR does / why we need it**: Skip etcd related preflight checks and reset actions for external etcd **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes # https://github.com/kubernetes/kubeadm/issues/69#issuecomment-262988388 **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 kubeadm: Skip etcd related preflight checks and reset actions for external etcd ```
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 36263, 36755, 37357, 37222, 37524) kubeadm: Implement support for symbolic labels in --use-kubernetes-version **What this PR does / why we need it**: This patch adds "stable", "latest" and other labels as valid versions in "kubeadm init --use-kubernetes-version" flag. Now, defaults can be pointing to "stable" and users will always get latest available stable build of Kubernetes via kubeadm. There is no need anymore to hardcode version string inside kubeadm binary. It is also possible to use labels like "latest" or point to exact branch: "stable-1.4" **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**: ```release-note - kubeadm init --use-kubernetes-version now understands "stable","latest", "stable-1.4" and other labels as valid version. It will fetch actual build number from release servers. ```
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 36263, 36755, 37357, 37222, 37524) Add flag to enable contention profiling in scheduler. ```release-note Add flag to enable contention profiling in scheduler. ```
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 36263, 36755, 37357, 37222, 37524) add other impersonation fields to transport Adds the group and extra fields to the impersation options in a rest and transport config. @kubernetes/sig-auth
-
- 02 Dec, 2016 33 commits
-
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Kubeadm unit tests for kubeadm/app/master package Added unit tests for the kubeadm/app/master package testing functionality of tokens.go, kubeconfig.go, manifests.go, pki.go, discovery.go, addons.go, and apiclient.go. This PR is part of the ongoing effort to add tests (#35025) /cc @pires @jbeda
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue test: update rollover test to wait for available rs before adopting Scenario that happened in https://github.com/kubernetes/kubernetes/issues/35355#issuecomment-257808460 -- Replica set that is about to be adopted has 2 out of 4 ready replicas -- Deployment is created with 4 replicas, adopts pre-existing replica set, creates a new one, and starts rolling replicas over to the new replica set. ``` Nov 2 01:38:17.088: INFO: At 2016-11-02 01:38:04 -0700 PDT - event for test-rollover-deployment: {deployment-controller } ScalingReplicaSet: Scaled down replica set test-rollover-controller to 3 Nov 2 01:38:17.088: INFO: At 2016-11-02 01:38:04 -0700 PDT - event for test-rollover-deployment: {deployment-controller } ScalingReplicaSet: Scaled up replica set test-rollover-deployment-2505289747 to 1 Nov 2 01:38:17.088: INFO: At 2016-11-02 01:38:04 -0700 PDT - event for test-rollover-deployment-2505289747: {replicaset-controller } SuccessfulCreate: Created pod: test-rollover-deployment-2505289747-iuiei Nov 2 01:38:17.088: INFO: At 2016-11-02 01:38:04 -0700 PDT - event for test-rollover-deployment-2505289747-iuiei: {default-scheduler } Scheduled: Successfully assigned test-rollover-deployment-2505289747-iuiei to gke-jenkins-e2e-default-pool-33c0400e-6q5m Nov 2 01:38:17.088: INFO: At 2016-11-02 01:38:05 -0700 PDT - event for test-rollover-deployment: {deployment-controller } ScalingReplicaSet: Scaled up replica set test-rollover-deployment-2505289747 to 2 ``` At this point there is no minimum availability for the Deployment (maxUnavailable is 1 meaning desired minimum available is 3 but we only have 2), and the new replica set uses a non-existent image. New replica set is scaled up to 1 (maxSurge is 1), then old replica set is scaled down by one, because cleanupUnhealthyReplicas observes that it has 2 unhealthy replicas - it can only scale down one though because the [maximum replicas it can cleanup is one](https://github.com/kubernetes/kubernetes/blob/d87dfa27235e66de469eadfd07a6f2fdce40d139/pkg/controller/deployment/rolling.go#L125) (4+1-3-1). New replica set is scaled to 2. Available replicas are still 2 (third replica from the old replica set has yet to come up). -- Deployment is rolled over with a new update. Test reaches for the WaitForDeploymentStatus check but there are only 2 availableReplicas (maxUnavailable is still violated). This change makes the test wait for a healthy replica set before proceeding thus it should never hit the scenario described above. @kubernetes/deployment
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Clean up redundant tests in image_manager_test There was a lot of overlap between parallel and serialized puller tests, extracted most of these tests internals to separate functions.
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Add optional timeout logic to e2e.go ref https://github.com/kubernetes/test-infra/issues/1250 Add a --timeout=5 flag. If unset this does not change behavior. If set this first sends an interrupt signal and then 15m later starts terminating child processes. Will test out this change in another PR using the .use_head_e2e trick
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue switch bootstrap controller to use a client where possible While looking at https://github.com/kubernetes/kubernetes/issues/37040, I found more places where we can use a normal client instead of a direct to etcd connection. @wojtek-t you made similar changes in the same controller.
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue add groups to the audit trail Adds groups to the string that gets put in the audit log. @soltysh @sttts
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Add kubernetes-anywhere as a new e2e deployment option. This change adds support for using `kubernetes-anywhere` as a deployment option for hack/e2e.go. This work is toward the larger goal of being able to run e2e tests against `kubeadm` clusters, which `kubernetes-anywhere` supports. **Release note**: ```release-note Add kubernetes-anywhere as a new e2e deployment option ``` The configuration in `getConfig()` comes mostly from the defaults in `kubernetes-anywhere`. In the future, we can add more plumbing to override them via CLI flags. CC @mikedanese
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue add create clusterrolebinding command Adds `kubectl create clusterrolebinding`. @kubernetes/sig-cli
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue registry: make Eviction REST speak only api errors @ymqytw @davidopp
-
Derek McQuay authored
updated ""k8s.io/kubernetes/pkg/api" to apiv1 "k8s.io/kubernetes/pkg/api/v1" to fix broken types in tests.
-
Derek McQuay authored
-
Derek McQuay authored
-
Derek McQuay authored
-
Derek McQuay authored
-
Derek McQuay authored
-
Derek McQuay authored
-
Derek McQuay authored
-
Derek McQuay authored
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue create service add create ExternalName service implementation @kubernetes/kubectl create service add ExternalName support, refer #34731 for more detail. ```release-note kubectl create service externalname ```
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue [etcd] Reduce the etcd surface area in the integration test to minimize deps This is a code refactor for isolation of client usage.
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Build vendored copy of go-bindata and use that in go generate step **What this PR does / why we need it**: as the title says, uses the vendored version of `go-bindata` rather than expecting developers to `go get` it (when building outside docker). **Which issue this PR fixes**: fixes #34067, partially addresses #36655 **Special notes for your reviewer**: we still call `go generate` far too many times: ```console ~/.../src/k8s.io/kubernetes $ which go-bindata ~/.../src/k8s.io/kubernetes $ make +++ [1116 17:35:28] Building the toolchain targets: k8s.io/kubernetes/hack/cmd/teststale k8s.io/kubernetes/vendor/github.com/jteeuwen/go-bindata/go-bindata +++ [1116 17:35:29] Generating bindata: test/e2e/framework/gobindata_util.go +++ [1116 17:35:30] Building go targets for linux/amd64: cmd/libs/go2idl/deepcopy-gen +++ [1116 17:35:35] Building the toolchain targets: k8s.io/kubernetes/hack/cmd/teststale k8s.io/kubernetes/vendor/github.com/jteeuwen/go-bindata/go-bindata +++ [1116 17:35:35] Generating bindata: test/e2e/framework/gobindata_util.go +++ [1116 17:35:36] Building go targets for linux/amd64: cmd/libs/go2idl/defaulter-gen +++ [1116 17:35:41] Building the toolchain targets: k8s.io/kubernetes/hack/cmd/teststale k8s.io/kubernetes/vendor/github.com/jteeuwen/go-bindata/go-bindata +++ [1116 17:35:41] Generating bindata: test/e2e/framework/gobindata_util.go +++ [1116 17:35:42] Building go targets for linux/amd64: cmd/libs/go2idl/conversion-gen +++ [1116 17:35:47] Building the toolchain targets: k8s.io/kubernetes/hack/cmd/teststale k8s.io/kubernetes/vendor/github.com/jteeuwen/go-bindata/go-bindata +++ [1116 17:35:47] Generating bindata: test/e2e/framework/gobindata_util.go +++ [1116 17:35:48] Building go targets for linux/amd64: cmd/libs/go2idl/openapi-gen +++ [1116 17:35:56] Building the toolchain targets: k8s.io/kubernetes/hack/cmd/teststale k8s.io/kubernetes/vendor/github.com/jteeuwen/go-bindata/go-bindata +++ [1116 17:35:56] Generating bindata: test/e2e/framework/gobindata_util.go ``` Fixing that is a separate effort, though. cc @sebgoa @ZhangBanger -
Kubernetes Submit Queue authored
Automatic merge from submit-queue [CRI] Add TTY flag to AttachRequest Follow up from https://github.com/kubernetes/kubernetes/pull/35661 For https://github.com/kubernetes/kubernetes/issues/29579 - Add TTY to the CRI AttachRequest - Moves responsibility from the runtime shim to the Kubelet for populating the TTY bool in the request based on the container spec /cc @euank @feiskyer @kubernetes/sig-node
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue HA master: configurable replica name during kube-down.
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue change prompt for enabling RBAC on local-up-cluster run `ALLOW_ANY_TOKEN=true ENABLE_RBAC=true hack/local-up-cluster.sh` Use "--token" instead of "--username/--password", so need to update the prompt
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Remove copies of ObjectDiff function
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue add failure check on umount when kubeadm reset, and on service stop **What this PR does / why we need it**: before this PR, `umount` will exit with code `123` if `grep` does not match anything `xargs` has an option: >-r, --no-run-if-empty If the standard input does not contain any nonblanks, do not run the command. Normally, the command is run once even if there is no input. This option is a GNU extension. 1. this PR add `-r` option to `xargs` , so `umount` will not execute and exit with code `0` correctly while `grep` does not match anything. 2. this PR add failure check on umount. for example, if the directory to be umount is busy, a error message will be printed: >failed to unmount directories in /var/lib/kubelet, umount: /var/lib/kubelet/foo/bar: target is busy (In some cases useful info about processes that use the device is found by lsof(8) or fuser(1).) 3. add failure check on kubelet service stop. Signed-off-by:bruceauyeung <ouyang.qinhua@zte.com.cn>
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Kubeadm unit tests pkg node Added unit tests for the kubeadm/app/node package testing functionality of bootstrap.go, csr.go, and discovery.go. This PR is part of the ongoing effort to add tests (#35025) /cc @pires @jbeda
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Fix logic error in graceful deletion If a resource has the following criteria: 1. deletion timestamp is not nil 2. deletion graceperiod seconds as persisted in storage is 0 the resource could never be deleted as we always returned pending graceful.
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue SetNodeUpdateStatusNeeded whenever nodeAdd event is received **What this PR does / why we need it**: Bug fix and SetNodeStatusUpdateNeeded for a node whenever its api object is added. This is to ensure that we don't lose the attached list of volumes in the node when its api object is deleted and recreated. fixes https://github.com/kubernetes/kubernetes/issues/37586 https://github.com/kubernetes/kubernetes/issues/37585 **Special notes for your reviewer**: <!-- 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`. -->
-
Jerzy Szczepkowski authored
HA master: configurable replica name during kube-down.
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Cleanup old cloud resources after 48 hours With this pr the ingress e2e purges old leaked resources (>48h), so even if tests fail due to leaks, the entire queue won't close till someone bumps up quota through a manual request.
-
Michail Kargakis authored
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue add retry logic for eviction Make eviction retry when it fails to update the PDB due to conflict (409) error. fixes #37605 cc: @davidopp
-