Commit Graph

128320 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
88d2355c41
Merge pull request #129951 from parkjeongryul/add-e2e-topology-manager-for-init-ctn
Add e2e test for topology manager with restartable init containers
2025-02-28 04:38:23 -08:00
Kubernetes Prow Robot
803e9d6495
Merge pull request #130355 from yongruilin/validation_origin
validation: Add Origin field to field.Error for more precise error tracking
2025-02-28 00:04:23 -08:00
yongruilin
c7cf852086 test: Add Origin field support to ReplicationController spec.Replicas validation test 2025-02-28 06:56:02 +00:00
yongruilin
07477c656e test: convert ValidateEndpointsCreate to use error Origin field in test
Update ValidateEndpointsCreate validation tests to use the new Origin field for more precise error comparisons. It leverage the Origin field instead of detailed error messages, improving test robustness and readability.

Co-authored-by: Tim Hockin <thockin@google.com>
2025-02-28 06:55:58 +00:00
Kubernetes Prow Robot
60d0d67fef
Merge pull request #130401 from ryota-sakamoto/fix-nftables-skip-kernel-check
Fix kernel version check condition in nftables proxier
2025-02-27 18:50:36 -08:00
Kubernetes Prow Robot
a0be82d80d
Merge pull request #128987 from Henrywu573/kubescheduler_statuz
Add statusz endpoint for kube-scheduler
2025-02-27 18:50:29 -08:00
Kubernetes Prow Robot
a743616631
Merge pull request #129583 from carlory/promote-HonorPVReclaimPolicy-GA
promote HonorPVReclaimPolicy to GA
2025-02-27 15:16:30 -08:00
Kubernetes Prow Robot
807d22f052
Merge pull request #130473 from dims/ensure-we-switch-to-k8s-root-directory-for-dockerized-builds-during-e2e-node-ci-job
Ensure we switch to k8s root directory for dockerized builds during e2e-node ci job
2025-02-27 10:32:30 -08:00
Kubernetes Prow Robot
9fe95e7586
Merge pull request #130398 from gnufied/add-progress-tracking-permission-change
Add progress tracking permission change
2025-02-27 09:10:37 -08:00
Kubernetes Prow Robot
b8c95e1954
Merge pull request #129688 from cpanato/update-main-go124
[go] Bump images, dependencies and versions to go 1.24.0
2025-02-27 09:10:30 -08:00
parkjeongryul
dca3f56f64 Add e2e test for topology manager with restartable init containers 2025-02-28 00:48:27 +09:00
Kubernetes Prow Robot
341df1acca
Merge pull request #130451 from danwinship/e2e-np-bad-cidrs
Fix bad CIDRs in a NetworkPolicy test
2025-02-27 07:24:31 -08:00
Davanum Srinivas
fb3b163ca0
Ensure we switch to k8s root directory for dockerized builds during e2e-node ci job
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-02-27 10:05:45 -05:00
Dan Winship
f2e8fe93fb Fix bad CIDRs in a NetworkPolicy test
It was writing out IPBlock CIDRs like "192.168.0.5/4" rather than
"192.0.0.0/4".

Also, simplify a bit by basing the `cidr` and the `except` both on
podB, rather than one on podA and one on podB. (This is even
theoretically a bugfix, since it's not _required_ that podA and podB
be in the same /4.) Also reorganize the code to make the two test
cases more consistent with each other.
2025-02-27 09:22:16 -05:00
Kubernetes Prow Robot
8cca6d98a4
Merge pull request #130465 from Monokaix/resync
correct ResyncPeriod comments
2025-02-27 05:28:31 -08:00
Monokaix
e5becd01c8 correct ResyncPeriod comments
Signed-off-by: Monokaix <changxuzheng@huawei.com>
2025-02-27 15:04:07 +08:00
carlory
28d359beec promote HonorPVReclaimPolicy to GA
Signed-off-by: carlory <baofa.fan@daocloud.io>
2025-02-27 14:01:22 +08:00
yongruilin
a488509197 test: Improve error comparison in resource validation tests
Replace manual error logging with cmp.Diff for more precise error comparisons, using cmpopts to ignore Origin field and support UniqueString comparison.
2025-02-27 05:20:54 +00:00
yongruilin
02f7dc55d1 feat: Add Origin field to Error and related methods
This change introducing a new field in Error. It would be used in testing to compare the expected errors without matching the detail strings.

