Commit Graph

5237 Commits

Author SHA1 Message Date
Michal Wozniak
fff9914158 Fix the flaky Job test: TestSuccessPolicy_ReEnabling 2025-02-10 14:42:33 +01:00
Yusuke Sakurai
5d278c138c fix labelvalues for scheduler-perf 2025-02-10 10:00:52 +09:00
Kubernetes Prow Robot
7b38ff48af Merge pull request #129993 from aramase/aramase/i/fix_129935
Fix service account node audience restriction for in-tree pv to csi migration
2025-02-06 14:39:55 -08:00
Anish Ramasekar
62809dd0de node audience restriction: use csi translator to convert intree inline_vol/pv to csi
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
2025-02-06 13:17:16 -06:00
Siyuan Zhang
8fc3a33454 Refactor compatibility version code
Replace DefaultComponentGlobalsRegistry with new instance of componentGlobalsRegistry in test api server.

Signed-off-by: Siyuan Zhang <sizhang@google.com>

move kube effective version validation out of component base.

Signed-off-by: Siyuan Zhang <sizhang@google.com>

move DefaultComponentGlobalsRegistry out of component base.

Signed-off-by: Siyuan Zhang <sizhang@google.com>

move ComponentGlobalsRegistry out of featuregate pkg.

Signed-off-by: Siyuan Zhang <sizhang@google.com>

remove usage of DefaultComponentGlobalsRegistry in test files.

Signed-off-by: Siyuan Zhang <sizhang@google.com>

change non-test DefaultKubeEffectiveVersion to use DefaultBuildEffectiveVersion.

Signed-off-by: Siyuan Zhang <sizhang@google.com>

Restore useDefaultBuildBinaryVersion in effective version.

Signed-off-by: Siyuan Zhang <sizhang@google.com>

rename DefaultKubeEffectiveVersion to DefaultKubeEffectiveVersionForTest.

Signed-off-by: Siyuan Zhang <sizhang@google.com>

pass options.ComponentGlobalsRegistry into config for controller manager and scheduler.

Signed-off-by: Siyuan Zhang <sizhang@google.com>

Pass apiserver effective version to DefaultResourceEncodingConfig.

Signed-off-by: Siyuan Zhang <sizhang@google.com>

change statusz registry to take effective version from the components.

Signed-off-by: Siyuan Zhang <sizhang@google.com>

Address review comments

Signed-off-by: Siyuan Zhang <sizhang@google.com>

update vendor

Signed-off-by: Siyuan Zhang <sizhang@google.com>
2025-02-05 16:10:53 -08:00
Kubernetes Prow Robot
22f25efc2c Merge pull request #128991 from Henrywu573/cm-statuz
Add statusz endpoint for kube-controller-manager
2025-02-05 15:54:15 -08:00
Henry(Qishan) Wu
8bd4e1bab2 Update test/integration/serving/serving_test.go
Co-authored-by: Antonio Ojea <antonio.ojea.garcia@gmail.com>
2025-02-05 09:48:08 -08:00
Kubernetes Prow Robot
c7489b20f2 Merge pull request #129750 from googs1025/scheduler/add_integration_for_queuesortplugin
feature: add scheduler queuesort plugins integration test
2025-02-05 03:08:17 -08:00
Kubernetes Prow Robot
fab0d76574 Merge pull request #129731 from gjkim42/promote-sidecar-containers-to-ga
Promote SidecarContainers feature to GA
2025-02-04 16:22:58 -08:00
Kubernetes Prow Robot
82e3a671e7 Merge pull request #129920 from googs1025/feature/integration_scoring
feature: Added score integration tests for missing part plugins: TaintToleration plugin
2025-02-03 08:46:57 -08:00
googs1025
5281152f07 feature: Added score integration tests for missing part plugins: TaintToleration plugin 2025-02-03 21:20:00 +08:00
Patrick Ohly
e2ff03486d scheduler_perf: add thresholds to DRA test cases
They were enabled yesterday and executed seven times, with results that (so
far) seem to be fairly stable with just one run that was slower across the
board.

