Commit Graph

27465 Commits

Author SHA1 Message Date
Jordan Liggitt
a4cc2ce4c2 Bump to go 1.25 2026-04-01 17:20:17 -04:00
Benjamin Elder
f6bd39f561 test/images: read .go-version instead of duplicating 2026-03-11 12:58:50 -07:00
Carlos Panato
e4aef7c315 Bump images and versions to go 1.24.13 and distroless iptables
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
2026-02-12 14:07:59 +01:00
Carlos Panato
9067f06e36 Bump dependencies, images and versions used to Go 1.24.12 and distroless iptables
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
2026-01-30 11:13:21 +01:00
Davanum Srinivas
7be92699ea Apparently some EC2 images we use do not have /proc/net/nf_conntrack
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2026-01-29 15:02:43 -05:00
Davanum Srinivas
1479c62a20 test: cleanup from review
- Use netutils.IsIPv6(ip) instead of manual nil/To4 check
- Remove unnecessary ip.To16() call since IPv6 is already 16 bytes
- Remove ipFamily from grep pattern since IP format ensures correctness

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2026-01-29 15:02:43 -05:00
Davanum Srinivas
727969bb68 test: Fix KubeProxy CLOSE_WAIT test for IPv6 environments
The /proc/net/nf_conntrack file uses fully expanded IPv6 addresses
with leading zeros in each 16-bit group. For example:
  fc00:f853:ccd:e793::3 -> fc00:f853:0ccd:e793:0000:0000:0000:0003