Co-authored-by: Tim Hockin <thockin@google.com>
2025-02-27 05:20:48 +00:00
Kubernetes Prow Robot
a18b4a8d97
Merge pull request #129158 from LionelJouin/fix-128831
Fix ResourceClaim status API inconsistency
2025-02-26 20:32:30 -08:00
Kubernetes Prow Robot
e8ed01179a
Merge pull request #129498 from carlory/JobPodFailurePolicy
Remove general available feature-gate JobPodFailurePolicy
2025-02-26 18:48:36 -08:00
Kubernetes Prow Robot
f06716edb1
Merge pull request #129251 from alingse/patch-1
fix check errRaw != nil but return a nil value error err
2025-02-26 18:48:30 -08:00
Hemant Kumar
94f3b552bf Fix linter warnings 2025-02-26 21:45:00 -05:00
Hemant Kumar
b0dc96e71e Add unit tests for progress tracking and remove fullpath from reporting 2025-02-26 18:13:07 -05:00
Kubernetes Prow Robot
1b4c3483ce
Merge pull request #127577 from vaibhav2107/eviction-hard
Added the MergeDefaultEvictionSettings Kubelet Config
2025-02-26 12:10:30 -08:00
Kubernetes Prow Robot
25dc6c9820
Merge pull request #130281 from z1cheng/issue_130264
Implement chunking for gzip encoder in deferredResponseWriter
2025-02-26 10:16:36 -08:00
Kubernetes Prow Robot
b38bf6c312
Merge pull request #130035 from cici37/nsDeletion
[KEP-5080]Ordered Namespace Deletion
2025-02-26 10:16:30 -08:00
Mitsuru Kariya
20cecaee97
Add Watch to controller roles (#130405)
* Add Watch to controller roles

Starting from version 1.32, the client feature `WatchListClient` has been
set to `true` in `kube-controller-manager`.
(commit 06a15c5cf9)

As a result, when the `kube-controller-manager` executes the `List` method,
it utilizes `Watch`. However, there are some existing controller roles that
include `List` but do not include `Watch`. Therefore, when processes using
these controller roles execute the `List` method, `Watch` is executed first,
but due to permission errors, it falls back to `List`.

This PR adds `Watch` to the controller roles that include `List` but do not
include `Watch`.

The affected roles are as follows (prefixed with `system:controller:`):

- `cronjob-controller`
- `endpoint-controller`
- `endpointslice-controller`
- `endpointslicemirroring-controller`
- `horizontal-pod-autoscaler`
- `node-controller`
- `pod-garbage-collector`
- `storage-version-migrator-controller`

Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>

* Fix Fixture Data

I apologize, the Fixture Data modifications were missed.

Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>

* Add ControllerRoles Test

Added a test to check that if a controller role includes `List`, it also includes `Watch`.

Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>

* Fix typo

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

* Add Additional Tests

Added tests to check that if NodeRules, ClusterRoles, and NamespaceRoles
include `List`, it also include `Watch`.

Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>

---------

Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
Co-authored-by: Jordan Liggitt <jordan@liggitt.net>
2025-02-26 08:24:38 -08:00
Kubernetes Prow Robot
facb1a8c55
Merge pull request #129905 from ania-borowiec/129778_replace_equal
Replace reflect.DeepEqual with cmp.Diff in pkg/scheduler tests
2025-02-26 08:24:30 -08:00
Patrick Ohly
650db7fab9
golangci-lint: temporarily suppress known issues in the code base
These suppressions are necessary to make golangci-lint 1.64 pass with the
current code base. This change is meant to be backported to release
branches. On master, we may want to revert some of it together with fixing the
findings.
2025-02-26 16:09:28 +01:00
z1cheng
2472f4965f Implement chunking for gzip encoder in deferredResponseWriter
Signed-off-by: z1cheng <imchench@gmail.com>
2025-02-26 22:23:17 +08:00
Kubernetes Prow Robot
50ba48369d
Merge pull request #130414 from googs1025/chore/scheduler_features
chore(scheduler): use framework.Features in scheduler plugins
2025-02-26 06:20:30 -08:00
Kubernetes Prow Robot
126a5824de
Merge pull request #130443 from serathius/watchcache-limit
Remove limit support from btree store
2025-02-26 05:12:30 -08:00
Kubernetes Prow Robot
2e073d6334
Merge pull request #130400 from serathius/storage-current-rv
Move GetCurrentResourceVersion to storage.Interface
2025-02-26 03:40:30 -08:00
googs1025
239aad8e4b chore(scheduler): use framework.Features in scheduler plugins 2025-02-26 19:16:07 +08:00
Marek Siarkowicz
168c338f7c Remove limit support from btree store
We cannot use limit as it would apply it before filtering, which is done
in cacher. Limit is not currently used, but let's remove it to be save,
until filtering is implemented in store.
2025-02-26 12:02:02 +01:00
Jordan Liggitt
43509b63d7
Bump hack/tools to github.com/golangci/golangci-lint 1.64.5 for go 1.24 2025-02-26 11:27:14 +01:00
Jordan Liggitt
8090db5dcf
Switch to private instances of rand for seeding for tests 2025-02-26 11:27:10 +01:00
cpanato
88300c406b
bump go.mod to set min go1.24
Signed-off-by: cpanato <ctadeu@gmail.com>
2025-02-26 11:27:07 +01:00
cpanato
597b54720e
Bump images, dependencies and versions to go 1.24.0
Signed-off-by: cpanato <ctadeu@gmail.com>
2025-02-26 11:26:54 +01:00
Marek Siarkowicz
fea89f25d1 Move GetCurrentResourceVersion to storage.Interface 2025-02-26 11:26:05 +01:00
Ania Borowiec
4205f04ce3
Replace uses of reflect.DeepEqual with cmp.Diff in pkg/scheduler tests 2025-02-26 09:27:51 +00:00
Kubernetes Prow Robot
3d9fcb7c01
Merge pull request #130412 from serathius/watchcache-progress
Move watch progress to separate package.
2025-02-26 00:16:41 -08:00
Kubernetes Prow Robot
6ff0354c15
Merge pull request #130399 from serathius/cache-delegator
Rename CacheProxy to CacheDelegator
2025-02-26 00:16:29 -08:00
Kubernetes Prow Robot
39c640fe90
Merge pull request #130424 from ahrtr/etcd_36_20250225
Bump etcd v3.6.0-rc.1 image
2025-02-25 18:36:30 -08:00
Marek Siarkowicz
4c635ecf82 Rename CacheProxy to CacheDelegator 2025-02-25 20:55:27 +01:00
Benjamin Wang
3c9cc93dbc Bump etcd v3.6.0-rc.1 image
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2025-02-25 19:46:33 +00:00
Kubernetes Prow Robot
e1fc73d251
Merge pull request #130325 from pohly/test-integration-apiserver-defaults
test/integration: use default API groups in test apiserver
2025-02-25 11:08:30 -08:00
Kubernetes Prow Robot
81f03c2f5b
Merge pull request #124137 from ratnadeepb/testForceDetachMetric_invoke
fix: Ensure testForceDetachMetric works on the delta of ForceDetachMetricCounter
2025-02-25 09:40:29 -08:00
Kubernetes Prow Robot
ffad281e3e
Merge pull request #130060 from carlory/fix-quota-scope
Fix the `ResourceQuota` admission plugin does not respect ANY scope change
2025-02-25 08:24:29 -08:00