Commit Graph

17678 Commits

Author SHA1 Message Date
Max Goltzsche
df8fa2eab5 bump go-jose to v2.6.0
Update go-jose from v2.2.2 to v2.6.0.
This is to make the kubernetes code compatible with newer go-jose versions that have a small breaking change (`jwt.NewNumericDate()` returns a pointer).

Signed-off-by: Max Goltzsche <max.goltzsche@gmail.com>
2023-03-02 02:53:17 +01:00
Kubernetes Prow Robot
bb8e9f3afb Merge pull request #116195 from seans3/openapi3-root-fix
Fixes bug with Root not handling Group without Version
2023-03-01 16:55:30 -08:00
Kubernetes Prow Robot
51dedff4f3 Merge pull request #115277 from pohly/klog-update
klog update
2023-03-01 15:11:16 -08:00
Sean Sullivan
17cd59ec1c Fixes bug with Root not handling Group without Version 2023-03-01 21:27:37 +00:00
Kubernetes Prow Robot
5b07dd0c54 Merge pull request #115413 from pacoxu/etcd-dep-update
upgrade etcd deps to v3.5.7
2023-03-01 11:19:18 -08:00
Kubernetes Prow Robot
e2fff53f43 Merge pull request #115859 from gjkim42/deflake-TestDirty
Deflake tests in `staging/src/k8s.io/kube-aggregator/pkg/apiserver`
2023-03-01 10:09:19 -08:00
Patrick Ohly
961819a4d0 dependencies: update klog v2.90.1
This improves performance of the text formatting and ktesting.

