- 11 Apr, 2017 29 commits
-
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 43304, 41427, 43490, 44352) Node failure tests for cluster autoscaler E2e tests checking whether CA is still working with a single broken node. cc: @MaciekPytel @jszczepkowski @fgrzadkowski
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 43545, 44293, 44221, 43888) Avoid nil user special-casing in unsecured endpoint The unsecured handler currently adds no `user.Info` to the request context. That means that anything that tries to authorize actions in the API server currently has to special case nil users to ensure the unsecured localhost endpoint remains capable of performing all actions. This PR changes the unsecured localhost endpoint to be treated as a privileged user internally, so that no special casing is required by code inside the authentication layer I'm not particularly attached to the username. It doesn't bother me for it to have a slightly uncomfortable sounding name.
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 43545, 44293, 44221, 43888) validateClusterInfo: use clientcmdapi.NewCluster() Change validateClusterInfo to use clientcmdapi.NewCluster() instead of clientcmdapi.Cluster{} when comparing against the passed in clusterInfo. clusterInfo most likely will be a combination of clientcmdapi.NewCluster() merged with potential overrides. This is necessary because otherwise, the DeepEqual between what is supposed to be an empty Cluster and clusterInfo will fail, resulting in an error that doesn't allow fall-through to checking for in-cluster configuration. https://github.com/kubernetes/kubernetes/pull/40508 changed `DirectClientConfig.getContext()` to start with a `clientcmdapi.NewCluster()` instead of the zero value for `clientcmdapi.Cluster`. This means that the `Extensions` map in the `Cluster` is initialized instead of `nil`, which breaks the `DeepEqual` test unless you compare `clusterInfo` against an initialized `clientcmdapi.NewCluster()`. cc @smarterclayton @sttts @vjsamuel @liggitt @deads2k @soltysh @fabianofranz @kubernetes/sig-api-machinery-pr-reviews -
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 43545, 44293, 44221, 43888) make unstructured items correspond to other items for storage "normal" `Items` elements include the struct itself, not a pointer to the struct. Some of the deeper bits of storage rely on this behavior in reflective paths. This updates the `UnstructuredList` to be "normal". @kubernetes/sig-api-machinery-pr-reviews
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 43545, 44293, 44221, 43888) Remove credentials on worker nodes for vSphere cloud provider. **What this PR does / why we need it**: Remove the dependency of login information on worker nodes for vsphere cloud provider: 1. VM Name is required to be set in the cloud provider configuration file. 2. Remove the requirement of login for Instance functions when querying local node information. **Which issue this PR fixes** : fixes #https://github.com/kubernetes/kubernetes/issues/35339 **Release note**:
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Change the PEM block type to use the constant
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Using BetaStorageClassAnnotation to avoid hardcode **Release note**: ```release-note NONE ```
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue remove dependency on gorestful for rest handling There's no reason for us to rely upon go-restful for our REST handling. This separates the layers so that gorestful route functions are built on top of native `http.HandlerFuncs`. @DirectXMan12 I think this is the sort of handling you wanted to be able to add and remove at will, right? I have other commits that demonstrate how to wire these into "normal" `http.Handlers` if its useful to you. @kubernetes/sig-api-machinery-pr-reviews @smarterclayton @sttts @lavalamp
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue add "/apis/" to kube-aggregator apisHandler This makes the following two urls have the same result. https://ip:443/apis https://ip:443/apis/ **Release note**: ```NONE ```
-
Marcin Wielgus authored
-
Marcin Wielgus authored
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 43900, 44152, 44324) make deployment unit tests need to respect subresources Fixes #42569 I check all the unit test code related to `Matches` method, seems there's only one line we could change to not break previous testing logic @kargakis ptal, thanks /assign @kargakis
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 43900, 44152, 44324) Fix: check "ok" first to avoid panic Check "ok" and then check if "currState.pod.Spec.NodeName != pod.Spec.NodeName", here if currState is nil, it will panic. **Release note**: ```release-note NONE ```
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 43900, 44152, 44324) fix return value of "kubectl auth cani --quiet" Before this change: $ kubectl auth can-i get pod no $ kubectl auth can-i get pod --quiet $ echo $? 0 After this change: $ kubectl auth can-i get pod no $ kubectl auth can-i get pod --quiet $ echo $? 1 @deads2k **Release note**: ```NONE ```
-
deads2k authored
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 43844, 44284) Add a retry to cluster-autoscaler e2e This should fix https://github.com/kubernetes/kubernetes/issues/44268. The flake was caused by following sequence of events: 1. Cluster was at minimum size (3), some node was unneeded for a while. 2. Setup for some test (scale-down, failure) would increase node group size (to 5) and wait for new nodes to come up. 3. As soon as new node come up (cluster size 4) CA would scale-down the old unneeded node (setting node group size to 4). 4. Node group would not reach size 5 (as the target was now 4) and the test would timeout and fail. This PR makes the setup monitor re-set the target node group size if the above scenario happens.
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue add Stringer interface for eventType **What this PR does / why we need it**: fix invalid log outputs like "graph_builder.go:429] GraphBuilder process object: v1/Endpoints, namespace kube-system, name kube-controller-manager, event type %!s(garbagecollector.eventType=1)"
-
deads2k authored
-
NickrenREN authored
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Empty label is equal for topologies. fixes #40799
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Zero-out healthchecks when no endpoints Fixes #44311
-
Tim Hockin authored
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 43887, 41914, 44170) Make NetworkPolicy docs reflect reality spinoff of #39164; this just updates the docs to reflect the way the v1beta1 API has actually been implemented **Release note**: ```release-note NONE ```
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 43887, 41914, 44170) bazel: implement git build stamping
-
Wei Wei authored
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue proxy/iptables: precompute svcPortName strings With many services, the calls to svcPortName.String() show up as a somewhat significant CPU user under syncProxyRules(). For whatever reason github repeatedly fails to upload the pprof with Firefox, so here's an example: http://people.redhat.com/dcbw/kube-proxy-svcPortName-String.pdf
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue [Federation][kubefed] Annotate all Federation API objects with the federation name and (if applicable) the cluster name. Address part of #42324. ```release-note Adds annotations to all Federation objects created by kubefed. ```
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 44286, 44209) [Federation][Kubefed] Bug fix to enable disabling federation controllers through override args Targets https://github.com/kubernetes/kubernetes/issues/42761 **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/kubernetes/issues/42761 **Special notes for your reviewer**: @marun @perotinus @nikhiljindal **Release note**: ``` NONE ```
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 44286, 44209) Refactor leader election package test code to remove redundant code **What this PR does / why we need it**: leader election object supports locking on 2 objects currently endpoints and configmap. The test code for both is almost identical. This pr attempts to remove redundancy in test code for easier maintenance and extension. **Special notes for your reviewer**: I am trying to add leader election feature to federation controller manager and this pr is one of sub-task of the overall work documented in #44283 **Release note**: ``` NONE ```
-
- 10 Apr, 2017 11 commits
-
-
Jonathan MacMillan authored
[Federation][kubefed] Annotate all Federation API objects with the federation name and (if applicable) the cluster name.
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 43273, 44287, 44281) Remove ObjectMetaFor Builds on https://github.com/kubernetes/kubernetes/pull/43767 The second commit removes `ObjectMetaFor`. This was debt we left around after we created the interfaces. Fixing this makes it possible to start running `Unstructured` through generic storage. @kubernetes/sig-api-machinery-pr-reviews @smarterclayton @lavalamp
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 43273, 44287, 44281) [Federation] Remove deprecated federation-apiserver-kubeconfig secret federation-apiserver-kubeconfig was deprecated and was supposed to be removed in 1.6. Removing all references to it as we no longer use it. **Release note**: ``` [Federation] Deprecated `federation-apiserver-kubeconfig` is not supported anymore. Should use `--kubeconfig` flag to specify Federation API server kubeconfig. ``` cc @kubernetes/sig-federation-pr-reviews
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 43273, 44287, 44281) bump(github.com/onsi/ginkgo):v1.2.0-94-g5ca1211 Picks up parallel execution improvements in Ginkgo that distribute jobs more evenly with parallel runs. Opened after observing long tail runs in OpenShift - testing there showed a much more compact run in terms of CPU https://github.com/onsi/ginkgo/issues/333 We'll need some soak time to be sure this has no issues.
-
shashidharatd authored
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 43866, 42748) hack/cluster: download cfssl if not present hack/local-up-cluster.sh uses cfssl to generate certificates and will exit it cfssl is not already installed. But other cluster-up mechanisms (GCE) that generate certs just download cfssl if not present. Make local-up-cluster.sh do that too so users don't have to bother installing it from somewhere.
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Update owners to include kerneltime **What this PR does / why we need it**: Update owners to include kerneltime to help with PRs
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 43870, 30302, 42722, 43736) Extract ParseCIDR and modify attachDetachControllerName **Release note**: ```release-note NONE ```
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 43870, 30302, 42722, 43736) federation: avoid double core group registration The federation apiserver installed its custom core group into the global `pkg/api` registry, leading to double registration. Luckily (or maybe unfortunately) we did not fail hard in this case, but the init funcs just ignored the error. This PR creates an extra apigroup registry based on the already existing federation `core.Scheme`. This decouples the two core groups (which happen to co-exist in hyperkube).
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 43870, 30302, 42722, 43736) Admission plugin to merge pod and namespace tolerations for restricting pod placement on nodes ```release-note This admission plugin checks for tolerations on the pod being admitted and its namespace, and verifies if there is any conflict. If there is no conflict, then it merges the pod's namespace tolerations with the the pod's tolerations and it verifies them against its namespace' whitelist of tolerations and returns. If a namespace does not have its default or whitelist tolerations specified, then cluster level default and whitelist is used. An example of its versioned config: apiVersion: apiserver.k8s.io/v1alpha1 kind: AdmissionConfiguration plugins: - name: "PodTolerationRestriction" configuration: apiVersion: podtolerationrestriction.admission.k8s.io/v1alpha1 kind: Configuration default: - Key: key1 Value: value1 - Key: key2 Value: value2 whitelist: - Key: key1 Value: value1 - Key: key2 Value: value2 ``` -
Kubernetes Submit Queue authored
Automatic merge from submit-queue Update link in README after docs migration Fixing what-is-k8s link in README. This removes an extra hop caused by docs migration.
-