The links in the YAML can be used to navigate to each test case quickly. The
thresholds were chose with a 20% security margin below what seems to be a
common result.
2025-02-03 13:10:10 +01:00
Gunju Kim
0bee0bcaa7 Promote SidecarContainers feature to GA 2025-02-02 17:45:36 +09:00
Michal Wozniak
0d5d714c2a Fix the remaining flaky integration tests in Job controller 2025-01-30 18:20:34 +01:00
Kubernetes Prow Robot
59f3aa1e34 Merge pull request #129894 from mimowo/fix-flaky-job-controller-test
Fix the flaky Job integration tests
2025-01-30 08:49:30 -08:00
Kubernetes Prow Robot
209538059e Merge pull request #129885 from macsko/default_topology_spreading_scheduler_perf_test_case
Add scheduler_perf test case for default PodTopologySpreading constraints
2025-01-30 05:05:32 -08:00
Kubernetes Prow Robot
0e7298d54d Merge pull request #129807 from pjsharath28/pass-context-to-tests
Pass context for Wait methods in integration test utils
2025-01-30 05:05:25 -08:00
Kubernetes Prow Robot
07cc2308c6 Merge pull request #128836 from pohly/dra-scheduler-perf-enablement
DRA: enable performance tracking with scheduler_perf
2025-01-30 03:07:23 -08:00
Maciej Skoczeń
274ad0391f Add scheduler_perf test case for default PodTopologySpreading constraints 2025-01-30 08:55:24 +00:00
Michal Wozniak
8f11a3b367 WIP: fix the flaky Job integration tests 2025-01-29 20:23:50 +01:00
googs1025
8c80d384b2 feature: add scheduler queuesort plugins integration test 2025-01-29 08:54:43 +08:00
Maciej Szulik
509bbed098 Add a test ensuring all /scale sub-resources return table
Signed-off-by: Maciej Szulik <soltysh@gmail.com>
2025-01-28 16:54:02 +01:00
Sharath P J
44ca3b3654 Passed context for Wait methods in integration test utils 2025-01-27 09:48:36 +05:30
Antonio Ojea
d3e8572d70 cluster ip allocator should check first on the legacy allocators
Kubernetes clusters allow to define an IPv6 range of /108 for IPv6
despite the old allocators will only use the first /112 of that range.

The new allocators does not have this limitation, so they can allocate
IPs on the whole space, the problem happens on upgrades from clusters
that were already using this size, since the new allocators by default
will try to allocate addresses that works for both new and old allocatos
to allow safe upgrades.

