968 Commits

Author SHA1 Message Date
Kubernetes Publisher
31e1ba446f sync: update go.mod 2021-05-18 12:20:33 +00:00
Kubernetes Publisher
bc29683490 Merge pull request #94149 from liggitt/json-patch-1.17
[1.17] Update to json-patch 4.9.0

Kubernetes-commit: 47cb66239b5622419406e41d46c1724ca2b66700
2020-09-03 13:56:44 +00:00
Jordan Liggitt
c32e4a3672 Update json-patch to v4.9.0 tagged release
Kubernetes-commit: 474924381a99e45c3735800b19f41068affc9908
2020-08-20 17:19:51 -04:00
Kubernetes Publisher
c9d78d2a11 Merge pull request #93812 from liggitt/json-patch-4.8.0-1.17
[1.17] Update to json-patch 4.8.0

Kubernetes-commit: da707e8b3e96e2f5d91ed474c16c5edde7192bf2
2020-08-12 09:30:14 +00:00
Jordan Liggitt
15bf6edb65 Update to json-patch 4.8.0
Kubernetes-commit: debb7ac0a7dde3a673f42b3eef8b4802a9e4750f
2020-08-08 10:04:13 -04:00
Kubernetes Publisher
04a6536a6b Merge pull request #90020 from liggitt/json-raw-1.17
Manual cherry pick of #89833: preserve integers decoding raw JSON values

Kubernetes-commit: 72f8a95ea4a373ad001f504d00def972918127a5
2020-04-29 01:17:20 +00:00
Jordan Liggitt
11d6f6b94b kube-openapi bump to release-1.17
Kubernetes-commit: 65319f4fa0a64befbea06729c2b018f86618c831
2020-04-09 15:10:05 -04:00
Kubernetes Publisher
7719b71fbe Merge pull request #89165 from apelisse/tag-smd-properly
Tag smd properly for kubernetes 1.17

Kubernetes-commit: 125977452af7918d3aef090555252f66d9fe386a
2020-04-04 06:52:17 +00:00
Antoine Pelisse
b1cf06fd4c Update kube-openapi to release-1.17
Kubernetes-commit: 870e28181b23f80bfe65d8153de0f758ec885e98
2020-03-16 17:15:39 -07:00
Kubernetes Publisher
a534990da7 Merge pull request #88411 from liggitt/automated-cherry-pick-of-#88381-upstream-release-1.17
Automated cherry pick of #88381: update golang.org/x/crypto

Kubernetes-commit: 23eb2180c65472f5c25fdec551b594f0b2db427d
2020-02-28 08:48:16 +00:00
Benjamin Elder
569c59dc96 update golang.org/x/crypto
Kubernetes-commit: 78902d0e1b186190873bf74890dac1fd70f45917
2020-02-20 13:17:51 -08:00
Kubernetes Publisher
3fd12213be Merge pull request #87637 from cjcullen/automated-cherry-pick-of-#87467-upstream-release-1.17
Update gopkg.in/yaml.v2 to v2.2.8

Kubernetes-commit: c96d270ac9a9f0dedc4e6c5767591db7e14178db
2020-01-31 20:09:32 +00:00
CJ Cullen
50b34f2dac update gopkg.in/yaml.v2 to v2.2.8
Kubernetes-commit: a290fe55cb2f4593eb4ec5bf410cd77b9d925464
2020-01-22 11:32:39 -08:00
Kubernetes Publisher
e6c2112911 Merge remote-tracking branch 'origin/master' into release-1.17
Kubernetes-commit: 486425533b66fa3ce13c2ef480061520ef584ff4
2019-11-21 18:13:05 +00:00
Dr. Stefan Schimanski
6ffe9e5203 hack/pin-dependency.sh github.com/go-openapi/validate v0.19.5
Kubernetes-commit: ef88c43c0296e6004d0e3407a1336074897b309d
2019-11-15 13:48:59 +01:00
Kubernetes Publisher
e0cf0d287d Merge remote-tracking branch 'origin/master' into release-1.17
Kubernetes-commit: 034eb142bf826a667ab01d95b5c09268273b58dd
2019-11-16 18:22:09 +00:00
Travis Rhoden
beefa56cb8 Remove pkg/util/mount (moved out of tree)
This patch removes pkg/util/mount completely, and replaces it with the
mount package now located at k8s.io/utils/mount. The code found at
k8s.io/utils/mount was moved there from pkg/util/mount, so the code is
identical, just no longer in-tree to k/k.

