Commit Graph

7885 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
112ed56f1a Merge pull request #82847 from apelisse/improve-managed-fields
Improve fieldmanager tests and benchmarks
2019-09-26 14:40:06 -07:00
Kubernetes Prow Robot
29a52f5241 Merge pull request #82496 from hasheddan/azure-vmss-expand
use vmss instance view expansion and azure-sdk-for-go v33.1.0
2019-09-26 14:39:51 -07:00
Kubernetes Prow Robot
5c57ce3058 Merge pull request #82764 from yaron2/authimportfix
fix auth import statement in client-go
2019-09-26 13:03:05 -07:00
Kubernetes Prow Robot
9f036cd43d Merge pull request #80747 from danwinship/aws-nodeaddress-sorting
aws: sort addresses of multiple interfaces correctly
2019-09-26 10:49:06 -07:00
Kubernetes Prow Robot
d14943b0fb Merge pull request #81030 from ricky1993/leader_election_migrate
migrate leader election to lease API
2019-09-26 08:35:09 -07:00
chenyixiang
447295aff2 migrate leader election to lease API
Change-Id: I21fd5cdc1af59e456628cf15fc84b2d79db2eda0
2019-09-26 19:24:01 +08:00
Kubernetes Prow Robot
be657f7462 Merge pull request #83159 from RainbowMango/pr_remove_reference_to_prom_label
Remove direct reference to prometheus.Label from metrics API.
2019-09-26 01:25:37 -07:00
Kubernetes Prow Robot
d82ab4054d Merge pull request #81989 from RainbowMango/pr_cleanup_staticcheck_for_apiextension
Cleanup staticcheck issues for apiextension
2019-09-26 01:25:23 -07:00
RainbowMango
23837bb8f5 Remove direct reference to prometheus.Label from metrics API. 2019-09-26 12:12:12 +08:00
Kubernetes Prow Robot
fb1db2eba7 Merge pull request #82957 from RainbowMango/pr_handle_stability_level_default_better
Handle stability level default better
2019-09-25 19:43:07 -07:00
Kubernetes Prow Robot
45f7f70479 Merge pull request #80465 from answer1991/remove-apiserver-loopback-client-qps-limit
remove apiserver loopback client QPS limit
2019-09-25 17:15:07 -07:00
Kubernetes Prow Robot
28bcf55acc Merge pull request #83113 from yastij/bump-utils
bump k8s.io/utils to pickup ipallocator changes
2019-09-25 13:52:36 -07:00
Kubernetes Prow Robot
ea9a559093 Merge pull request #83075 from yutedz/pod-ready-time
Remove unnecessary traversal of pod.Status.Conditions
2019-09-25 13:52:03 -07:00
Kubernetes Prow Robot
6555c34743 Merge pull request #83022 from mm4tt/controller_ref
Optimize GetControllerOf method and add a benchmark for it
2019-09-25 13:51:14 -07:00
Antoine Pelisse
0b7ea8bb0e Add tests and benchmarks for endpoints and node 2019-09-25 12:51:58 -07:00
Kubernetes Prow Robot
08f46e425b Merge pull request #82932 from ashish-billore/mybranch2
Corrected the pod reporting and messages
2019-09-25 11:07:13 -07:00
Mahendra Kariya
3698100224 Fix golint errors in pkg/apis/core (#82919)
* Fix lint errors related to receiver name

Ref #68026

* Fix lint errors related to comments

Ref #68026

* Fix package name in comments

Ref #68026

* Rename Cpu to CPU

Ref #68026

* Fix lint errors related to naming convention

Ref #68026

* Remove deprecated field

DoNotUse_ExternalID has been deprecated and is not in use anymore.
It has been removed to fix lint errors related to underscores in field
names.

Ref #68026, #61966

* Include pkg/apis/core in golint check

Ref #68026

* Rename var to fix lint errors

Ref #68026

* Revert "Remove deprecated field"

This reverts commit 75e9bfc168077fcb9346e334b59d60a2c997735b.

Ref #82919

* Remove math from godoc

Ref #82919, #68026

* Remove underscore from var name

Ref #68026

* Rename var in staging core api type

Ref #68026
2019-09-25 11:06:51 -07:00
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
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
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
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
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
Ted Yu
936ae632a0 Remove unnecessary traversal of pod.Status.Conditions 2019-09-24 10:47:34 -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
Kubernetes Prow Robot
0541d0bb79 Merge pull request #83018 from jfbai/fix-remove-duplicated-field-in-eventKey
fix: remove reportingInstance field in eventKey.
2019-09-24 04:53:27 -07:00
Kubernetes Prow Robot
9be907d792 Merge pull request #83019 from RainbowMango/pr_wrap_prom_Labels
Wrap promethues.Labels to stability framework.
2019-09-23 21:33:25 -07:00
RainbowMango
4127525e9b Migrate stability level handle functionality overall metrics package 2019-09-24 12:27:21 +08:00
RainbowMango
9ec270804a Handle metrics.StabilityLevel default value better.
Provide a method setDefault() to StabilityLevel type.
Update bazel by hack/update-bazel.sh
2019-09-24 12:27:07 +08:00
Kubernetes Prow Robot
e519736dfd Merge pull request #79261 from draveness/feature/bump-prometheus-common
feat: bump prometheus common to v0.1.0
2019-09-23 14:55:25 -07:00
hasheddan
4fbdb08f98 use vmss instance view expansion and azure-sdk v33.1.0
Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
2019-09-23 11:19:38 -05:00
Kubernetes Prow Robot
b7003211d5 Merge pull request #83014 from danielqsj/bump-klog
Bump k8s.io/klog to v1.0.0
2019-09-23 08:03:38 -07:00
Kubernetes Prow Robot
43875059f0 Merge pull request #82984 from wojtek-t/json_fallback_encoder
Minor cleanup of jsonFallbackEncoder
2019-09-23 08:03:26 -07:00
Nikhita Raghunath
98ceb6a2a4 Update generated code 2019-09-23 19:31:19 +05:30
Nikhita Raghunath
6429a55a79 Add example3.io:v1 to update-codegen.sh 2019-09-23 19:31:19 +05:30
Nikhita Raghunath
acaf658069 Add example3.io
With group = example.dots.apiserver.code-generator.k8s.io
2019-09-23 19:31:20 +05:30
RainbowMango
c92d7001ed Wrap promethues.Labels to stability framework. 2019-09-23 21:00:26 +08:00
Jianfei Bai
6b17e5e2a4 fix: remove reportingInstance field in eventKey. 2019-09-23 20:00:16 +08:00
Nikhita Raghunath
802fed53e3 informer-gen: allow package names containing dots
Before 73dc5a96de,
informer-gen calculated the effective package name by using the first
segment of the groupName.

After the commit, the package name is calculated directly from the
PackageName specified, without any normalizations. This meant that if
the actual PackageName contains dots, the effective package name
can now contain dots too. However, this doesn't work well while
parsing files. This also introduced a regression since dots can no longer
be specified in package names.

To fix this, this commit introduces the same normalizations on the
PackageName i.e. the effective package name now uses the first segment
of PackageName.
2019-09-23 16:55:37 +05:30
danielqsj
c2a4906152 Bump k8s.io/klog to v1.0.0 2019-09-23 16:51:43 +08:00