Commit Graph

125852 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
9a0b07d38c
Merge pull request #128051 from googs1025/kubectl/fix/resourcebuilder
bug(kubectl): return resource builder error in scale cmd
2024-10-14 15:16:20 +01:00
Abu Kashem
1d1a656d8d
refactor: extract decode functions into an interface for etcd3 store 2024-10-14 10:04:03 -04:00
Antonio Ojea
bceec5a3ff e2e flake CheckDaemonStatus assert on async value
The util for checking on daemonstatus was checking once if the Status of
the daemonset was reporting that all the desired Pods are scheduled and
ready.

However, the pattern used in the e2e test for this function was not
taking into consideration that the controller needs to propagate the Pod
status to the DeamonSet status, and was asserting on the condition only
once after waiting for all the Pods to be ready.

In order to avoid more churn code, change the CheckDaemonStatus
signature to the wait.Condition type and use it in a async poll loop on
the tests.
2024-10-14 13:30:03 +00:00
Kubernetes Prow Robot
de8f6b0db7
Merge pull request #128037 from dshebib/e2eNode_containerLifecycleContext
[e2e_node] Use shared context in regular container tests
2024-10-14 13:10:28 +01:00
Kubernetes Prow Robot
a454563a8d
Merge pull request #127812 from p0lyn0mial/upstream-decode-list-blueprint
client-go/rest/request: decodes initialEventsListBlueprint for watchlist requests
2024-10-14 13:10:21 +01:00
Sascha Grunert
e055a1f89a
CRI client: use default timeout for ImageFsInfo RPC
The RPC call usually does not take much time for containerd or CRI-O. We
now assume the default timeout is fine and therefore resolve the `TODO`.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2024-10-14 13:49:03 +02:00
Kubernetes Prow Robot
faf89fe5e9
Merge pull request #128000 from klueska/fix-resourceslice-filter
DRA: Update resourceslice controller filtering logic
2024-10-14 12:06:20 +01:00
googs1025
8d08480929 bug(kubectl): return resource builder error in scale cmd 2024-10-14 18:52:56 +08:00
Kubernetes Prow Robot
d003e4cd9f
Merge pull request #127923 from unvavo/add-test-tainttoleration-for-queueinghint
add integration test for tainttoleration in requeueing scenarios
2024-10-14 10:20:28 +01:00
Kubernetes Prow Robot
769695a218
Merge pull request #126776 from neolit123/1.31-improve-dry-run-logic
kubeadm: refactor the dry-run logic
2024-10-14 10:20:21 +01:00
Kubernetes Prow Robot
c5abe615eb
Merge pull request #128021 from toVersus/fix/flaky-restart-check
[Sidecar Containers] Check for restarts without being affected by container startup order
2024-10-14 07:56:21 +01:00
Lukasz Szaszkiewicz
7be192ae0b client-go/rest/request: decodes initialEventsListBlueprint for watchlist requests 2024-10-14 08:48:32 +02:00
Kubernetes Prow Robot
5b1a4caeda
Merge pull request #127881 from omerap12/drain-package-PollUntilContextTimeout
Update waitForDelete to use PollUntilContextTimeout
2024-10-14 06:18:20 +01:00
Sean Sullivan
a95c0c5499 Enable strict validation for ResourceQuotaConfiguration 2024-10-13 17:50:18 -07:00
Sean Sullivan
32b2eea50d EgressSelectorConfiguration now uses strict validation 2024-10-13 16:09:35 -07:00
Kubernetes Prow Robot
4dc7a48ac6
Merge pull request #128035 from alexanderstephan/export-reflector
Make getter names for reflector fields idiomatic
2024-10-13 23:04:20 +01:00
Alexander Stephan
fdabcb5141 Make getter names for reflector fields idiomatic 2024-10-13 20:53:25 +00:00
Patrick Ohly
fba2bcf2d2 prune-junit-xml: simplify failure message
In Go unit tests, the entire test output becomes the failure message because
`go test` doesn't track why a test fails. This can make the failure message
pretty large, in particular in integration tests.

We cannot identify the real failure either because Kubernetes has no convention
for how to format test failures. What we can do is recognize log output added
by klog.

prune-junit-xml now moves the full text to to the test output and only keep
those lines in the failure which are not from klog.