Kubernetes-commit: 0c5c3d8bb97d18a2a25977e92b3f7a49074c2ecb
2019-11-14 13:30:00 -07:00
Kubernetes Publisher
3ac52b7c52 Merge remote-tracking branch 'origin/master' into release-1.17
Kubernetes-commit: 525ba1cf14673c58ad0cefbe81c6a508bc1ca9d6
2019-11-15 14:26:44 +00:00
Kubernetes Publisher
739e86d241 Merge pull request #84424 from mikedanese/expcache
Add an expiring cache for the caching token authenticator

Kubernetes-commit: 19b4017b5d5c5695403a9804f5ea3de11a436c04
2019-11-15 18:21:46 +00:00
Jordan Liggitt
862416395b Add comments to explain golang.org replace directives
Kubernetes-commit: 9f40e19d7ac9e2203c23814701468a26eee1964f
2019-11-12 23:54:26 -05:00
Kubernetes Publisher
dde39329ba Merge remote-tracking branch 'origin/master' into release-1.17
Kubernetes-commit: 24f8d1eccb2bc72409dc4c1a97c3ca63e5f41710
2019-11-09 15:56:59 +00:00
Kubernetes Publisher
2f64ef69cd Merge pull request #83840 from liggitt/json-iter
bump json-iterator dependency

Kubernetes-commit: 3387d6cfc73235fd554e5039b85abb7700eaf126
2019-11-09 22:32:05 +00:00
Kubernetes Publisher
f433da5d9f Merge remote-tracking branch 'origin/master' into release-1.17. Deleting CHANGELOG-1.16.md
Kubernetes-commit: 57ce516fdc0eec9b7a8ff2e591f4550a3060ee09
2019-11-08 11:26:54 +00:00
yue9944882
60c52f0115 update k8s.io/kube-openapi to 30be4d16710a
Kubernetes-commit: 8e7606f32898b294fc25152ff8bd34f62d6221d3
2019-11-07 18:39:08 +08:00
Kubernetes Publisher
dbbf10cb31 Merge remote-tracking branch 'origin/master' into release-1.17
Kubernetes-commit: 53697d28302afd7d2b1e453ad26c2593ed7de5aa
2019-11-07 11:36:56 +00:00
Jordan Liggitt
5c5166afe2 hack/update-vendor.sh
Kubernetes-commit: 297570e06a88db23e16dbdbf6ce3173fe0ae376c
2019-11-05 14:11:10 -05:00
Kubernetes Publisher
fb3f879b30 Merge remote-tracking branch 'origin/master' into release-1.17
Kubernetes-commit: 1aae77adac170f7eb3d2281c9a56db4ad9ee60ac
2019-11-04 15:25:34 +00:00
Travis Rhoden
f7aefcc27e Update k8s.io/utils dependency to latest
Kubernetes-commit: 81f66ecbb5ff359ac765c7f332289dd8c1737c39
2019-10-31 08:35:01 -06:00
Wenjia Zhang
93f1a71e95 Pin dependencies and update vendors
Kubernetes-commit: 660b17d0aeda96af94defd4c5110d9fef523d52b
2019-11-01 11:24:34 +00:00
Mike Danese
ad9759b203 Add an expiring cache for the caching token authenticator
And maybe the webhook authorizer cache.

