Commit Graph

19493 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
6f5fa2eb2f Merge pull request #120985 from palnabarun/3221/fix-authorizer-name
[StructuredAuthorizationConfiguration] Fix the level at which authorizer name is surfaced
2023-10-04 15:45:29 +02:00
Kubernetes Prow Robot
f936f69cf9 Merge pull request #120729 from pohly/events-context
k8s.io/client-go/tools/[events|record]: support context
2023-10-04 15:45:16 +02:00
Kubernetes Prow Robot
56f330493c Merge pull request #120822 from akhilerm/change-from-deprecated-fields
update rules to switch from deprecated dir field
2023-10-04 14:00:38 +02:00
Kubernetes Prow Robot
c9bd841cdf Merge pull request #120984 from p0lyn0mial/upstream-reflector-always-fallback-to-listwatch
reflector: fallback to the previous mode on any error
2023-10-04 12:03:07 +02:00
Lukasz Szaszkiewicz
4b39150179 reflector: fallback to the previous mode on any error
originally we honored only apierrors.IsInvalid
but decided to fallback on every error
because it is better to make progress than deadlocking
2023-10-04 10:10:26 +02:00
Nabarun Pal
11ce6d2915 k8s.io/apiserver: fix levelling of the name field in AuthorizationConfiguration
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2023-10-04 10:33:58 +05:30
Kubernetes Prow Robot
3c94af73e1 Merge pull request #118299 from rexagod/kep-2305
KEP-2305: introduce allow-metric-labels-manifest
2023-10-04 03:03:07 +02:00
Kubernetes Prow Robot
fe84992651 Merge pull request #120542 from alvaroaleman/condition-change
Apimeta Set/RemoveStatusCondition: Indicate change
2023-10-03 20:20:21 +02:00
Lukasz Szaszkiewicz
26f113be2f reflector: close an established watcher when the StopCh was closed 2023-10-03 13:49:21 +02:00
Kubernetes Prow Robot
6a84edb2ce Merge pull request #120222 from tkashem/apf-queue-wait-ctx
apf: manage request queue wait with context in APF Filter
2023-10-03 11:16:18 +02:00
Kubernetes Prow Robot
0b63390add Merge pull request #119303 from abidmunirmalik/kubectl_doc_fix
fixes the issue in the documentation of kubectl events
2023-10-01 09:50:44 -07:00
Kubernetes Prow Robot
622509830c Merge pull request #120716 from xrstf/fix-typos
Fix typos
2023-09-30 00:25:56 -07:00
Kubernetes Prow Robot
46728a8fa2 Merge pull request #120896 from aramase/aramase/f/kmsv2_pkcs11
[KMSv2] pkcs11 reference implementation using SoftHSM
2023-09-29 12:11:56 -07:00
Anish Ramasekar
d2a3184c47 remove pkg/encrypt and pkg/value in kms
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
2023-09-29 16:57:32 +00:00
Anish Ramasekar
e764e83fe8 remove mock aes, latency and ratelimit wrapper remote services
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
2023-09-29 16:57:32 +00:00
Anish Ramasekar
2f5708833a [KMSv2] pkcs11 reference implementation using SoftHSM
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
2023-09-29 16:57:26 +00:00
Kubernetes Prow Robot
46dea3015f Merge pull request #120050 from DamianSawicki/some-tests
Add tests for extract tag functions in prereleaselifecyclegenerators
2023-09-29 09:10:43 -07:00
Kubernetes Prow Robot
bf1fa0c669 Merge pull request #119865 from charles-chenzz/bump_deps
bump github.com/emicklei/go-restful/v3 to v3.11.0
2023-09-28 06:42:34 -07:00
Kubernetes Prow Robot
1020678366 Merge pull request #120908 from sttts/sttts-optional-authz
controlplane/apiserver: don't crash if authz or other options are explicitly disabled in options
2023-09-27 07:36:25 -07:00
Kubernetes Prow Robot
bdedc21fd9 Merge pull request #120490 from p0lyn0mial/upstream-watch-list-cache-metrics
collect watch-list requests latency metric
2023-09-27 07:36:12 -07:00
Dr. Stefan Schimanski
6395049176 controlplane: make option structs uniformly optional
Signed-off-by: Dr. Stefan Schimanski <stefan.schimanski@gmail.com>
2023-09-27 11:22:37 +02:00
Lukasz Szaszkiewicz
a97f4b7a31 endpoints/metrics: define watchListLatencies metric and associated functions 2023-09-27 09:29:19 +02:00
Patrick Ohly
5dc540ff57 k8s.io/client-go/tools/events: pass context into EventSink methods
Because the EventBroadcaster code now has a a context, changing the EventSink
interface so that the methods accepts a context instead of using context.TODO
becomes possible.
2023-09-27 09:06:12 +02:00
Patrick Ohly
27a68aee3a k8s.io/client-go/tools: support context for event recording
Using StartRecordingToSinkWithContext instead of StartRecordingToSink and
StartLogging instead of StartStructuredLogging has several advantages:

- Spawned goroutines no longer get stuck for extended periods of
  time during shutdown when passing in a context that gets canceled.
- Log output can be directed towards a specific logger instead of the global
  default, for example one which writes to a testing.T instance.
- The new methods return an error when something went wrong instead of
  merely recording the error.

That last point is the reason for deprecating the old methods instead of merely
adding new alternatives.

Setting a context when constructing an EventBroadcaster makes calling Shutdown
optional. It can also be used to specify the logger.

