Commit Graph

134650 Commits

Author SHA1 Message Date
Dan Winship
f278b47ecd Drop TopologyAwareHints and ServiceTraficDistribution feature gates 2026-01-09 12:42:34 -05:00
Kubernetes Prow Robot
26fd963327 Merge pull request #135664 from pohly/dra-upgrade-downgrade-refactor
DRA e2e: upgrade/downgrade refactor
2026-01-08 19:31:47 +05:30
Anson Qian
a816a7b1d8 Make ConcurrentResourceClaimSyncs configurable (#134701)
* DRA resource claim controller: configurable number of workers

It might never be necessary to change the default, but it is hard to be sure.
It's better to have the option, just in case.

* generate files

* resourceclaimcontroller: normalize validation error message

* Update cmd/kube-controller-manager/app/options/resourceclaimcontroller.go

Co-authored-by: Jordan Liggitt <jordan@liggitt.net>

---------

Co-authored-by: Patrick Ohly <patrick.ohly@intel.com>
Co-authored-by: Jordan Liggitt <jordan@liggitt.net>
2026-01-08 19:31:39 +05:30
Kubernetes Prow Robot
c4881eae3b Merge pull request #136100 from soltysh/remove_dead_api
Remove dead api
2026-01-08 18:39:47 +05:30
Kubernetes Prow Robot
c9994c5f82 Merge pull request #135234 from atiratree/renameScaleReplicaSetAndRecordEvent
rename scaleReplicaSetAndRecordEvent to scaleReplicaSetWithLazyAnnotationUpdate
2026-01-08 18:39:40 +05:30
Kubernetes Prow Robot
7e8e8a71be Merge pull request #135986 from scaliby/simplify-describe-lookups
Refactor describe to inline client calls
2026-01-08 17:19:53 +05:30
Kubernetes Prow Robot
3fb97a0c8b Merge pull request #135888 from scaliby/deduplicate-client-creation
Deduplicate client creation in describe tests
2026-01-08 17:19:46 +05:30
Kubernetes Prow Robot
5fbb132d69 Merge pull request #135625 from atiratree/quotamonitor-race
mark QuotaMonitor as not running and invalidate monitors list
2026-01-08 17:19:38 +05:30
Maciej Szulik
cfe5cb2e03 Drop describers for batch/v1beta1 CronJob and extensions/v1beta1 Ingress resources
Signed-off-by: Maciej Szulik <soltysh@gmail.com>
2026-01-08 11:54:54 +01:00
Maciej Szulik
699197d7da Use latest API for column definitions in printers
Signed-off-by: Maciej Szulik <soltysh@gmail.com>
2026-01-08 11:54:28 +01:00
Kubernetes Prow Robot
97bd924010 Merge pull request #134162 from zeqian-meng/update-npb-ep-image
Upgrade Debian and NPB for npb-ep e2e test
2026-01-08 13:21:38 +05:30
Kubernetes Prow Robot
ca1f339c3e Merge pull request #136060 from tallclair/config-mux
Clean up Pod config sources: remove dead code
2026-01-08 07:05:39 +05:30
Tim Allclair
99f08f0091 Remove unused SET config update type. 2026-01-07 16:46:01 -08:00
Tim Allclair
fca9563853 Remove unused config.Sync function. 2026-01-07 16:46:01 -08:00
Kubernetes Prow Robot
8e4ba87939 Merge pull request #135689 from KasimVali2207/add-probe-stress-tests
Add stress tests for gRPC, HTTP, and TCP liveness probesAdd probe stress tests
2026-01-08 04:57:45 +05:30
Kubernetes Prow Robot
3619b0c8aa Merge pull request #135189 from haircommander/proc-e2e-node
e2e_node: update proc mount test to correctly handle baseline PSA
2026-01-08 04:57:37 +05:30
Kubernetes Prow Robot
7e7267a6df Merge pull request #136046 from Tanner-Gladson/issue-136027-error-verbosity
fix(controller/storageversionmigrator) Reduce log level
2026-01-08 04:03:50 +05:30
Kubernetes Prow Robot
8ab1bc1633 Merge pull request #135725 from bart0sh/PR211-add-extended-resources-test-cases
Fix extended resource handling for DRA-backed resources on pod admission
2026-01-08 04:03:42 +05:30
Kubernetes Prow Robot
817f68f75f Merge pull request #135377 from harche/dra_flake_test
Fix race condition in DRA health e2e test pod status update
2026-01-08 03:01:46 +05:30
Kubernetes Prow Robot
df9a0bda18 Merge pull request #133797 from tico88612/cleanup/new-fake-with-options
Replace apimachinery/pkg/watch.NewFake with NewFakeWithOptions in pkg/controller
2026-01-08 03:01:38 +05:30
Peter Hunt
da695e7b78 e2e_node: update proc mount test to correctly handle baseline PSA
Signed-off-by: Peter Hunt <pehunt@redhat.com>
2026-01-07 15:59:26 -05:00
Kubernetes Prow Robot
0988d3fd05 Merge pull request #136034 from lalitc375/dv-hpa-min-max
Add ignoreConversionErrors option to validation testing
2026-01-08 01:03:51 +05:30
Kubernetes Prow Robot
210c838eaf Merge pull request #135997 from ngopalak-redhat/ngopalak/fix_imagegc
Add negative validation for imageMinimumGCAge
2026-01-08 01:03:43 +05:30
Kubernetes Prow Robot
5aae66e736 Merge pull request #136073 from liggitt/fix-timeout-flake
Fix context timeout test flake
2026-01-07 22:33:48 +05:30
Kubernetes Prow Robot
2eb312a14f Merge pull request #136066 from serathius/watchcache-cleanup-watch-without-rv
Cleanup WatchFromStorageWithoutResourceVersion feature gate
2026-01-07 22:33:41 +05:30
Kubernetes Prow Robot
0f4705e12e Merge pull request #136068 from aojea/leader_race_time
fix leader election data race reading observedtime
2026-01-07 21:29:47 +05:30
Kubernetes Prow Robot
5750f54036 Merge pull request #136067 from dims/update-sig-architecture-email
chore: update sig-architecture mailing list email
2026-01-07 21:29:40 +05:30
Jordan Liggitt
5bba728bb8 Fix context timeout test flake 2026-01-07 09:47:47 -05:00
Kubernetes Prow Robot
18663b347e Merge pull request #135983 from Goend/master
Fix the issue of slow creation of ResourceClaim in specific scenarios
2026-01-07 20:05:46 +05:30
Kubernetes Prow Robot
4e69edd0ee Merge pull request #135392 from brejman/issue-134393-nominated-nodes
Fix queue hint for plugins on change to pods with nominated nodes
2026-01-07 20:05:38 +05:30
Antonio Ojea
d5ac0e408a leaderelection RWlock
We need to lock on observedTime reads to avoid races, before we were
only locking to read the observed record.

Use a RW lock since there are much more reads that writes.
2026-01-07 14:19:32 +00:00
Kubernetes Prow Robot
fe36b79c2a Merge pull request #135959 from pohly/client-go-testing-list-and-watch-race
client-go testing: support List+Watch with ResourceVersion
2026-01-07 19:01:45 +05:30
Kubernetes Prow Robot
08ad958d0d Merge pull request #135774 from pohly/e2e-framework-ginkgo-wrappers
E2E framework: make usage of Ginkgo wrappers optional
2026-01-07 19:01:38 +05:30
Davanum Srinivas
bebefd8382 chore: update sig-architecture mailing list email
Update the mailing list for SIG Architecture to the new kubernetes.io Google Group:
- New: https://groups.google.com/a/kubernetes.io/g/sig-architecture/
- Old archive still available: https://groups.google.com/g/kubernetes-sig-architecture/

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2026-01-07 09:19:09 -04:00
Patrick Ohly
4e6cf3ca0c ktesting: shorter error logging in WithError
Gomega formats errors by first showing Error() (already has all information
after WithError) and then again by dumping the error struct, which is redundant
in this case. We can avoid the latter by providing a GomegaString
implementation which returns nothing.
2026-01-07 14:11:33 +01:00
Patrick Ohly
01765f4a41 ktesting: more flexible Eventually/Consistently
Being able to call arbitrary functions is useful, even if it means giving up
some compile-time checking. Because we now use reflection,
Eventually/Consistently can be methods.
2026-01-07 14:11:33 +01:00
Patrick Ohly
c47ad64820 DRA e2e+integration: test ResourceSlice controller
The "create 100 slices" E2E sometimes flaked with timeouts (e.g. 95 out of 100
slices created). It created too much load for an E2E test.

The same test now uses ktesting as API, which makes it possible to run it as
integration test with the original 100 slices and with more moderate 10 slices
as E2E test.
2026-01-07 14:11:33 +01:00
Patrick Ohly
047682908d ktesting: replace Begin/End with TContext.Step
Manually pairing Being with End is too error prone to be useful. It had the
advantage of keeping variables created between them visible to the following
code, but that doesn't justify using those calls.

By using a callback we can achieve a few things:

- Code using it automatically shadows the parent tCtx, thus enforcing
  that within a code block the tCtx with step is used consistently.
- The code block is clearly delineated with curly braces.
- When the code block ends, the unmodified parent tCtx is automatically
  in scope again.

Downsides:

- Extra boilerplate for the anonymous function.
  Python's `with tCtx.Step(...) as tCtx: ` would be nicer.
  As an approximation of that `for tCtx := range tCtx.Step(...)` was
  tried with `Step` returning an iterator, but that wasn't very idiomatic.
- Variables created inside the code block are not visible outside of it.
2026-01-07 14:11:33 +01:00
Patrick Ohly
d17aaf5e29 e2e: suppress or ignore init log output
klog calls during init are becoming a problem because now test/e2e/framework
depends in test/utils/ktesting which bumps up the default verbosity during init
to make test output more complete when there is no argument parsing.

For cadvisor, an upstream fix is
needed (https://github.com/google/cadvisor/pull/3778). For kubectl we can make
it silently accept the valid (!) LC_ALL=C.
2026-01-07 14:11:33 +01:00
Patrick Ohly
de47714879 DRA upgrade/downgrade: rewrite as Go unit test
tCtx.Run and sub-tests make it much simpler to separate the different steps
than with Ginkgo because unless a test runs tCtx.Parallel (which we don't do
here), everything runs sequentially in a deterministic order.

Right now we get:

    ...
        localupcluster.go:285: I1210 12:24:22.067524] bring up v1.34: stopping kubelet
        localupcluster.go:285: I1210 12:24:22.067548] bring up v1.34: stopping kube-scheduler
        localupcluster.go:285: I1210 12:24:22.067570] bring up v1.34: stopping kube-controller-manager
        localupcluster.go:285: I1210 12:24:22.067589] bring up v1.34: stopping kube-apiserver
    --- PASS: TestUpgradeDowngrade (94.78s)
        --- PASS: TestUpgradeDowngrade/after-cluster-creation (2.07s)
            --- PASS: TestUpgradeDowngrade/after-cluster-creation/core_DRA (2.05s)
            --- PASS: TestUpgradeDowngrade/after-cluster-creation/ResourceClaim_device_status (0.02s)
        --- PASS: TestUpgradeDowngrade/after-cluster-upgrade (4.10s)
            --- PASS: TestUpgradeDowngrade/after-cluster-upgrade/core_DRA (4.09s)
            --- PASS: TestUpgradeDowngrade/after-cluster-upgrade/ResourceClaim_device_status (0.01s)
        --- PASS: TestUpgradeDowngrade/after-cluster-downgrade (1.24s)
            --- PASS: TestUpgradeDowngrade/after-cluster-downgrade/core_DRA (1.21s)
            --- PASS: TestUpgradeDowngrade/after-cluster-downgrade/ResourceClaim_device_status (0.02s)
    PASS