The klog output parsing might eventually get moved to
k8s.io/logtools/logparse. For now it is developed as a sub-package of
prune-junit-xml.
2024-10-13 09:37:50 +02:00
Kubernetes Prow Robot
468676cb2f
Merge pull request #127677 from jdtuhui/testifylint/formatter@security
fix: unnecessary fmt.Sprintf in assertions
2024-10-13 07:44:19 +01:00
Kubernetes Prow Robot
17d7f1b564
Merge pull request #128025 from bart0sh/PR159-Makefile-fix-escaping
Makefile: escape $ to prevent confusing output
2024-10-13 03:28:19 +01:00
Daniel Shebib
1618dbe695 Add context to tests 2024-10-12 21:23:29 -05:00
Kubernetes Prow Robot
e9f0ea6f86
Merge pull request #127920 from saschagrunert/mount-hostpath-docs
CRI: clarify `Mount.host_path` docs
2024-10-13 02:24:26 +01:00
Kubernetes Prow Robot
1bda3efdf4
Merge pull request #127754 from skitt/followup-module-verify
hack verify.sh: clean up "base"
2024-10-13 02:24:19 +01:00
Kevin Klues
cfd6037b03 DRA: Update resourceslice controller filtering logic
The logic has been updated to ensure that a controller started for
non-node-local resources filters out all resourceslices created for
node-local resources. Without this change, a single driver with both
node-local and non-node-local resources would end up in a constant
battle of creating and deleting node-local resource slices in the
controller it setup for its non-node-local resources. This change fixes
that.

Signed-off-by: Kevin Klues <kklues@nvidia.com>
2024-10-12 22:30:45 +02:00
Ed Bartosh
3c58cab7a0 Revert "fix bug in Makefile"
This reverts commit 9dc27e93fb.
2024-10-12 23:27:19 +03:00
Omer Aplatony
bba055067e Update waitForDelete to use PollUntilContextTimeout
Signed-off-by: Omer Aplatony <omerap12@gmail.com>
2024-10-12 21:42:17 +03:00
Kubernetes Prow Robot
426aa3d6ce
Merge pull request #127489 from pacoxu/feature/125234
feat: Added net.ipv4.tcp_rmem and net.ipv4.tcp_wmem into safe sysctl list
2024-10-12 08:46:20 +01:00
unvavo
2c254d3b25
add integration test for tainttoleration in requeueing scenarios 2024-10-12 15:23:55 +09:00
Tsubasa Nagasawa
04c6d9324e Check for restarts without being affected by container startup order
The test for checking container restarts in a Pod with restartable-init-1
and regular-1 is flaky. Right now, when we check if restartable-init-1 has
restarted, we see if it hasn’t written the "Started" log after regular-1 has
written its "Started" log.
But even though the startup sequence starts with restartable-init-1 and then
regular-1, there’s no guarantee they’ll finish starting up in that order.
Sometimes regular-1 finishes first and writes its "Started" log before restartable-init-1.

1. restartable-init-1 Starting
2. regular-1 Starting
3. regular-1 Started
4. restartable-init-1 Started

In this test, the startup order doesn’t really matter; all we need to check is
if restartable-init-1 restarted. So I changed the test to simply look for
more than one "Starting" log in restartable-init-1's logs.

There were other places that used the same helper function DoesntStartAfter,
so replaced those as well and deleted the helper function.
2024-10-12 15:17:47 +09:00
Kubernetes Prow Robot
4812ea8aa5
Merge pull request #125570 from sanchezl/test-additional-types
KEP-4222: Cover aggregator and apiextension types in unstructured roundtrip test.
2024-10-12 03:18:20 +01:00
Paco Xu
e9d999d5c2 add PSA testdata 1.32 2024-10-12 09:22:55 +08:00
Kubernetes Prow Robot
762a85e25d
Merge pull request #125923 from haircommander/cpuset-fix-restart
kubelet/cm: fix bug where kubelet restarts from missing cpuset cgroup
2024-10-12 00:12:20 +01:00
Sean Sullivan
553b2041e1 LeaderMigrationConfig now uses strict validation 2024-10-11 14:59:35 -07:00
Peter Hunt
b94c5387b8 e2e_node: use restart instead of start stop
Signed-off-by: Peter Hunt <pehunt@redhat.com>
2024-10-11 16:53:33 -04:00
Luis Sanchez
aaa7364f60 cover additional types in unstructured roundtrip test
Co-authored-by: Ben Luddy <bluddy@redhat.com>
2024-10-11 16:07:39 -04:00
Kubernetes Prow Robot
c45f3ab813
Merge pull request #127976 from chengjoey/fix/named-ports
fix eps named ports does not work in sidecar(initContainer with restartPolicy=Always)
2024-10-11 19:14:21 +01:00
Kubernetes Prow Robot
2f7df335ad
Merge pull request #127615 from macsko/add_node_add_event_benchmark_to_scheduler_perf
Add scheduler_perf test case for NodeAdd event handling
2024-10-11 18:10:19 +01:00
Francesco Romani
cc87438f2f e2e_node: add a test to verify the kubelet starts
with systemd cgroup driver and cpumanager none policy.