Both EventRecorder interfaces in tools/events and tools/record now have a
WithLogger helper. Using that method is optional, but recommended to support
contextual logging properly. Without it, errors that occur while emitting an
event are not associated with the caller.
2023-09-27 09:06:09 +02:00
Lukasz Szaszkiewicz
772b1f4cd8 handlers/watch: calculate and record WatchList latency metric. 2023-09-27 09:03:52 +02:00
Kubernetes Prow Robot
139fa69620 Merge pull request #120877 from soltysh/unbound_variable
Default clientset_pkg and clientset_name variables
2023-09-26 12:05:09 -07:00
Kubernetes Prow Robot
e602e9e03c Merge pull request #120865 from aojea/remotecmd_flake
deflake TestWebSocketClient_HeartbeatSucceeds
2023-09-26 06:50:14 -07:00
Abu Kashem
6297067ff1 apf: request ejected from queue should use reason 'time-out' 2023-09-26 08:55:23 -04:00
Abu Kashem
11ef9514da apf: remove RequestWaitLimit from queueset config 2023-09-26 08:55:23 -04:00
Abu Kashem
da8a472206 apf: remove timeoutOldRequestsAndRejectOrEnqueueLocked function 2023-09-26 08:55:22 -04:00
Abu Kashem
f39213a7e4 apf: use context for queue wait 2023-09-26 08:55:13 -04:00
Maciej Szulik
9b32d2f67d Default clientset_pkg and clientset_name variables 2023-09-26 11:39:03 +02:00
Lukasz Szaszkiewicz
70ae9c441c storage/util: introduce HasInitialEventsEndBookmarkAnnotation 2023-09-25 15:41:14 +02:00
Kubernetes Prow Robot
fcfc2d05a4 Merge pull request #119557 from p0lyn0mial/upstream-watch-list-etcd-store
Add support for API streaming to the etcd store implementation
2023-09-25 04:32:58 -07:00
Antonio Ojea
4a74958b2d deflake TestWebSocketClient_HeartbeatSucceeds
Change-Id: I1f3331255ed81183b25ec24084c00d0cf7dfb510
2023-09-25 10:31:46 +00:00
Lukasz Szaszkiewicz
ca562fd280 storage/etcd: the watcher supports the API streaming 2023-09-25 12:26:38 +02:00
Joseph Anttila Hall
1b602ffd9a Bump Konnectivity to 0.28.0 2023-09-22 13:10:24 -07:00
Kubernetes Prow Robot
7a941176a7 Merge pull request #120807 from p0lyn0mial/upstream-extend-generic-watch-semantic-tests
Extend RunWatchSemantics test by a new flavour and fill the gap
2023-09-22 06:16:49 -07:00
Lukasz Szaszkiewicz
0e238c4c28 storage/testing/watcher_tests: add new flavour to RunWatchSemantics test and fill the gap
the new flavour proves that a storage layer follows RV
which is equal to the global rv
2023-09-22 13:02:22 +02:00
Akhil Mohan
45a776d5ff update rules to switch from deprecated dir field
dir field has been deprecated in favour of dirs field, so that
multiple directories can be specified in the rules in future
when publishing-bot moves from filter-branch to filter-repo

Signed-off-by: Akhil Mohan <makhil@vmware.com>
2023-09-22 11:38:53 +05:30
Alvaro Aleman
5d56f7cf86 Apimeta Set/RemoveStatusCondition: Indicate change
The SetStatusCondition and RemoveStatusCondition currently do not
indicate if they changed anything. In most cases that information is
necessary to determine if an Update of the object is needed. This change
adds a boolean return to them that indicate if they changed anything.

As the two functions had no return at all prior to this, this shouldn't
break anything.
2023-09-21 21:13:33 -04:00
Kubernetes Prow Robot
1e862b0fec Merge pull request #120388 from HirazawaUi/add-group-to-apiserver-tracing
Add group, version, namespace, name, and subresource to apiserver tracing
2023-09-21 13:07:10 -07:00
Kubernetes Prow Robot
cde6a46a48 Merge pull request #120799 from aojea/workqueue_test
workqueue unit tests to assert collapsing behaviors
2023-09-21 08:44:27 -07:00
Antonio Ojea
8a31bb6786 workqueue unit tests to assert collapsing behaviors
Change-Id: If4bf54c3af603c17de49055960f9a76e7d38aab3
2023-09-21 11:13:33 +00:00
Lukasz Szaszkiewicz
dc5cfe3cff storage/testing/watcher_tests: refactor RunWatchSemantics tests 2023-09-21 12:16:16 +02:00
Kubernetes Prow Robot
fd5f36e6a0 Merge pull request #120175 from kannon92/move-pod-failure-policy-constant
move reasons to api package for job controller
2023-09-20 03:06:00 -07:00
Kubernetes Prow Robot
09200e9c92 Merge pull request #120752 from p0lyn0mial/upstream-client-go-initial-events-value
cache/reflector: check the value of the initial-events-end annotation
2023-09-19 21:40:17 -07:00
Kubernetes Prow Robot
b28622c3e6 Merge pull request #120736 from MadhavJivrajani/bump-govmomi
.: bump govmomi to v0.30.6
2023-09-19 21:40:10 -07:00
Kevin Hannon
a62eb45ae2 Rename job reasons to JobReasons as part of api review 2023-09-19 13:10:22 -04:00
Kubernetes Prow Robot
408e45a66a Merge pull request #120695 from p0lyn0mial/upstream-move-watch-semantic-tests
storage/testing: make WatchSemantics tests storage agnostic
2023-09-19 05:23:07 -07:00