Commit Graph

20744 Commits

Author SHA1 Message Date
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
Jefftree
cdcf49ea12 Fix 120758 - prevent cache Load on uninitialized spec 2023-09-25 12:46:43 -04:00
Patrick Ohly
0ba37e70b6 k8s.io/dynamic-resource-allocation: fix potential scheduling deadlock
When handling a PodSchedulingContext object, the code first checked for
unsuitable nodes and then tried to allocate if (and only if) the selected node
hadn't been found to be unsuitable.

If for whatever reason the selected node wasn't listed as potential node, then
scheduling got stuck because the allocation would fail and cause a return with
an error instead of updating the list of unsuitable nodes. This would be
retried with the same result.

To avoid this scenario, the selected node now also gets checked. This is better
than assuming a certain kube-scheduler behavior.

This problem occurred when experimenting with cluster autoscaling:

    spec:
      potentialNodes:
      - gke-cluster-pohly-pool-dra-69b88e1e-bz6c
      - gke-cluster-pohly-pool-dra-69b88e1e-fpvh
      selectedNode: gke-cluster-pohly-default-pool-c9f60a43-6kxh

Why the scheduler wrote a spec like this is unclear. This was with Kubernetes
1.27 and the code has been updated since then, so perhaps it's resolved.
2023-09-25 18:27:13 +02:00
Patrick Ohly
e5f25ccb62 k8s.io/dynamic-resource-allocation: fix compatibility with Kubernetes 1.27
Kubernetes 1.28 introduced generated resource claim names, with the actual name
recorded in the pod status. As part of that change, the helper library for DRA
drivers was updated to match that behavior. Since then, driver deployments were
either compatible with Kubernetes 1.27 when using
k8s.io/dynamic-resource-allocation 0.27 or Kubernetes 1.28 when using  0.28,
but never both.

This was okay because this is an alpha feature, but it makes testing of DRA
drivers harder (in particular because cloud providers have not all updated to
1.28 yet) and can be fixed fairly easily. Therefore adding support for 1.27 is
worthwhile and reasonable.
2023-09-25 17:25:59 +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
Lubomir I. Ivanov
5c80007ecc cluster-bootstrap: make randBytes() be in constant-time
The function generates bytes in the x={0-252} range and then
applies an y=(x mod 36) to obtain allowed token characters
from validBootstrapTokenChars[y].

Instead of using crypto/rand.Reader, use crypto/rand.Int()
that operates in the val={0-len(validBootstrapTokenChars))}.

Once a random index is generated, use simple operations
to obtain a random character in the a-z,0-9 character range.
This makes the character generation in constant-time.
2023-09-23 18:24:42 +03:00
Joseph Anttila Hall
1b602ffd9a Bump Konnectivity to 0.28.0 2023-09-22 13:10:24 -07:00
machine424
a96b97e40c storage/etcd3/metrics: add unit test for apiserver_storage_objects 2023-09-22 16:13:03 +02: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
b8kings0ga
9345da51ac fix comment mistake, run "make update" 2023-09-22 16:37:55 +08: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
Lukasz Szaszkiewicz
04668c0043 cache/reflector: check the value of the initial-events-end annotation 2023-09-19 12:59:23 +02:00
Madhav Jivrajani
5c28fd2847 vsphere: adapt to govmomi bump
Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
2023-09-19 14:11:05 +05:30
Lukasz Szaszkiewicz
4b60c18183 storage/etcd3/watcher_test: refactor TestWatchErrorWhenNoNewFunc to a table test 2023-09-19 10:35:09 +02:00
Lukasz Szaszkiewicz
91bb75883c storage/testing/watcher_tests: make TestCacherWatchSemantics storage agnostic 2023-09-19 08:50:27 +02:00
Kubernetes Prow Robot
f9f00da6bc Merge pull request #118761 from TommyStarK/gh_113831
move common logic of highestSupportedVersion to util package
2023-09-18 13:59:25 -07:00
TommyStarK
42356bfbb3 move common logic of highestSupportedVersion to util package
Signed-off-by: TommyStarK <thomasmilox@gmail.com>
2023-09-18 21:25:29 +02:00
Madhav Jivrajani
fc6b19a4ba .: bump govmomi to v0.30.6
Bumping govmomi to include an error check fix needed
to work with go1.20. We made this fix in the CI, but
were reliant on the text matching of error strings,
which is why it didn't catch the actual issue. This

Fix in b4eac19369
PR to bump govmomi in cloud-provider-vsphere: https://github.com/kubernetes/cloud-provider-vsphere/pull/738

Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
2023-09-18 22:15:49 +05:30
Kubernetes Prow Robot
9d6180559b Merge pull request #119099 from palnabarun/authz-config
[StructuredAuthorizationConfiguration] Implement API types and wire kube-apiserver to use them
2023-09-18 07:08:31 -07:00
Lukasz Szaszkiewicz
afbb1a6ef9 storage/testing/watcher_tests: move TestCacherWatchSemantics (no-op) 2023-09-18 15:28:14 +02:00
Lukasz Szaszkiewicz
3a96baf3fa storage/testing/utils: add helper functions 2023-09-18 15:28:10 +02:00
Kubernetes Prow Robot
10d487313d Merge pull request #120694 from aojea/ws_healthchec
add loging and bump timers to avoid races
2023-09-18 03:00:42 -07:00
Majid Garoosi
a919079ff3 Check --show-events in kubectl describe pvc (#120380)
* Check --show-events arg before fetching events

* Remove unnecessary else statement

* Add test for false show events
2023-09-18 01:20:30 -07:00
Nabarun Pal
52c582ca77 Bootstrap API Types for Structured Authorization Configuration
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2023-09-18 11:33:17 +05:30
Christoph Mewes
b59d4afd14 fix typo exeucting => executing 2023-09-17 11:27:57 +02:00
Christoph Mewes
62275e3cc8 fix typo dervied => derived 2023-09-17 11:26:19 +02:00
Christoph Mewes
79a7833ade fix typo Mininum => Minimum 2023-09-17 11:24:29 +02:00
Christoph Mewes
6e3ebdc68e fix typo Conext => Context 2023-09-17 11:18:43 +02:00
charles-chenzz
409b46576f bump github.com/emicklei/go-restful/v3 to v3.11.0. 2023-09-17 16:03:01 +08:00
Kubernetes Prow Robot
f551940626 Merge pull request #119526 from sttts/sttts-idiomatic-cached
kube-openapi/cached: bump and adapt to more go-idiomatic caching library
2023-09-15 14:08:12 -07:00
justinsb
10caecb3b2 kubectl prune v2: switch to contains-group-kinds annotation
The contains-group-resources was an implementation error, we specified
contains-group-kinds in the KEP.

Because it is in alpha, we simply switch to the new annotation.

We will recognize the old annotation and migrate existing alpha
applysets, but support for this migration can be removed in beta/GA of
applyset.
2023-09-15 11:23:20 -04:00