The new allocators, when configured to keep compatibility with the old
allocators, must try first to allocate an IP that is compatible with the
old allocators and only fall back to the new behavior if it is not
possible.
2025-01-24 15:48:52 +00:00
Sharath P J
627e83c841 Passed context for Wait methods in integration test utils 2025-01-24 19:48:23 +05:30
Filip Křepinský
e263b878ee Deployment controller should count terminating pods in the status 2025-01-23 22:37:05 +01:00
Filip Křepinský
dc1914c61c ReplicaSet controller should count terminating pods in the status 2025-01-23 22:26:34 +01:00
dom4ha
f150016fbe feature: Make Unschedulable scheduler performance test parametrized with the number of initial nodes. 2025-01-23 00:48:02 +00:00
Kubernetes Prow Robot
a444a5bfed Merge pull request #129732 from dims/switch-to-v2.6.3-of-gopkg.in/go-jose/go-jose.v2
Switch to gopkg.in/go-jose/go-jose.v2 @ v2.6.3 and github.com/coreos/go-oidc @ v2.3.0
2025-01-22 13:40:38 -08:00
Davanum Srinivas
c9e81cd84c Switch to gopkg.in/go-jose/go-jose.v2 @ v2.6.3
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-01-21 09:21:27 -05:00
Antonio Ojea
09c82fc58a integration etcd storage test 2025-01-20 13:26:49 +00:00
Antonio Ojea
779b9cf90c update integration test 2025-01-20 13:01:53 +00:00
utam0k
e1fdced21f Put the target plugin names in the Qhint integration test cases
Signed-off-by: utam0k <k0ma@utam0k.jp>
2025-01-19 21:55:11 +09:00
Jefftree
936f249fa0 Add introduced and removed version information in etcd fixtures 2025-01-14 21:30:57 +00:00
Jordan Liggitt
59850b5823 Promote ServiceAccountTokenNodeBinding to GA 2025-01-14 09:48:35 -05:00
Kubernetes Prow Robot
d8d3691280 Merge pull request #129360 from utam0k/scheduler-profile-test-enqueue
Make it possible to pass a scheduler profile to RuntTestCoreResourceEnqueue
2024-12-31 15:00:13 +01:00
utam0k
5aa4dd4a6e Make it possible to pass a scheduler profile to RuntTestCoreResourceEnqueue
Signed-off-by: utam0k <k0ma@utam0k.jp>
2024-12-31 21:47:06 +09:00
Jefftree
59fcd7b770 fix metrics test 2024-12-20 19:07:54 +00:00
Jefftree
6c94adcc63 expand etcd storage tests to test for 1.31..1.33 2024-12-20 19:07:54 +00:00
Jefftree
dc476e968d remove emulated version test for un-emulatable 1.30 2024-12-20 19:07:54 +00:00
Kubernetes Prow Robot
438bc5d44e Merge pull request #128818 from yongruilin/flagz-kube-scheduler
feat: Add flagz endpoint for kube-scheduler
2024-12-20 20:02:08 +01:00
yongruilin
db6bf02217 feat: Add flagz endpoint for kube-scheduler 2024-12-19 19:52:46 -08:00
Kubernetes Prow Robot
e305c33988 Merge pull request #126387 from pohly/log-client-go-tools-cache-apis
client-go/tools/cache: add APIs with context parameter
2024-12-18 20:00:09 +01:00
Patrick Ohly
4638ba9716 client-go/tools/cache: add APIs with context parameter
The context is used for cancellation and to support contextual logging.

In most cases, alternative *WithContext APIs get added, except for
NewIntegerResourceVersionMutationCache where code searches indicate that the
API is not used downstream.

An API break around SharedInformer couldn't be avoided because the
alternative (keeping the interface unchanged and adding a second one with
the new method) would have been worse. controller-runtime needs to be updated
because it implements that interface in a test package. Downstream consumers of
controller-runtime will work unless they use those test package.

Converting Kubernetes to use the other new alternatives will follow. In the
meantime, usage of the new alternatives cannot be enforced via logcheck
yet (see https://github.com/kubernetes/kubernetes/issues/126379 for the
process).

Passing context through and checking it for cancellation is tricky for event
handlers. A better approach is to map the context cancellation to the normal
removal of an event handler via a helper goroutine. Thanks to the new
HandleErrorWithLogr and HandleCrashWithLogr, remembering the logger is
sufficient for handling problems at runtime.
2024-12-18 18:45:02 +01:00
Kubernetes Prow Robot
5cfad4f858 Merge pull request #128404 from mowangdk/test/add_integrate_test_of_node_OOS
Add non graceful shutdown integration test
2024-12-18 16:36:09 +01:00
Kubernetes Prow Robot
41ea061d2b Merge pull request #128705 from aramase/aramase/c/node_int_test_todo_cleanup
cleanup todo comment in node restriction integration tests
2024-12-18 00:40:52 +01:00
Kubernetes Prow Robot
cc03c6058b Merge pull request #129207 from Jefftree/remove-vap-alpha
Remove v1alpha1 admissionregistration APIs (ValidatingAdmissionPolicies & ValidatingAdmissionPolicyBindings)
2024-12-17 18:52:59 +01:00
Kubernetes Prow Robot
58aafb61d4 Merge pull request #129186 from liggitt/cleanup-authorization
Clean up v1alpha1 serving for authentication APIs
2024-12-17 18:52:52 +01:00
Jefftree
3cd1c8dd2d Drop v1alpha1 VAP in CEL tests 2024-12-13 18:35:17 +00:00
Jordan Liggitt
161a817812 Clean up v1alpha1 serving for authorization API 2024-12-13 08:37:57 -05:00