Because ktesting no longer buffers messages by default, one unit
test needs to ask for that explicitly.
2023-03-01 19:03:50 +01:00
Kubernetes Prow Robot
44bedc2a46 Merge pull request #116176 from aojea/testpingspdy
start to count time since the connection was actually established
2023-03-01 07:05:29 -08:00
Kubernetes Prow Robot
8cd4211630 Merge pull request #116033 from chengjoey/fix/apiserver-metrics
fix apiserver metrics `RecordsWatchCacheCapacityChange` use watchCacheCapacity as increase total
2023-03-01 07:05:17 -08:00
Antonio Ojea
d6f81c01f4 start to count time since the connection was actually established
Change-Id: Ib4986fb362600b760a4a853513d739f2d665836e
2023-03-01 11:58:57 +00:00
John Howard
b99fe0d5b9 client-go: support Shutdown() for metadata and dynamic informers (#114434)
* client-go: support `Shutdown()` for metadata and dynamic informers

Followup to https://github.com/kubernetes/kubernetes/pull/112200,
specifically
https://github.com/kubernetes/kubernetes/pull/112200#issuecomment-1344812038.

* add comments

* Defer lock
2023-02-28 23:09:17 -08:00
Kubernetes Prow Robot
a023a5eb17 Merge pull request #115988 from justinsb/prunev2_add_labels
prunev2: Add labels for objects that we apply
2023-02-28 20:33:16 -08:00
Gunju Kim
e24e3de379 Deflake tests in staging/src/k8s.io/kube-aggregator/pkg/apiserver
`waitForEmptyQueue` cannot guarantee that all items in the queue have
been synced completely but guarantee that all items have been started.

This adds `waitForQueueComplete` and implements `completerWorkqueue` to
check if the workqueue is complete to deflake the tests in
staging/src/k8s.io/kube-aggregator/pkg/apiserver.
2023-03-01 13:29:17 +09:00
Gunju Kim
e7d8dfb5a0 Fix a data race in TestDirty
This uses atomic.Bool as updating and reading a boolean-type variable
concurrently is not thread-safe.
2023-03-01 13:23:27 +09:00
Paco Xu
b5dbb33da9 upgrade etcd deps to v3.5.7
Signed-off-by: Paco Xu <paco.xu@daocloud.io>
2023-03-01 12:14:52 +08:00
Kubernetes Prow Robot
93a5181871 Merge pull request #116022 from nilekhc/reference-implementation-provider
[kmsv2] feat: add kms mock plugin for e2e tests
2023-02-28 17:57:17 -08:00
Nilekh Chaudhari
43acba8084 feat: kms base64 plugin for e2e tests
Signed-off-by: Nilekh Chaudhari <1626598+nilekhc@users.noreply.github.com>
2023-03-01 00:11:17 +00:00
Kubernetes Prow Robot
11ff3fbeee Merge pull request #116090 from abserari/patch-1
Typo: fix EndpointsLeasesResourceLock ->ConfigMapsLeasesResourceLock
2023-02-28 16:07:16 -08:00
Kubernetes Prow Robot
f22060cda6 Merge pull request #116140 from dashpole/fix_nobody_tracing
Update otelhttp dependency to v0.35.1
2023-02-28 14:54:16 -08:00
Kubernetes Prow Robot
a683997964 Merge pull request #116128 from wojtek-t/event_metrics
Add metrics for number of events received from etcd
2023-02-28 14:54:00 -08:00
Wojciech Tyczyński
85359d74ed Add metrics for number of events received from etcd 2023-02-28 20:30:17 +01:00
Justin SB
ab05830840 prunev2: Add labels for objects that we apply
As we apply objects when using apply/prune v2, we want to be sure they
include the label that ties them back to the applyset they are part
of.

Co-Authored-By: Katrina Verey <katrina.verey@shopify.com>
2023-02-28 13:27:33 -05:00
David Ashpole
e0d44fd216 update otelhttp to v0.35.1 2023-02-28 17:52:30 +00:00
Ed Bartosh
fb3f8ac3c3 CRI: add CDIDevice to the ContainerConfig 2023-02-28 19:21:11 +02:00
Antonio Ojea
3b17aece1f cacher allow context cancellation if not ready (#116024)
* cacher allow context cancellation if not ready

Replace the sync.Cond variable with a channel so we can use the
context cancellation signal.

Co-authored-by: Wojciech Tyczy<C5><84>ski <wojtekt@google.com>
Change-Id: I2f75313a6337feee440ece4c1e873c32a12560dd

* wait again on pending state

Change-Id: I1ad79253a5a5d56a4d9611125825b1f7ad552be8

---------

Co-authored-by: Wojciech Tyczy<C5><84>ski <wojtekt@google.com>
2023-02-28 03:23:16 -08:00
Kubernetes Prow Robot
f2fdda8667 Merge pull request #115918 from yt2985/genericWatch
Partition watchers by namespace/name scope
2023-02-28 01:47:17 -08:00
Kubernetes Prow Robot
35f0507dca Merge pull request #111856 from mengjiao-liu/improve-podSpec.restartPpolicy-description
Improve spec.template.spec.restartPolicy description
2023-02-27 22:53:27 -08:00
Kubernetes Prow Robot
b9fd1802ba Merge pull request #102884 from vinaykul/restart-free-pod-vertical-scaling
In-place Pod Vertical Scaling feature
2023-02-27 22:53:15 -08:00
Kubernetes Prow Robot
36402f2833 Merge pull request #116039 from liggitt/crd-compat
Add CRD compatibility fixtures
2023-02-27 14:55:16 -08:00
Kubernetes Prow Robot
c5cd7a1db5 Merge pull request #116031 from ritazh/kmsv2_mockkms
kmsv2: add mock kms for reference implementation
2023-02-27 13:51:28 -08:00
Kubernetes Prow Robot
4a934ae821 Merge pull request #115996 from rayowang/autoscaling
Fix API field references for autoscaling v1, v2 and v2beta2
2023-02-27 13:51:16 -08:00
Jordan Liggitt
1c2fa0c7f7 Partition watchers by namespace/name scope 2023-02-27 20:38:11 +00:00
Jordan Liggitt
018475269b Update generated files 2023-02-27 14:16:02 -05:00
Jordan Liggitt
588884dd69 Add CRD compatibility objects 2023-02-27 14:12:59 -05:00
Jordan Liggitt
9997683ba2 Use custom-defined type generators for slice elements in compatibility objects 2023-02-27 14:12:59 -05:00
Jordan Liggitt
688f5babba Skip unmarshaled fields with generating compatibility fixtures 2023-02-27 14:12:58 -05:00
Jordan Liggitt
5f9a042284 Explicitly exclude unmarshaled fields for custom-marshaled types from standard JSON handling 2023-02-27 14:12:58 -05:00
Kubernetes Prow Robot
a16fd5467e Merge pull request #114925 from tkashem/watch-termination
apiserver: terminate watch with rate limiting during shutdown
2023-02-27 10:26:38 -08:00
Katrina Verey
0dd346673c Introduce CLI for ApplySet-based pruning (#115979)
* Introduce CLI for ApplySet-based pruning

* Address feedback from justinsb

* Fix parent namespace sourcing and restrict types. Increase test coverage.
2023-02-27 09:20:40 -08:00
Rita Zhang
6fd6657d47 kmsv2: add mock kms for reference implementation
Signed-off-by: Rita Zhang <rita.z.zhang@gmail.com>
2023-02-27 08:54:53 -08:00
Abu Kashem
791fcd6fb4 apiserver: make watch termination during shutdown configurable 2023-02-27 10:49:49 -05:00
Abu Kashem
6385b86a9b apiserver: terminate watch with a rate limiter during shutdown 2023-02-27 10:49:49 -05:00
Abu Kashem
697d967108 apiserver: watch gets notified on server shutdown signal 2023-02-27 10:49:30 -05:00
DingRui Yang
a50c9db09b Typo: fix EndpointsLeasesResourceLock ->ConfigMapsLeasesResourceLock
The comment on ConfigMapsLeasesResourceLock begins with the wrong name: EndpointsLeasesResourceLock.
2023-02-27 21:09:07 +08:00
Kubernetes Prow Robot
015e2fa20c Merge pull request #115953 from pohly/lint-gomega
test: fixing + linting gomega usage
2023-02-27 00:56:20 -08:00
Mengjiao Liu
81aefe5fee Improve spec.template.spec.restartPolicy description 2023-02-27 14:25:48 +08:00
Kubernetes Prow Robot
0e077bb7ac Merge pull request #116070 from aramase/aramase/f/kms-pkg/util
[KMS] move util from envelope to kms package
2023-02-26 19:52:18 -08:00
Rayowang
119c5f4512 update openapi-spec, generated proto and generated openapi 2023-02-27 10:08:02 +08:00
Rayowang
00c836b44a Fix API field references for autoscaling v1, v2 and v2beta2 2023-02-27 10:02:56 +08:00
Kubernetes Prow Robot
53b8170b97 Merge pull request #116055 from aramase/aramase/f/kubernetes#111923
[KMSv2] log request metadata as part of read/write
2023-02-26 17:02:17 -08:00