This was originally planned to be a correctness check for
https://issues.k8s.io/125923, but it was difficult to reproduce the bug,
so it's now a regression test against it.

Signed-off-by: Francesco Romani <fromani@redhat.com>
Signed-off-by: Peter Hunt <pehunt@redhat.com>
2024-10-11 11:29:16 -04:00
Peter Hunt
77d03e42cd kubelet/cm: move CPU reading from cm to cm/cpumanager
Authored-by: Francesco Romani <fromani@redhat.com>
Signed-off-by: Peter Hunt <pehunt@redhat.com>
2024-10-11 11:29:16 -04:00
Peter Hunt
c51195dbd0 kubelet/cm: fix bug where kubelet restarts from missing cpuset cgroup
on None cpumanager policy, cgroupv2, and systemd cgroup manager, kubelet
could get into a situation where it believes the cpuset cgroup was created
(by libcontainer in the cgroupfs) but systemd has deleted it, as it wasn't requested
to create it. This causes one unnecessary restart, as kubelet fails with

`failed to initialize top level QOS containers: root container [kubepods] doesn't exist.`

This only causes one restart because the kubelet skips recreating the cgroup
if it already exists, but it's still a bother and is fixed this way

Signed-off-by: Peter Hunt <pehunt@redhat.com>
2024-10-11 10:49:16 -04:00
Kubernetes Prow Robot
1b6c993cee
Merge pull request #127952 from macsko/allow_to_specify_feature_gates_on_workload_level_scheduler_perf
Allow to set feature gates on workload level in scheduler_perf
2024-10-11 15:28:19 +01:00
Kubernetes Prow Robot
8cbb11519c
Merge pull request #127998 from skitt/golang-x-oct-2024
October 2024 golang.org/x bump
2024-10-11 14:16:28 +01:00
Kubernetes Prow Robot
a0e146a4b0
Merge pull request #127988 from pohly/e2e-daemonset-health-check
e2e daemonset: stronger health check of DaemonSet status
2024-10-11 14:16:21 +01:00
Kubernetes Prow Robot
6e5e8f374e
Merge pull request #127985 from dims/update-moby-runc-dependencies-oct-10
Update moby/runc dependencies
2024-10-11 12:50:19 +01:00
joey
6bce72a794
fix eps named ports does not work in sidecar(initContainer with restartPolicy=Always)
Signed-off-by: joey <zchengjoey@gmail.com>
2024-10-11 17:53:17 +08:00
Maciej Skoczeń
e676d0e76a Allow to specify feature gates on workload level in scheduler_perf 2024-10-11 08:41:08 +00:00
Patrick Ohly
3ec84373c1 e2e daemonset: stronger health check of DaemonSet status
The error was only generated if both checks (generated pods and ready pods)
failed. This looks like a logic error, failing if either of those isn't
matching expectations seems better.
2024-10-11 10:36:36 +02:00
Maciej Skoczeń
6dbb5d84b3 Move integration tests perf utils to scheduler_perf package 2024-10-11 08:27:08 +00:00
Stephen Kitt
6c5a528727
October 2024 golang.org/x bump
Nothing major here, but nothing liable to cause pain to downstreams
either.

* https://github.com/golang/crypto/compare/v0.26.0...v0.28.0 (there’s
  a SHA3 fix there but it’s only relevant for 32-bit platforms)
* https://github.com/golang/net/compare/v0.28.0...v0.30.0 (mostly
  http2; route address parsing fix on Darwin)
* https://github.com/golang/oauth2/compare/v0.21.0...v0.23.0 (Google
  license fix)
* https://github.com/golang/sys/compare/v0.23.0...v0.26.0 (faster
  getrandom() on Linux through the vDSO; improved RISC-V support)
* https://github.com/golang/term/compare/v0.23.0...v0.25.0
* https://github.com/golang/time/compare/v0.3.0...v0.7.0 (0-limit
  handling fix in x/time/rate; Google license fix)
* https://github.com/golang/tools/compare/v0.24.0...v0.26.0

This doesn’t include golang.org/x/exp; that doesn’t have any relevant
changes. There’s an apidiff fix but we always pull in the latest
apidiff anyway.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2024-10-11 10:22:13 +02:00
Davanum Srinivas
521f2d106b
Update moby/runc dependencies
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2024-10-11 03:52:09 -04:00