Commit Graph

83733 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
dd8a23ca2e
Merge pull request #82643 from ZP-AlwaysWin/dev02
Fix bug The statefulset have duplicate revision after resource was up…
2019-09-25 11:06:16 -07:00
Kubernetes Prow Robot
8ad1aba7f5
Merge pull request #82465 from hprateek43/MoveGetPodPriority
Move GetPodPriority from /scheduler/util to /api/pod
2019-09-25 11:06:00 -07:00
Kubernetes Prow Robot
973629f742
Merge pull request #82410 from nikhita/informer-gen-package-name-dots
[v1.16.1] informer-gen: allow package names containing dots
2019-09-25 11:05:50 -07:00
Kubernetes Prow Robot
07025a5d9e
Merge pull request #82409 from RainbowMango/pr_add_authentication_overall_latency_metrics
Add authentication overall latency metrics
2019-09-25 11:05:32 -07:00
Kubernetes Prow Robot
0676af36c5
Merge pull request #82388 from marun/unstructured-reflector
Add support for type checking Unstructured event objects via GVK to client-go's reflector
2019-09-25 11:05:14 -07:00
Kubernetes Prow Robot
129a13af98
Merge pull request #82347 from pjbgf/non-root
Harden kube-dns to run with less privileges.
2019-09-25 11:04:59 -07:00
Kubernetes Prow Robot
df271a1799
Merge pull request #82291 from danwinship/getnodes
migrate from framework.GetReadySchedulableNodesOrDie to e2enode.GetReadySchedulableNodes
2019-09-25 11:04:43 -07:00
Kubernetes Prow Robot
e8f43679f6
Merge pull request #82157 from lmaffeo/master
Made some grammar edits to the README
2019-09-25 11:04:28 -07:00
Kubernetes Prow Robot
5675ef858e
Merge pull request #82148 from bbourbie/fix_docker_credential
fix: adding padding the encoded docker auth field
2019-09-25 11:04:14 -07:00
Kubernetes Prow Robot
c37c0b9dff
Merge pull request #82037 from ii/update-configmap-test
Update ConfigMap test
2019-09-25 11:04:01 -07:00
Ted Yu
7c26e11d6f Properly close the file in makeFile 2019-09-25 10:14:39 -07:00
Kubernetes Prow Robot
327f53ba57
Merge pull request #83064 from liggitt/propagate-context
Propagate context to remote authorize/authenticate webhook calls
2019-09-25 09:32:01 -07:00
zouyee
11746bcc19 using short flags instead with validate
Signed-off-by: Zou Nengren <zouyee1989@gmail.com>
2019-09-25 23:08:50 +08:00
Lubomir I. Ivanov
bbee054adc kubeadm: update OWNERS for 1.16 2019-09-25 18:07:38 +03:00
Yassine TIJANI
16fe4d7627 bump k8s.io/utils to pickup ipallocator changes
Signed-off-by: Yassine TIJANI <ytijani@vmware.com>
2019-09-25 16:15:30 +02:00
Matt Matejczyk
01ccd2e19e Optimize GetControllerOf method
In addition create a similar method that doesn't copy objects.

Benchmark for the new no-copy method vs the old one:
```
benchmark                       old ns/op     new ns/op     delta
BenchmarkGetControllerOf-12     214           14.8          -93.08%

benchmark                       old allocs     new allocs     delta
BenchmarkGetControllerOf-12     1              0              -100.00%

benchmark                       old bytes     new bytes     delta
BenchmarkGetControllerOf-12     80            0             -100.00%
```

Benchamrk for the new (copy) method vs the old one:
```
benchmark                       old ns/op     new ns/op     delta
BenchmarkGetControllerOf-12     128           114           -10.94%

benchmark                       old allocs     new allocs     delta
BenchmarkGetControllerOf-12     1              1              +0.00%

benchmark                       old bytes     new bytes     delta
BenchmarkGetControllerOf-12     80            80            +0.00%

```

Overall there is a 10% improvement for the old vs new (copy) method and
huge improvent (x10) for the old vs new (no-copy).

I changed the IsControlledBy and a few other methods to use the new (no-copy) method.
2019-09-25 15:07:37 +02:00
Vivek Bagade
24f15a5823 Adding lifecycle to RC, RCSet, Deployment, and Job testutils 2019-09-25 10:53:28 +02:00
Tatsuhiro Tsujikawa
937158b676 Modify test so that +genclient:nonNamespaced tag is exercised 2019-09-25 16:24:55 +09:00
ashish-billore
31e427b54c Corrected the pod reporting and messages
It is inconsistent and confusing to report pod count from all
namespaces but report message for only default namespace.
Added the namespace (default) reporting to clarify this.
Updated comments for usage clarity.
2019-09-25 14:17:44 +09:00
Jordan Liggitt
b78edd86b8 Plumb context to webhook calls 2019-09-24 21:59:59 -04:00
Jordan Liggitt
4c686ddc1c Propagate context to ExponentialBackoff 2019-09-24 21:59:59 -04:00
RainbowMango
31b08c8491 Fix a new staticcheck issue.
vendor/k8s.io/apiextensions-apiserver/pkg/controller/finalizer/crd_finalizer.go:167:2: this value of crd is never used (SA4006)
2019-09-25 09:50:56 +08:00
RainbowMango
ea75ee32c0 Fix staticcheck issues:
Dealing with unused functions/variables/types. (staticcheck U1000)
Dealing with value never used issue. (staticcheck SA4006)
Dealing with concurrency issue. (staticcheck SA2002 SA4010)
Remove packages from staticcheck failure files: apiextensions-apiserver
2019-09-25 09:40:25 +08:00
danielqsj
acb35798b8 fix default daemonset update strategy 2019-09-25 08:31:13 +08:00
Ted Yu
23c7405fe0 Remove unnecessary sorting for highestSupportedVersion 2019-09-24 13:59:25 -07:00
Kubernetes Prow Robot
948870b584
Merge pull request #83029 from lzang/master
Fix the cluster role for typha horizontal scaler.
2019-09-24 13:37:53 -07:00
Kubernetes Prow Robot
8274bec900
Merge pull request #82990 from SataQiu/cleanup-scheduler-20190922
Clean up code about scheduler algorithm
2019-09-24 13:37:38 -07:00
Kubernetes Prow Robot
2e4d02e9ab
Merge pull request #82909 from hwdef/del-unused-var1
fix(pkg): delete unused var or const
2019-09-24 13:37:26 -07:00
John Schnake
d0ab1f06fb Allow disruptive conformance tests and marks 2
- Adjusts tooling to allow disrutpive tests to be marked conformance
 - Updates the corresponding tests
 - Marks 2 tests as disruptive
