- 25 May, 2017 9 commits
-
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 45913, 46065, 46352, 46363, 46373) Update audit API with missing pieces Follow-up to https://github.com/kubernetes/kubernetes/pull/45315 to resolve pending decisions & issues, including: - Audit ID format - Identifying audit event "stage" - Request/Response object format (resolve conversion issue) - Add a subresource field to the `ObjectReference` For https://github.com/kubernetes/features/issues/22 ~~TODO: Add generated code once we've reached consensus on the types.~~ /cc @deads2k @ihmccreery @sttts @soltysh @ericchiang
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 45913, 46065, 46352, 46363, 46373) Detect cohabitating resources in etcd storage test **What this PR does / why we need it**: This change updates the etcd storage path test to detect cohabitating resources by looking at their expected location in etcd. This was not detected in the past because the GVK check did not span across groups. To limit noise from failures caused by multiple objects at the same location in etcd, the test now fails when different GVRs share the same expected path. Thus every object is expected to have a unique path. @liggitt PTAL Signed-off-by:Monis Khan <mkhan@redhat.com> **Release note**: ``` NONE ```
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 46299, 46309, 46311, 46303, 46150) Create a subnet for reserving the service cluster IP range This will be done if IP aliases is enabled on GCP. ```release-note NONE ```
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 46299, 46309, 46311, 46303, 46150) Fix cos image project to cos-cloud. Addressed https://github.com/kubernetes/kubernetes/pull/45136#discussion_r118092211. @vishh @yujuhong @dchen1107
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 46299, 46309, 46311, 46303, 46150) Dont attach a GPU to ubuntu test machines for node e2e serial tests This should fix flakes in the e2e_node serial suite. @vishh I think this is what you were asking for... /assign @vishh
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 46299, 46309, 46311, 46303, 46150) Move docker validation test to separate project. Docker validation test is leaking VMs because new docker version `DOCKER_VERSION=17.05.0-c` totally breaks the new gci image `GCE_IMAGES=gci-test-60-9579-0-0` with the `gci-docker-version` metadata specified. The test successfully created the instance, but timed out when checking VM aliveness, and leaked the VM. I've cleaned up all leaked VMs. This PR moves docker validation node e2e test into a separate project to not influencing other node e2e test. @kewu1992 We should fix the docker automated validation test. /cc @dchen1107 @yujuhong @abgworrall
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 46299, 46309, 46311, 46303, 46150) Fix in-cluster kubectl --namespace override **What this PR does / why we need it**: Before this change, if the config was empty, ConfirmUsable() would return an "invalid configuration" error instead of examining and honoring the value of the --namespace flag. This change looks at the overrides first, and returns the overridden value if it exists before attempting to check if the config is usable. This is most applicable to in-cluster clients, where they don't have a kubeconfig but they do have a token and can use KUBERNETES_SERVICE_HOST/_PORT. **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 The --namespace flag is now honored for in-cluster clients that have an empty configuration. ``` @kubernetes/sig-api-machinery-pr-reviews @fabianofranz @liggitt @deads2k @smarterclayton @caesarxuchao @soltysh
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue /pkg/client/listers: fix some typo **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**: ```release-note ```
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue oidc client plugin: reduce round trips and fix scopes requested This PR attempts to simplify the OpenID Connect client plugin to reduce round trips. The steps taken by the client are now: * If ID Token isn't expired: * Do nothing. * If ID Token is expired: * Query /.well-known discovery URL to find token_endpoint. * Use an OAuth2 client and refresh token to request new ID token. This avoids the previous pattern of always initializing a client, which would hit the /.well-known endpoint several times. The client no longer does token validation since the server already does this. As a result, this code no longer imports github.com/coreos/go-oidc, instead just using golang.org/x/oauth2 for refreshing. Overall reduction in tests because we're not verify as many things on the client side. For example, we're no longer validating the id_token signature (again, because it's being done on the server side). This has been manually tested against dex, and I hope to continue to test this over the 1.7 release cycle. cc @mlbiam @frodenas @curtisallen @jsloyer @rithujohn191 @philips @kubernetes/sig-auth-pr-reviews ```release-note NONE ``` Updates https://github.com/kubernetes/kubernetes/issues/42654 Closes https://github.com/kubernetes/kubernetes/issues/37875 Closes https://github.com/kubernetes/kubernetes/issues/37874
-
- 24 May, 2017 31 commits
-
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue fix the invalid link **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**: ```release-note ```
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue DeamonSet-DaemonSet **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**: ```release-note NONE ```
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Bump kubelet/networks test coverage **What this PR does / why we need it**: Bumps test coverage **Which issue this PR fixes**: https://github.com/kubernetes/kubernetes/issues/40780 https://github.com/kubernetes/kubernetes/issues/39559 **Special notes for your reviewer**: Writing positive test cases for these lines: https://github.com/kubernetes/kubernetes/blob/master/pkg/kubelet/networks.go#L38 https://github.com/kubernetes/kubernetes/blob/master/pkg/kubelet/networks.go#L69 is quite difficult, so the former has a negative case and the latter has no test coverage. **Release note**: ```release-note New tests for kubelet/networks ```
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Added deprecation notice and guidance for cloud providers. **What this PR does / why we need it**: Adding context/background and general guidance for incoming cloud providers. **Which issue this PR fixes** **Special notes for your reviewer**: Generalized message per discussion with @bgrant0607
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue fix err message in storage extensions **Release note**: ```release-note `NONE` ```
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue clear init container status annotations when cleared in status When I pod with an init container is terminated due to exceeding its active deadline, the pod status is phase `Failed` with reason `DeadlineExceeded`. All container statuses are cleared from the pod status. With init containers, however, the status is being regenerated from the status annotations. This is causing kubectl to report the pod state as `Init:0/1` instead of `DeadlineExceeded` because the kubectl printer observes a running init container, which in reality is not running. This PR clears out the init container status annotations when they have been removed from the pod status so they are not regenerated on the apiserver. xref https://bugzilla.redhat.com/show_bug.cgi?id=1453180 @derekwaynecarr ```release-note Fix init container status reporting when active deadline is exceeded. ```
-
Tim St. Clair authored
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 38505, 41785, 46315) Fix provisioned GCE PD not being reused if already exists @jsafrane PTAL This is another attempt at https://github.com/kubernetes/kubernetes/pull/38702 . We have observed that `gce.service.Disks.Insert(gce.projectID, zone, diskToCreate).Do()` instantly gets an error response of alreadyExists, so we must check for it. I am not sure if we still need to check for the error after `waitForZoneOp`; I think that if there is an alreadyExists error, the `Do()` above will always respond with it instantly. But because I'm not sure, and to be safe, I will leave it.
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 38505, 41785, 46315) Only retrieve relevant volumes **What this PR does / why we need it**: Improves performance for Cinder volume attach/detach calls. Currently when Cinder volumes are attached or detached, functions try to retrieve details about the volume from the Nova API. Because some only have the volume name not its UUID, they use the list function in gophercloud to iterate over all volumes to find a match. This incurs severe performance problems on OpenStack projects with lots of volumes (sometimes thousands) since it needs to send a new request when the current page does not contain a match. A better way of doing this is use the `?name=XXX` query parameter to refine the results. **Which issue this PR fixes**: https://github.com/kubernetes/kubernetes/issues/26404 **Special notes for your reviewer**: There were 2 ways of addressing this problem: 1. Use the `name` query parameter 2. Instead of using the list function, switch to using volume UUIDs and use the GET function instead. You'd need to change the signature of a few functions though, such as [`DeleteVolume`](https://github.com/kubernetes/kubernetes/blob/master/pkg/volume/cinder/cinder.go#L49), so I'm not sure how backwards compatible that is. Since #1 does effectively the same as #2, I went with it because it ensures BC. One assumption that is made is that the `volumeName` being retrieved matches exactly the name of the volume in Cinder. I'm not sure how accurate that is, but I see no reason why cloud providers would want to append/prefix things arbitrarily. **Release note**: ```release-note Improves performance of Cinder volume attach/detach operations ```
-
Kubernetes Submit Queue authored
Merge pull request #38505 from pospispa/260-finish-aws-provisioner-parse-pvc-selector-dynamic-provision-first-part-including-GCE-changes-StorageClass-zones-part-back-in-history-to-test-it-on-AWS Automatic merge from submit-queue (batch tested with PRs 38505, 41785, 46315) GCE and AWS provisioners, dynamic provisioning: admins can configure zone(s) where PVs shall be created Zone configuration capabilities for GCE and AWS dynamic provisioners are extended. Admins can configure in a storage class a comma separated list of allowed zone(s). Partly fixes Trello cards: - [GCE provisioner, parse pvc.Selector](https://trello.com/c/CyemTzsK/259-finish-gce-provisioner-parse-pvc-selector-dynamic-provision) - [AWS provisioner, parse pvc.Selector](https://trello.com/c/2XjouSWw/260-finish-aws-provisioner-parse-pvc-selector-dynamic-provision) ```release-note GCE and AWS dynamic provisioners extension: admins can configure zone(s) in which a persistent volume shall be created. ``` cc: @jsafrane
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Add test for cross namespace watch and list **What this PR does / why we need it**: Add more integration test for kube-apiextensions-server **Which issue this PR fixes** : fixes https://github.com/kubernetes/kubernetes/issues/45511 **Special notes for your reviewer**: The client with cluster scope also works, but it seems to be trivial @deads2k
-
Jamie Hannaford authored
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue apiextensions: add Established condition This introduces a `Established` condition on `CustomResourceDefinition`s. `Established` means that the resource has become active. A resource is established when all names are accepted initially without a conflict. A resource stays established until deleted, even during a later NameConflict due to changed names. Note that not all names can be changed. This change is necessary to allow deletion of once-active CRDs which might have still instances, but have NameConflicts now. Before this PR the REST endpoint was not active anymore in this case, making deletion of the instances impossible.
-
pospispa authored
An admin wants to specify in which AWS availability zone(s) users may create persistent volumes using dynamic provisioning. That's why the admin can now configure in StorageClass object a comma separated list of zones. Dynamically created PVs for PVCs that use the StorageClass are created in one of the configured zones.
-
pospispa authored
An admin wants to specify in which GCE availability zone(s) users may create persistent volumes using dynamic provisioning. That's why the admin can now configure in StorageClass object a comma separated list of zones. Dynamically created PVs for PVCs that use the StorageClass are created in one of the configured zones.
-
pospispa authored
The zone parameter provided in a Storage Class may erroneously be an empty string or contain only spaces and tab characters. Such situation shall be detected and reported as an error. That's why the func ValidateZone was added.
-
pospispa authored
An admin shall be able to configure a comma separated list of zones for a StorageClass. That's why the func ZonesToSet (string) (set.String, error) is added. The func ZonesToSet converts a string containing a comma separated list of zones to a set. In case the list contains an empty zone an error is returned.
-
zhengjiajin authored
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 45891, 46147) Watching ClusterId from within GCE cloud provider **What this PR does / why we need it**: Adds the ability for the GCE cloud provider to watch a config map for `clusterId` and `providerId`. WIP - still needs more testing cc @MrHohn @csbell @madhusudancs @thockin @bowei @nikhiljindal **Release note**: ```release-note NONE ```
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 45891, 46147) fix typo **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**: ```release-note ```
-
Author xiao-zhou authored
-
Dr. Stefan Schimanski authored
-
Dr. Stefan Schimanski authored
-
Dr. Stefan Schimanski authored
-
zhengjiajin authored
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 45514, 45635) hyperkube_test should not depend on number of spaces. From #45524. Apparently adding a long flag to kube-controller-manager breaks the hyperkube unit tests, because they depend on number of spaces :) **Release note**: ```release-note NONE ```
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 45514, 45635) refactor certificate controller to break it into two parts Break pkg/controller/certificates into: * pkg/controller/certificates/approver: containing the group approver * pkg/controller/certificates/signer: containing the local signer * pkg/controller/certificates: containing shared infrastructure ```release-note Break the 'certificatesigningrequests' controller into a 'csrapprover' controller and 'csrsigner' controller. ```
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 42042, 46139, 46126, 46258, 46312) Remove unused test properties Issue: #42676 A separate serial memcg suite was created for the initial stages of re-enabling memcg notifications. Now that all e2e tests have memcg notifications enabled, this suite is no longer needed.
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 42042, 46139, 46126, 46258, 46312) Detect ExternalTrafficPolicy and HealthCheckNodePort changes in needsUpdate() Fix a bug that editing ExternalTrafficPolicy doesn't trigger LoadBalancer update. I'm surprise that ESIPP e2e tests didn't catch this. /assign @freehan @thockin **Release note**: ```release-note NONE ```
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 42042, 46139, 46126, 46258, 46312) Append X-Forwarded-For in proxy handler Append the request sender's IP to the `X-Forwarded-For` header chain when proxying requests. This is important for audit logging (https://github.com/kubernetes/features/issues/22) in order to capture the client IP (specifically in the case of federation or kube-aggregator). /cc @liggitt @deads2k @ericchiang @ihmccreery @soltysh
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 42042, 46139, 46126, 46258, 46312) Remove kubectl's dependence on pkg/api/helper **What this PR does / why we need it**: Remove kubectl's dependence on pkg/api/helper, as part of broader effort to isolate kubectl from the rest of k8s. In this case, the code becomes private to kubectl; nobody else uses it. **Which issue this PR fixes** Part of a series of PRs to address kubernetes/community#598 **Release note**: ```release-note NONE ```
-