Commit Graph

210 Commits

Author SHA1 Message Date
Kubernetes Publisher 1f90031aeb Merge pull request #87107 from dims/updating-googleapis/gnostic-to-v0.1.0
updating googleapis/gnostic to v0.1.0

Kubernetes-commit: d5145ffc10c7429f555134f44d5bf95cd7eda270
2020-01-14 00:08:11 +00:00
Kubernetes Publisher a9b953466a Merge pull request #87088 from dims/switch-to-newer-gonum
Drop random SHA and update gonum.org/v1/gonum to v0.6.2

Kubernetes-commit: bb3f8c7c899d7166c31934b80b39c7307ec85b7a
2020-01-14 00:08:09 +00:00
Davanum Srinivas 6ae890147a updating googleapis/gnostic to v0.1.0
per https://github.com/googleapis/gnostic/releases/tag/v0.1.0, the
v0.1.0 was made specifically for use by k8s, but we still seem to be
using a random SHA. Let's try to switch to a tagged version.

Kubernetes-commit: 420d5d10c4baad0aced31de382801fd999f2c94b
2020-01-11 22:38:36 -05:00
Kubernetes Publisher cc2e591bcb Merge pull request #85458 from cjcullen/yaml
Update gopkg.in/yaml.v2 to v2.2.7

Kubernetes-commit: 7f2128757b1aa2e83320d1f635fe8b2e7028542a
2020-01-11 16:07:31 +00:00
Kubernetes Publisher b565a424ba Merge pull request #87093 from dims/update-prometheus/client_model-to-v0.1.0
Move from random SHA - update github.com/prometheus/client_model to v0.1.0

Kubernetes-commit: 5ade844b7245523c9c3a5467f4c03a6fe75ada23
2020-01-11 12:05:29 +00:00
Davanum Srinivas 3dc37b17a0 Move from random SHA - update github.com/prometheus/client_model to v0.1.0
Kubernetes-commit: b5f050a5cbd0e9b004224612c9d929a008737dca
2020-01-10 16:44:42 -05:00
Davanum Srinivas 4758ae112e update gonum.org/v1/gonum to v0.6.2
Kubernetes-commit: f66ef23c1182e72db9cbb80f6df4186a326374c0
2020-01-10 15:26:48 -05:00
Kubernetes Publisher b5341dfbe4 Merge pull request #86952 from zhouya0/fix_kubectl_annotate_local_error
fix kubectl annotate error when local=true is set.

Kubernetes-commit: 6026a6a1515244855d10a51857af2e8c2fd26f37
2020-01-10 00:04:05 +00:00
Kubernetes Publisher fbbb143d94 Merge pull request #84241 from mgugino-upstream-stage/kubectl-drain-dead-code
kubectl: remove unreachable code

Kubernetes-commit: 014e1fb54c12857b6272f9c2e538fbe4a684f3b7
2020-01-08 12:04:08 +00:00
Kubernetes Publisher e2c59440f3 Merge pull request #86693 from sallyom/silence-usage-on-error
silence usage when required flag is not passed

Kubernetes-commit: c72d5fd2556f90669fc3321061dba658cad077cf
2020-01-02 20:02:44 +00:00
Kubernetes Publisher 5faa920af5 Merge pull request #85123 from danielqsj/apierrs
Unify aliases for "k8s.io/apimachinery/pkg/api/errors"

Kubernetes-commit: 4158e7c1de2541d9a3272950f6e608e35470abb7
2019-12-27 04:03:30 +00:00
CJ Cullen 61534c3efe update gopkg.in/yaml.v2 to v2.2.7
Kubernetes-commit: aa278345fa55ee9f3e097da1b590fcabd85270f7
2019-11-19 09:39:27 -08:00
Kubernetes Publisher dcb414f235 Merge pull request #86346 from SataQiu/bump-utils-20191217
Bump k8s.io/utils version

Kubernetes-commit: 2d310b13215110a9dcaabcebef65d62a1b3f0bdd
2019-12-22 12:06:33 +00:00
SataQiu 8628bea5b6 bump k8s.io/utils version
Kubernetes-commit: 2497a1209bf96472bceabbc465b2370f1b66a4a7
2019-12-17 23:12:53 +08:00
Kubernetes Publisher cbfa3a891a Merge pull request #86013 from carlosedp/ginkgo_bump
Bump Ginkgo to support building on riscv64 arch

