Commit Graph

7927 Commits

Author SHA1 Message Date
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
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
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
wojtekt
cd24a0e5fa Minor cleanup of jsonFallbackEncoder 2019-09-22 14:05:54 +02:00
draveness
57da7a3508 feat: bump github.com/prometheus/procfs to v0.0.2 2019-09-22 20:04:15 +08:00
draveness
ac9b2516d4 feat: bump github.com/prometheus/client_model to v0.0.0-20190129233127-fd36f4220a90 2019-09-22 20:04:15 +08:00
draveness
dcd413ae5f feat: bump github.com/beorn7/perks to v1.0.0 2019-09-22 20:04:15 +08:00
draveness
270df13e4f feat: bump github.com/prometheus/client_golang to v0.9.4 2019-09-22 20:04:08 +08:00
draveness
c42393c16d feat: bump github.com/prometheus/common to v0.4.1 2019-09-22 20:04:01 +08:00
Kubernetes Prow Robot
338a09abd2 Merge pull request #82873 from odinuge/volume-fd-leak-openstack
Fix possible fd leak and closing of dirs in doSafeMakeDir
2019-09-22 00:53:23 -07:00
Kubernetes Prow Robot
08ef34a2b0 Merge pull request #82914 from Random-Liu/fix-kubectl-panic
Fix kubectl panic when handling invalid error.
2019-09-20 14:13:37 -07:00
Lantao Liu
12d944b860 Fix kubectl panic when handling invalid error. 2019-09-20 10:29:16 -07:00
Kubernetes Prow Robot
dda0553dd7 Merge pull request #82941 from jfbai/docs-add-comments-for-action-arg
docs: add comments for action.
2019-09-20 08:19:00 -07:00
Jianfei Bai
993fe6f4bd docs: add comments for action. 2019-09-20 21:32:44 +08:00
Kubernetes Prow Robot
259d6bf608 Merge pull request #82189 from deads2k/ns-resources
add conditions for remaining object totals during ns termination
2019-09-20 01:33:00 -07:00
Antoine Pelisse
fae9d0ee21 Improve fieldmanager tests and benchmarks 2019-09-19 13:01:49 -07:00