It's even possible to use `-failfast` and
e.g. `-run=TestUpgradeDowngrade/after-cluster-creation/core_DRA`: `go test` then
runs everything up to that sub-test or any failing sub-test, then stops and
cleans up.
2026-01-07 14:11:33 +01:00
Patrick Ohly
7c7b1e1018 DRA e2e: make driver deployment possible in Go unit tests
This leverages ktesting as wrapper around Ginkgo and testing.T to make all
helper code that is needed to deploy a DRA driver available to Go unit
tests and thus integration tests.

How to proceed with unifying helper code for integration and E2E testing is
open. This is just a minimal first step in that direction. Ideally, such
code should be in separate packages where usage of Ginkgo, e2e/framework
and gomega.Expect/Eventually/Consistently are forbidden.

While at it, the builder gets extended to make cleanup optional.
This will be needed for upgrade/downgrade testing with sub-tests.
2026-01-07 14:11:33 +01:00
Marek Siarkowicz
fd2083450a Cleanup WatchFromStorageWithoutResourceVersion feature gate 2026-01-07 13:57:11 +01:00
Kubernetes Prow Robot
21f7c3ff68 Merge pull request #135777 from serathius/init-hook-default
Enable WatchCacheInitializationPostStartHook by default
2026-01-07 17:31:46 +05:30
Kubernetes Prow Robot
ed17ca808f Merge pull request #132145 from inkel/inkel/client-go/improve-bearerauthrt-roundtrip-perf
fix(client): Concatenate string instead of using `fmt.Sprintf`
2026-01-07 17:31:38 +05:30
Patrick Ohly
e4ab523161 E2E framework: make usage of Ginkgo wrappers optional
Previously it was necessary to use the Ginkgo wrappers when
using any of the custom arguments like WithSlow(). Now the
hook within Ginkgo for modifying arguments is used such that
e.g. the original ginkgo.It also works.
2026-01-07 12:05:43 +01:00
Patrick Ohly
47d02070ba E2E: remove unnecessary trailing spaces in test names
The spaces are unnecessary because Ginkgo adds spaces automatically.

This was detected before only for tests using the wrapper functions,
now it also gets detected for ginkgo methods.
2026-01-07 12:05:43 +01:00
Kubernetes Prow Robot
37f7634ee3 Merge pull request #135961 from serathius/watchcache-testing-dummy
Move dummy testing to subpackage
2026-01-07 16:29:39 +05:30
Marek Siarkowicz
f42b1db39a Move dummy testing to subpackage
Change-Id: I52863cf256fc52b863c182932eb9520f3626adc3
2026-01-07 11:10:42 +01:00
Tanner
bb8b4b0d80 Correct the usage of vlog's .Error() or .V().Info() methods 2026-01-06 20:31:04 -05:00
Neeraj Krishna Gopalakrishna
92129d36bf Add negative validation for imageMinimumGCAge 2026-01-07 06:56:14 +05:30