This cache has two primary advantages over the LRU cache used currently:

- Cache hits don't acquire an exclusive lock.
- More importantly, performance doesn't fallover when the access pattern
  scans a key space larger than an arbitrary size (e.g. the LRU
  capacity).

The downside of using an expiring cache here is that it doesn't have a
maximum size so it's suspectible to DoS when the input is user
controlled. This is not the case for successful authentications, and
successful authentications have a natural expiry so it might be a good
fit here.

It has some a few differences compared to:

3d7318f29d/staging/src/k8s.io/client-go/tools/cache/expiration_cache.go

- Expiration is not entirely lazy so keys that are never accessed again
  are still released from the cache.
- It does not acquire an exclusive lock on cache hits.
- It supports per entry ttls specified on Set.

The expiring cache (without striping) does somewhere in between the
simple cache and striped cache in the very contrived contention test
where every iteration acquires a write lock:

```
$ benchstat simple.log expiring.log
name      old time/op    new time/op    delta
Cache-12    2.74µs ± 2%    2.02µs ± 3%  -26.37%  (p=0.000 n=9+9)
name      old alloc/op   new alloc/op   delta
Cache-12      182B ± 0%      107B ± 4%  -41.21%  (p=0.000 n=8+9)
name      old allocs/op  new allocs/op  delta
Cache-12      5.00 ± 0%      2.00 ± 0%  -60.00%  (p=0.000 n=10+10)

$ benchstat striped.log expiring.log
name      old time/op    new time/op    delta
Cache-12    1.58µs ± 5%    2.02µs ± 3%  +27.34%  (p=0.000 n=10+9)
name      old alloc/op   new alloc/op   delta
Cache-12      288B ± 0%      107B ± 4%  -62.85%  (p=0.000 n=10+9)
name      old allocs/op  new allocs/op  delta
Cache-12      9.00 ± 0%      2.00 ± 0%  -77.78%  (p=0.000 n=10+10)

$ benchstat simple.log striped.log expiring.log
name \ time/op    simple.log   striped.log  expiring.log
Cache-12          2.74µs ± 2%  1.58µs ± 5%   2.02µs ± 3%
name \ alloc/op   simple.log   striped.log  expiring.log
Cache-12            182B ± 0%    288B ± 0%     107B ± 4%
name \ allocs/op  simple.log   striped.log  expiring.log
Cache-12            5.00 ± 0%    9.00 ± 0%     2.00 ± 0%
```

I also naively replacemed the LRU cache with the expiring cache in the
more realisitc CachedTokenAuthenticator benchmarks:

https://gist.github.com/mikedanese/41192b6eb62106c0758a4f4885bdad53

For token counts that fit in the LRU, expiring cache does better because
it does not require acquiring an exclusive lock for cache hits.

For token counts that exceed the size of the LRU, the LRU has a massive
performance drop off. The LRU cache is around 5x slower (with lookups
taking 1 milisecond and throttled to max 40 lookups in flight).