Add expandIPv6ForConntrack() helper function to expand IPv6 addresses
to the format used by /proc/net/nf_conntrack before using them in
the grep pattern.

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2026-01-29 15:02:43 -05:00
Davanum Srinivas
2e3a2fa222 test: Read /proc/net/nf_conntrack instead of using conntrack binary
The distroless-iptables image no longer includes the conntrack binary
as of v0.8.7 (removed in kubernetes/release#4223 since kube-proxy no
longer needs it after kubernetes#126847).

Update the KubeProxy CLOSE_WAIT timeout test to read /proc/net/nf_conntrack
directly instead of using the conntrack command. The file contains the
same connection tracking data and is accessible from the privileged
host-network pod.

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2026-01-29 15:02:41 -05:00
Jan Safranek
aa6b40b2aa Added e2e tests with disabled SELinux
Added few tests with a CSI driver that does not support SELinux and has it
disabled in its CSIDriver instance
2026-01-12 14:48:14 +01:00
Jan Safranek
e6ae3c9405 selinux: add e2e test with a completed pod
Add a test that checks the SELinux controller does not report conflicts
with Succeeded pods.
2026-01-12 14:48:13 +01:00
Ciprian Hacman
4978d948f2 Update pod resize test to accept new cpu.weight conversion 2025-12-17 16:31:15 +02:00
Carlos Panato
45feeb6a04 Bump dependencies, images and versions used to Go 1.24.11 and distroless iptables
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
2025-12-05 11:47:07 +01:00
Carlos Panato
46e99b7181 Bump dependencies, images and versions used to Go 1.24.10 and distroless iptables
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
2025-11-29 11:15:48 +01:00
Kubernetes Prow Robot
0f7ed91276 Merge pull request #134801 from yuanwang04/automated-cherry-pick-of-#133072-upstream-release-1.33
Automated cherry pick of #133072: Fix startup probe worker termination for sidecar containers
2025-11-07 17:52:52 -08:00
Dejan Zele Pejchev
e47053f2fb fix: allow job startTime updates on resume from suspended state
Signed-off-by: Dejan Zele Pejchev <pejcev.dejan@gmail.com>
2025-11-05 09:58:11 +01:00
Patrick Ohly
92d86e0f94 E2E volume: fix restarting of watch
Presumably
https://github.com/kubernetes/kubernetes/pull/127260/files#r2405215911
was meant to continue polling after a watch was closed by the apiserver.
This is something that can happen under load.

However, returning the error has the effect that polling stops.
This can be seen as test failures when testing with race
detection enabled:

    persistent_volumes_test.go:1101: Failed to wait for all claims to be bound: watch closed
2025-10-29 16:12:40 +05:30
aditya
888c785092 Fix startup probe worker termination for sidecar containers
Fixes a bug where startup probe workers terminate incorrectly for sidecar
containers with restartPolicy=Always when the pod has restartPolicy=Never,
causing main containers to remain stuck in Initializing state.

Changes:
- Add container-level restart policy check for init containers only
- Extract complex boolean logic to named variable for readability
- Refactor test helper to use existing newWorker() function
- Add comprehensive unit and e2e tests for both scenarios
2025-10-22 23:17:53 +00:00
Carlos Panato
94d352b0b0 update setcap and debian-base to bookworm-v1.0.6
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
2025-10-15 11:51:45 +02:00
Carlos Panato
94bfd988d7 Bump dependencies, images and versions used to Go 1.24.9 and distroless iptables
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
2025-10-15 11:51:40 +02:00
Jordan Liggitt
e191318418 Add integration test for invalid SAN certificate handling 2025-10-14 09:37:32 -04:00
Kubernetes Prow Robot
ae85505eac Merge pull request #133390 from SergeyKanzhelev/automated-cherry-pick-of-#132040-upstream-release-1.33
Automated cherry pick of #132040: Make nodeports scheduling plugin restartable initContainer aware
2025-10-10 14:31:01 -07:00
Kubernetes Prow Robot
8d5936ab2a Merge pull request #134262 from sats-23/automated-cherry-pick-of-#132328-release-1.33
Automated cherry pick of #132328: clean: use correct pod template
2025-10-03 07:39:00 -07:00
Kubernetes Prow Robot
6c4310711b Merge pull request #133628 from nojnhuh/automated-cherry-pick-of-#133562-upstream-release-1.33
Automated cherry pick of #133562: DRA: wait for stats to converge in "creates slices" e2e test
2025-09-26 01:38:19 -07:00
likakuli
d5c20207a8 clean: use correct pod template
Signed-off-by: likakuli <1154584512@qq.com>
2025-09-25 15:24:29 +05:30
Carlos Panato
aa5fd440c5 Bump images, dependencies and versions to go 1.24.7 and distroless iptables
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
2025-09-22 13:08:22 +02:00
Kubernetes Prow Robot
83101dfc66 Merge pull request #133746 from jsafrane/automated-cherry-pick-of-#133425-release-1.33
Automated cherry pick of #133425: Fix SELinux label comparison
2025-09-04 02:27:24 -07:00
Kubernetes Prow Robot
a197a68909 Merge pull request #133122 from vr4manta/automated-cherry-pick-of-#132891-upstream-release-1.33
Automated cherry pick of #132891: Added NodeSelectors field to external DriverDefinition
2025-09-04 02:27:16 -07:00
Jan Safranek
fe2d1b2687 Add missing cases to SELinuxMount tests 2025-08-28 10:31:15 +02:00
Dan Winship
9d09997311 Remove patch/update from ServiceCIDR API conformance test
They were already listed in ineligible_endpoints.yaml, so we shouldn't
be testing them here anyway.
2025-08-21 09:09:11 -04:00
Jon Huhn
1e3ff8d7ad DRA: wait for stats to converge in "creates slices" e2e test 2025-08-20 14:00:07 -05:00
Carlos Panato
98b3daba8c Bump dependencies, images and versions used to Go 1.24.6 and distroless iptables
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
2025-08-14 13:31:05 +02:00
Sergey Kanzhelev
15693e02c3 Make nodeports scheduling plugin sidecar initContainer aware 2025-08-05 21:12:49 +00:00
Benjamin Elder
a2ef871e58 remove failing test that depends on expired credential, remove credential, add TODOs
see: https://github.com/kubernetes/kubernetes/issues/130271
2025-07-28 16:31:06 -07:00
vr4manta
d8676a24cc Added NodeSelectors field to DriverDefinition 2025-07-22 08:21:08 -04:00
Kubernetes Prow Robot
64f7af48d7 Merge pull request #132897 from cpanato/update-go124-133
[release-1.33][go] Bump dependencies, images and versions used to Go 1.24.5 and distroless iptables
2025-07-16 15:28:23 -07:00
Kubernetes Prow Robot
f95a538dc5 Merge pull request #132728 from mimowo/automated-cherry-pick-of-#132614-upstream-release-1.33
Automated cherry pick of #132614: Fix validation for Job with suspend=true,completions=0 to set Complete condition
2025-07-11 17:07:28 -07:00
Carlos Panato
e7ff6701a9 Bump dependencies, images and versions used to Go 1.24.5 and distroless iptables
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
2025-07-11 20:34:49 +02:00
Michal Wozniak
053e244efb Skip linter validation to allow cherrypick 2025-07-10 11:30:20 +02:00
Ben Luddy
6a9319c527 Use per-policy marker names for VAP integration tests.
Writes to policy resources don't instantaneously take effect in admission. ValidatingAdmissionPolicy
integration tests determine that the policies under test have taken effect by adding a sentinel
policy rule and polling until that rule is applied to a request.

If the marker resource names are the same for each test case in a series of test cases, then
observing a policy's effect on a marker request only indicates that _any_ test policy is in effect,
but it's not necessarily the policy the current test case is waiting for. For example:

1. Test 1 creates a policy and binding.

2. The policy and binding are observed by the admission plugin and take effect.

3. Test 1 observes that a policy is in effect via marker requests.

4. Test 1 exercises the behavior under test and successfully deletes the policy and binding it
created.

5. Test 2 creates a policy and binding.

6. Test 2 observes that a policy is in effect via marker requests, but the policy in effect is still
the one created by Test 1.

7. Test 2 exercises the behavior under test, which fails because it was evaluated against Test 1's
policy.

Generating a per-policy name for the marker resource in each test resolves the timing issue. In the
example, step (6) will not proceed until the admission plugin has observed the policy and binding
created in (5).
2025-07-10 10:12:40 +02:00
Kubernetes Prow Robot
e9c25f7a90 Merge pull request #132158 from linxiulei/automated-cherry-pick-of-#132109-release-1.33
Automated cherry pick of #132109: Clean backoff record earlier
2025-07-09 05:43:26 -07:00
Michal Wozniak
068079fb7e Review remarks 2025-07-04 11:28:46 +02:00
Michal Wozniak
3851253305 Fix validation for Job with suspend=true,completions=0 to set Complete condition 2025-07-04 11:28:46 +02:00
HirazawaUi
05e72aa38d fix kubeadm e2e tests 2025-06-15 13:24:28 +08:00
Carlos Panato
612e055556 Bump images, dependencies and versions to go 1.24.4 and distroless iptables
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
2025-06-11 08:35:06 +02:00
Eric Lin
d2be12ab76 Clean backoff record earlier
Once received job deletion event, it cleans the backoff records for that
job before enqueueing this job so that we can avoid a race condition
that the syncJob() may incorrect use stale backoff records for a newly created
job with same key.

Co-authored-by: Michal Wozniak <michalwozniak@google.com>
2025-06-06 20:45:35 +00:00
Kubernetes Prow Robot
ee4b297f37 Merge pull request #131767 from ingvagabund/automated-cherry-pick-of-#131742-upstream-release-1.33
Automated cherry pick of #131742: [sig-scheduling] SchedulerPreemption [Serial] validates various priority Pods preempt expectedly with the async preemption: replace finalizers with preStop hook and TerminationGracePeriodSeconds
2025-06-05 18:50:43 -07:00
Carlos Panato
c4f2287f8a Bump images, dependencies and versions to go 1.24.9 and distroless iptables
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
2025-05-23 09:14:58 -04:00
Jan Chaloupka
f240b3abf5 SchedulerPreemption [Serial] validates various priority Pods preempt expectedly with the async preemption: replace finalizers with preStop hook and TerminationGracePeriodSeconds
Finalizers do not work as expected when an informer with a field
selector is used. Any time a pod changing its state gets excluded by the
field selector a synthetic delete event is issues even though the pod
with a finalizer set is still present. Thus, making the scheduler
schedule the high and medium priority pods before any of the low
priority pod finalizers is removed. Instead, rely on preStop hook and
TerminationGracePeriodSeconds to keep all low priority pods long enough
included by the field selector so all high priority pods can set their
.status.nominatedNodeName field.

Also, update the check for how many medium priority pods are expected to
be scheduled. Each node can accept 10 pods of the given extended
resources. Given there's 5 high priority created per node, there's
always 5 times number of nodes spots left for the medium priority pods.
2025-05-14 16:23:46 +02:00
Kubernetes Prow Robot
680ea07dbb Merge pull request #131369 from ameukam/update-1242-master
[Go] Bump dependencies, images and versions used to Go 1.24.2 and distroless iptables
2025-04-21 09:19:06 -07:00
Jordan Liggitt
95b926c93a Feature-gate watchlist e2e 2025-04-19 17:18:31 -04:00