Kubernetes-commit: 4ff692861908697c530b6b8ba48a5eb442bd7ed7
2019-12-21 00:07:23 +00:00
Carlos de Paula 25f174bf7a Bump Ginkgo module to release version
Kubernetes-commit: c71dd7e4ee6b6f8f624ffc12fc38d1c6dedc5739
2019-12-19 19:30:42 -03:00
Carlos de Paula eacfb73662 Bump Ginkgo to support building on riscv64 arch
Kubernetes-commit: ecfd30d2517c52f158b099abcc303cce307c324d
2019-12-06 15:23:15 -05:00
Kubernetes Publisher 1528d4eea6 Merge pull request #86361 from seans3/apply-refactor
kubectl apply refactor

Kubernetes-commit: 8c2f2c93bce58cd9d10e5045d2d967bc437f372e
2019-12-19 15:49:10 +00:00
Kubernetes Publisher 3911017ab9 Merge pull request #86040 from haosdent/fix-staticcheck-annotate
fix static check in kubectl/pkg/cmd/annotate.

Kubernetes-commit: 623b6978866b5d3790d17ff13601ef9e7e4f4bf0
2019-12-17 15:28:05 +00:00
Kubernetes Publisher 22c6d6a0c7 Merge pull request #86269 from odinuge/go-mod-version
Update go version in go.mod to 1.13

Kubernetes-commit: b96642aeaeefee838b5f0938e5d04765dd27d39b
2019-12-14 19:31:20 +00:00
Odin Ugedal 898749a98f Update go version in go.mod
We now use go 1.13 and not 1.12

Kubernetes-commit: 4769cbedd5bdaf61e329b4e9687ec97a6c53b61a
2019-12-14 12:43:14 +01:00
Kubernetes Publisher cfca652cc0 Merge pull request #85406 from zhouya0/kubectl-change-podSecurityPolicy-group
kubectl change podSecurityPolicy group

Kubernetes-commit: 5a45e300819b6d3248fed620ba07a893cf448908
2019-12-13 03:30:09 +00:00
Kubernetes Publisher 8ebe75d8ba Merge pull request #83525 from oke-py/contribute-kubectl-book
Clalify how to contribute to kubectl book

Kubernetes-commit: 9caeb09169c3c14515bbbcaa72d595cff79bdda7
2019-12-11 23:29:07 +00:00
Kubernetes Publisher a20db94d5b Merge pull request #74525 from gliush/configurable-hpa-limits
Configurable HorizontalPodAutoscaler

Kubernetes-commit: 928817a26a84d9e3076d110ea30ba994912aa477
2019-12-11 15:32:52 +00:00
Kubernetes Publisher 846b394714 Merge pull request #85577 from mgugino-upstream-stage/unready-node-timeout
kubectl/drain: add option skip-wait-for-delete-timeout

Kubernetes-commit: 93eb2e38a7800087f0ab2ae058cccd4dcceae8f9
2019-12-10 00:46:32 +00:00
Kubernetes Publisher b909fcb4a0 Merge pull request #85709 from tanjunchen/correct-404-ruls
correct  invalid  urls

Kubernetes-commit: 117a3a7f2a4f0229516b18c47fbcbaa223211878
2019-12-06 20:48:26 +00:00
Kubernetes Publisher a08e9829ac Merge pull request #85863 from nan-yu/pdb_status_renaming
Rename PodDisruptionsAllowed to DisruptionsAllowed in type PodDisruptionBudgetStatus

Kubernetes-commit: b8ce44f00669f09b26c2122ae243d47460c757a6
2019-12-06 01:04:10 +00:00
Kubernetes Publisher a3a0d014e5 Merge pull request #85293 from huffmanca/include_fstype_csi
Included FSType in CSI volumes

Kubernetes-commit: 2b6857db4d4226cc07180308fe8a8507abbc7700
2019-12-04 09:45:27 +00:00
Kubernetes Publisher 03dd8a5df9 Merge pull request #85574 from mgugino-upstream-stage/kubectl-drain-ctx
kubectl/drain: Add context support

Kubernetes-commit: 3e7c787d3ae8d03de55c1c3e64fd1d41437c6bd4
2019-12-04 09:45:25 +00:00
Kubernetes Publisher 23432852b0 Merge pull request #85644 from liggitt/meta-v1-table
Switch TableGenerator/TableConvertor interfaces to metav1

Kubernetes-commit: 050c9471c86e0d455c0cf44add3af8c98ab4e8b5
2019-12-04 09:45:23 +00:00
Kubernetes Publisher 21ad77b94e Merge pull request #85595 from zhouya0/add_test_coverage_with_kubectl_get_components
add test coverage with kubectl get components

Kubernetes-commit: ab0bfb304caa3f67d5c207c2356557cda90936b9
2019-12-04 09:45:19 +00:00
Kubernetes Publisher d134c5a987 Merge pull request #85556 from wojtek-t/fix_kubectl_conversions
Cleanup conversions in kubectl