```
$ benchstat before.log after.log
name                                                  old time/op    new time/op    delta
CachedTokenAuthenticator/tokens=100_threads=256-12      3.60µs ±22%    1.08µs ± 4%  -69.91%  (p=0.000 n=10+10)
CachedTokenAuthenticator/tokens=500_threads=256-12      3.94µs ±19%    1.20µs ± 3%  -69.57%  (p=0.000 n=10+10)
CachedTokenAuthenticator/tokens=2500_threads=256-12     3.07µs ± 6%    1.17µs ± 1%  -61.87%  (p=0.000 n=9+10)
CachedTokenAuthenticator/tokens=12500_threads=256-12    3.16µs ±17%    1.38µs ± 1%  -56.23%  (p=0.000 n=10+10)
CachedTokenAuthenticator/tokens=62500_threads=256-12    15.0µs ± 1%     2.9µs ± 3%  -80.71%  (p=0.000 n=10+10)

name                                                  old alloc/op   new alloc/op   delta
CachedTokenAuthenticator/tokens=100_threads=256-12        337B ± 1%      300B ± 0%  -11.06%  (p=0.000 n=10+8)
CachedTokenAuthenticator/tokens=500_threads=256-12        307B ± 1%      304B ± 0%   -0.96%  (p=0.000 n=9+10)
CachedTokenAuthenticator/tokens=2500_threads=256-12       337B ± 1%      304B ± 0%   -9.79%  (p=0.000 n=10+10)
CachedTokenAuthenticator/tokens=12500_threads=256-12      343B ± 1%      276B ± 0%  -19.58%  (p=0.000 n=10+10)
CachedTokenAuthenticator/tokens=62500_threads=256-12      493B ± 0%      334B ± 0%  -32.12%  (p=0.000 n=10+10)

name                                                  old allocs/op  new allocs/op  delta
CachedTokenAuthenticator/tokens=100_threads=256-12        13.0 ± 0%      11.0 ± 0%  -15.38%  (p=0.000 n=10+10)
CachedTokenAuthenticator/tokens=500_threads=256-12        12.0 ± 0%      11.0 ± 0%   -8.33%  (p=0.000 n=10+10)
CachedTokenAuthenticator/tokens=2500_threads=256-12       13.0 ± 0%      11.0 ± 0%  -15.38%  (p=0.000 n=10+10)
CachedTokenAuthenticator/tokens=12500_threads=256-12      13.0 ± 0%      10.0 ± 0%  -23.08%  (p=0.000 n=9+10)
CachedTokenAuthenticator/tokens=62500_threads=256-12      17.0 ± 0%      12.0 ± 0%  -29.41%  (p=0.000 n=10+10)
```

Benchmarked with changes in #84423

Bugs: #83259 #83375

Kubernetes-commit: 9167711fd18511ffc9c90ee306c462be9fc7999b
2019-10-26 12:19:07 -07:00
Kubernetes Publisher
ab9e95689d Merge pull request #82455 from AdheipSingh/patch-1
Update comment for syncHandler

Kubernetes-commit: ad0274fb6e506fb573cc3237ada871ea6dfc66fe
2019-10-17 07:04:49 +00:00
Kubernetes Publisher
2b8cca0f69 Merge pull request #81952 from ialidzhikov/fix/broken-link
Fix broken link in sample-controller

Kubernetes-commit: d87403c2f5c4a49b15420985e7c6d5cbd1e9cd8b
2019-10-16 11:28:52 +00:00
Kubernetes Publisher
3abffa4165 Merge pull request #83855 from mrbobbytables/update-sample-controller-owners
Prune inactive owners from staging/src/k8s.io/sample-controller/OWNERS.

Kubernetes-commit: 3ec5fe500d7a56be6ff6c15f916987eaa48c2e94
2019-10-14 01:52:35 -07:00
Bob Killen
d593d06471 Prune inactive owners from staging/src/k8s.io/sample-controller/OWNERS.
Kubernetes-commit: 53137a6bf9fe09ac924b3087e3e3fb5e43b4bf8b
2019-10-12 20:15:46 -04:00
Kubernetes Publisher
8aa6dce7d6 Merge pull request #83785 from yastij/bump-utils-rangesize
bump k8s.io/utils to pickup bug fix for rangesize func

Kubernetes-commit: 677903edc6cfe1fb045a55b0734ee05ce8c3d03c
2019-10-14 07:34:41 +00:00
Jordan Liggitt
2ebc577c19 bump github.com/json-iterator/go v1.1.8
Kubernetes-commit: e323279ab94e2434fa610a476ad6d7630228be0e
2019-10-12 10:10:03 -04:00
Yassine TIJANI
97f7067723 bump k8s.io/utils to pickup bug fix for rangesize
Signed-off-by: Yassine TIJANI <ytijani@vmware.com>