2019-09-24 14:17:37 -05:00
Kubernetes Prow Robot
06fc5b7f17
Merge pull request #83060 from m3ngyang/mode-valid
to use existing validating function
2019-09-24 11:45:38 -07:00
Kubernetes Prow Robot
ba19458dae
Merge pull request #82910 from hwdef/del-unused-var2
fix(test): delete unused unused var or const
2019-09-24 11:45:29 -07:00
Rob Scott
30d0eca19f
Adding owners for EndpointSlice controller 2019-09-24 11:45:15 -07:00
Ted Yu
936ae632a0 Remove unnecessary traversal of pod.Status.Conditions 2019-09-24 10:47:34 -07:00
Jeff Grafton
967032138f Stop building the kubernetes-test mondo tarball 2019-09-24 10:34:36 -07:00
Dan Winship
ec4c1a1c05 Add e2enode.GetRandomReadySchedulableNode, replace some uses of framework.GetReadySchedulableNodesOrDie
For tests that want a single ready, schedulable node
2019-09-24 13:03:40 -04:00
Dan Winship
3c445b2ad0 Add e2enode.GetBoundedReadySchedulableNodes, replace some uses of framework.GetReadySchedulableNodesOrDie
For tests that want at-most-N nodes
2019-09-24 13:03:40 -04:00
Dan Winship
71b02dd422 Fix up e2enode.GetReadySchedulableNodes, replace many uses of framework.GetReadySchedulableNodesOrDie
Remove the "OrDie" from the name (since it doesn't "or die") and add
an extra check that there is at least 1 node available, since many
callers already did that themselves, and many others should have.
2019-09-24 13:03:39 -04:00
Abdullah Gharaibeh
37b9e6d1ea An interface that allows pre-filter plugins to update their pre-calculated.
This is needed to allow efficient preemption simulations: during preemption, we remove/add pods from each node before running the filter plugins again to evaluate whether removing/adding specific pods will allow the incoming pod to be scheduled on the node. Instead of calling prefilter again, we should allow the plugin to do incremental update to its pre-computed state.
2019-09-24 13:01:50 -04:00
Harsh Singh
6a9ef7f04f Move GetPodPriority from /scheduler/util to /api/pod 2019-09-24 22:02:13 +05:30
Kubernetes Prow Robot
512eccac1f
Merge pull request #83008 from reith/local-cluster-webhook-conf
hack/local-up-cluster.sh: ability to configure auth webhooks
2019-09-24 08:58:34 -07:00
Kubernetes Prow Robot
4d18142120
Merge pull request #82998 from zouyee/lookforstring
cleanup unused function LookForStringInFile
2019-09-24 08:58:23 -07:00
Kubernetes Prow Robot
ac70f166b1
Merge pull request #82976 from yutedz/clean-rbd-file
Remove error check which is always false in RBDUtil#cleanOldRBDFile
2019-09-24 08:58:12 -07:00
Kubernetes Prow Robot
637b24d8ad
Merge pull request #82717 from hwdef/use-log-func2
use log func in test/e2e/apimachinery
2019-09-24 08:57:58 -07:00
Kubernetes Prow Robot
5eb830a819
Merge pull request #81978 from carlory/fix-test-02
cleanup test code in upgrades and autoscaling pkg
2019-09-24 08:57:43 -07:00
Kubernetes Prow Robot
7c09b0b1ec
Merge pull request #81911 from ahmad-diaa/use-scheduler-in-createConfiguratorArgsWithPodInformer
Use scheduler.New() Instead of factory.NewConfigFactory() in Integration Test scheduler_test.go
2019-09-24 08:57:28 -07:00
Jordan Liggitt
92eb072989 Propagate context to Authorize() calls 2019-09-24 11:14:54 -04:00
Jordan Liggitt
4ffa91a388 Add context-propagating CreateContext methods to *Review clients 2019-09-24 11:08:00 -04:00
Maru Newby
2a836d1710 Run hack/update-bazel.sh 2019-09-24 14:47:02 +00:00
Maru Newby
237dbfd8ad Add support for type checking Unstructured via GVK in reflector
It was previously possible to instantiate `Reflector` with
`*unstructured.Unstructured` as the expected type but this did not
support checking that event objects were of the correct API
type (e.g. if event object was `v1.Pod` in `Unstructured` form but
`v1.Service` was expected). This commit adds support for providing a
GVK via an `Unstructured` expected type to compare with the GVK of
event objects. The GVK will also be used in reflector log output.
2019-09-24 14:46:59 +00:00
ZP-AlwaysWin
e081d1dca6 Fix bug The statefulset have duplicate revision after resource was updated 2019-09-24 21:20:24 +08:00