Kubernetes-commit: c3184828cbc87b8fbac4c8ee2d6a5cafbe315137
2019-11-25 18:41:53 +00:00
Kubernetes Publisher c390dc2e34 Merge pull request #85223 from sttts/sttts-crd-items-types
apiextensions: fix items+type logic in API due to broken go-openapi validation

Kubernetes-commit: 976712556e4bd22d5312a0af36b18127c709d54a
2019-11-21 02:31:11 +00:00
Dr. Stefan Schimanski f605806477 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 fbc5d36fee Merge pull request #85305 from codenrhoden/remove-mount-pkg
Remove pkg/util/mount (moved out of tree)

Kubernetes-commit: 45e0080fd5883e3355233c9c22fa5bf242d525dd
2019-11-15 22:28:26 +00:00
Travis Rhoden 5790b8d2d7 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 14ad457328 Merge pull request #84424 from mikedanese/expcache
Add an expiring cache for the caching token authenticator

Kubernetes-commit: 19b4017b5d5c5695403a9804f5ea3de11a436c04
2019-11-15 02:26:11 +00:00
Kubernetes Publisher 586878aa9d Merge pull request #85285 from liggitt/kubectl-resource-version
Fix --resource-version handling in kubectl

Kubernetes-commit: 141329fd2157a0791b93fae0160ce24d99808607
2019-11-15 02:26:09 +00:00
Kubernetes Publisher 0f4ee8ce68 Merge pull request #85175 from liggitt/golang-org-comments
Add comments to explain golang.org replace directives

Kubernetes-commit: 24334444b46371e26594e1f6e594195a761b53d3
2019-11-14 22:52:35 +00:00
Kubernetes Publisher edc096cc0a Merge pull request #84227 from soltysh/fix_scale_doc
Drop job from scale description

Kubernetes-commit: 37c7c904e1f3730c8a1dc37c5428132a6af3a6f7
2019-11-14 22:52:33 +00:00
Kubernetes Publisher c85971996e Merge pull request #84390 from robscott/endpointslice-beta
Promoting EndpointSlices to beta

Kubernetes-commit: 64f4be5b328a4df8a709b95604743086013a70e4
2019-11-14 11:33:28 +00:00
Jordan Liggitt 163af6a908 Add comments to explain golang.org replace directives
Kubernetes-commit: 9f40e19d7ac9e2203c23814701468a26eee1964f
2019-11-12 23:54:26 -05:00
Mike Danese f2f06b692c 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 b031036a44 Merge pull request #84971 from robscott/endpointslice-iptypes
Splitting IP address type into IPv4 and IPv6 for EndpointSlices

Kubernetes-commit: c5609071d805036b251f22ce122bbf13ca94bff7
2019-11-14 11:33:26 +00:00
Kubernetes Publisher 9aa870a398 Merge pull request #84194 from jackkleeman/describe-netpol
Fix incorrect message on describe netpol

Kubernetes-commit: b9030ff666772b76c6bb96c147a52341a9be94b9
2019-11-14 11:33:24 +00:00
Kubernetes Publisher 62986ac78f Merge pull request #85135 from wojtek-t/delete_unnecessary_conversions_1
Eliminate couple unnecessary conversions

Kubernetes-commit: 402e551ca27499a9dc211dd6e4eca21d9aa9d089
2019-11-14 11:33:22 +00:00
Kubernetes Publisher afc56dffd2 Merge pull request #84692 from smarterclayton/protocol_errors
Fix watch negotiation when using a non-default mime type in the client

Kubernetes-commit: c28921f248a8e6c923096154c6e87efcc188b9f0
2019-11-11 06:53:37 +00:00
Kubernetes Publisher 7b7a54e29b Merge pull request #83840 from liggitt/json-iter
bump json-iterator dependency

Kubernetes-commit: 3387d6cfc73235fd554e5039b85abb7700eaf126
2019-11-09 12:02:35 +00:00
Kubernetes Publisher b6bc5b7411 Merge pull request #84612 from soltysh/set_typesetter
Set TypeSetter in get print flags, like we do everywhere else

Kubernetes-commit: 48ee1504445801c38b7679ecf419a0ba3472bfc6
2019-11-09 12:02:32 +00:00
Kubernetes Publisher feacf2b3d4 Merge pull request #84911 from yue9944882/chore/bump-kube-openapi
Pin kube-openapi vendor to 30be4d16710a

Kubernetes-commit: dd6faa5da791c06fa23ff668e4463c3ad2b23340
2019-11-08 07:35:26 +00:00