Kubernetes-commit: 5d49cbd3cae68d7aafdeac7f2ca08208118f09ad
2019-10-11 16:45:21 +02:00
Kubernetes Publisher
ac9726f261 Merge pull request #82176 from pohly/ginkgo-stack-fix
Ginkgo update + stack fix

Kubernetes-commit: b140b431073ae4d84ce9ef5e01a1f27058178ead
2019-10-05 12:09:43 +00:00
Kubernetes Publisher
9f91627dc6 Merge pull request #83261 from liggitt/yaml-limits
limit yaml/json decode size

Kubernetes-commit: 4afcba42bed2bb7c36e5209a90d87343f32a0efa
2019-10-03 04:11:42 +00:00
Jordan Liggitt
1be1e75737 bump gopkg.in/yaml.v2 v2.2.4
Kubernetes-commit: 8aeffa8716dcf986544df74444264ef639d61a7a
2019-10-02 14:46:08 -04:00
Patrick Ohly
71f7a8b74b vendor: update gomega to v1.7.0
Updated to keep both Ginkgo and Gomega at the latest releases.

Kubernetes-commit: 27b9a9c2381fab195f2db1bc709e46d0b83fc729
2019-10-01 20:25:05 +02:00
Kubernetes Publisher
a91ecd8a9f Merge pull request #83113 from yastij/bump-utils
bump k8s.io/utils to pickup ipallocator changes

Kubernetes-commit: 28bcf55accc52dfd4fde5f603a5784c40c485528
2019-09-26 00:08:56 +00:00
Yassine TIJANI
e6f28640db bump k8s.io/utils to pickup ipallocator changes
Signed-off-by: Yassine TIJANI <ytijani@vmware.com>

Kubernetes-commit: 16fe4d76271f6330c2837462a40edf95dde95942
2019-09-25 16:15:30 +02:00
Kubernetes Publisher
9776085a84 Merge pull request #83014 from danielqsj/bump-klog
Bump k8s.io/klog to v1.0.0

Kubernetes-commit: b7003211d5454982401c19705f73bf2820ede855
2019-09-23 16:09:22 +00:00
danielqsj
20bcce4d81 Bump k8s.io/klog to v1.0.0
Kubernetes-commit: c2a4906152e67a45308f988aa2cb8b76b4503855
2019-09-23 16:51:43 +08:00
Kubernetes Publisher
3b7fd8b5d4 Merge pull request #81944 from carlory/fix-vendor
fix static check failures in staging  pkg

Kubernetes-commit: 84d484bd2c6c69e9ccce1fe03b7621f151b1b042
2019-09-16 16:06:09 +00:00
Kubernetes Publisher
b2dd2e61ff Merge pull request #82161 from d-kuro/feature/fix-broken-link
Fix broken link.

Kubernetes-commit: 9c25981f359603333b3323b44e812b293887749b
2019-09-13 08:41:32 +00:00
AdheipSingh
1205a13b28 Update comment for syncHandler
```
// If the Deployment is not controlled by this Foo resource, we should log
// a warning to the event recorder and return error msg
```
For a clearer understanding of the comment.

Kubernetes-commit: db303bc2af859d48958e0b9c084a3b2983c1220f
2019-09-07 19:09:56 +05:30
Kubernetes Publisher
b17b22266f Merge pull request #77354 from jennybuckley/crd-apply
Use CRD validation field in server-side apply

Kubernetes-commit: ab162cd28c332d0ecfb4f918d5f91e9e57acdb61
2019-08-31 08:01:03 +00:00
Patrick Ohly
52badec515 e2e log: Ginkgo 1.10.1 fixes stack skip
Now Ginkgo properly skips the initial stack entry.

Kubernetes-commit: ecd7ae55bc3ceda761f4405764815f70d38e3b2c
2019-08-30 17:58:48 +02:00