27429 Commits

Author SHA1 Message Date
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
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
Arnaud Meukam
e467c9530b [Go] Bump dependencies, images and versions used to Go 1.24.2 and distroless-iptables
Signed-off-by: Arnaud Meukam <ameukam@gmail.com>
2025-04-18 15:49:48 +02:00
David Eads
660df229bf Stop exposing list-via-watch from the server
With StreamingCollectionEncodingToJSON and
StreamingCollectionEncodingToProtobuf, the WatchList must re-justify its
necessity.  To prevent an ecosystem from building around a feature that
may not be promoted, we will stop serving list-via-watch until
performance numbers can justify its inclusion.

This also stops the kube-controller-manager from using the
list-via-watch by default.  The fallback is a regular list, so during
the skew during an upgrade the "right" thing will happen and the new
StreamingCollectionEncoding will be used.
2025-04-18 09:21:23 -04:00
Antonio Ojea
a8f6d77c8d ServiceCIDR and IPAddess Conformance
Change-Id: I6ee188cc8c163c312f8a8da9f1277d83e1ea634c
2025-04-15 21:47:43 +00:00
Kubernetes Prow Robot
30469e1803 Merge pull request #131263 from aojea/dualstack_upgrade
Allow to convert clusters Service CIDRs from single to dual stack
2025-04-14 11:17:06 -07:00
Antonio Ojea
0266d3bcb3 Allow single-to-dual-stack reconfiguration for ServiceCIDR
This change modifies the validation logic for ServiceCIDR updates
(`ValidateServiceCIDRUpdate`) to specifically permit upgrading a
single-stack ServiceCIDR (either IPv4 or IPv6) to a dual-stack
configuration.

This reconfiguration path is considered safe because it only involves adding
a new CIDR range without altering the existing primary CIDR. This
ensures that existing Service IP allocations are not disrupted.

Other modifications, such as:
- Downgrading from dual-stack to single-stack
- Reordering CIDRs in a dual-stack configuration
- Changing the primary CIDR during a single-to-dual-stack
  reconfiguration

remain disallowed by the validation. These operations carry a higher
risk of breaking existing Services or cluster networking
configurations. Preventing these updates automatically encourages
administrators to perform such changes manually after carefully
assessing the potential impact on their specific cluster environment.
The validation errors and controller logs provide guidance when such
disallowed changes are attempted.

Change-Id: I41dc09dfddb05f277925da2262f8114d6accbd1d
2025-04-14 17:05:44 +00:00
Kubernetes Prow Robot
cfed8c7d41 Merge pull request #131234 from carlory/fix-131229
Fix flaky test: Metrics should grab all metrics from kubelet /metrics/resource endpoint
2025-04-14 08:19:13 -07:00
Kubernetes Prow Robot
d6e3f34f70 Merge pull request #131211 from BenTheElder/max-pods
fix flaky garbage collector tests
2025-04-14 08:19:06 -07:00
carlory
7d7fc2d989 Fix flaky test: Metrics should grab all metrics from kubelet /metrics/resource endpoint
Signed-off-by: carlory <baofa.fan@daocloud.io>
2025-04-11 11:30:28 +08:00
Jan Safranek
e5a5f726dd Tag SELinux tests that require SELinux warning controller
The controller is available only with SELinuxChangePolicy FG enabled.
Kubernetes e2e jobs do the right --focus & --skip explicitly in the SELinux
jobs, this just helps other test runners to figure out what FGs are needed
to run the tests.

When at it, I noticed SELinuxMountReadWriteOncePod tag is always required, so
add it on the common level and not in each test.
2025-04-10 14:36:02 +02:00
Benjamin Elder
18249aaaa4 hack/update-conformance-yaml.sh
adds [Serial] tags to some tests that schedule lots of pods
2025-04-08 15:54:45 -07:00
Benjamin Elder
1eab3036b6 mark tests that use estimateMaxPods as serial 2025-04-08 14:46:38 -07:00
Benjamin Elder
b2933c0ada estimate some system daemonset overhead for max pods 2025-04-08 14:46:06 -07:00
Siyuan Zhang
b1a9cc3473 bug fix: fix version order in emulation forward compatibility.
Signed-off-by: Siyuan Zhang <sizhang@google.com>
2025-04-08 14:03:34 -07:00
joshjms
24edc6e90f Update etcd to 3.5.21
Signed-off-by: joshjms <joshjms1607@gmail.com>
2025-04-02 02:16:38 +08:00
Kubernetes Prow Robot
d53dc8e1ee Merge pull request #131088 from atiratree/rename-terminating-replicas-fg
rename DeploymentPodReplacementPolicy FG to DeploymentReplicaSetTerminatingReplicas
2025-04-01 01:22:42 -07:00
Kubernetes Prow Robot
bdda0a530e Merge pull request #131090 from natasha41575/deflakeCgroupNotFound
[FG:InPlacePodVerticalScaling] deflake - wait for containers to have started before doing cgroup check
2025-03-28 00:54:34 -07:00
Natasha Sarkar
5c7491bf08 accept rounded container cpu limits in container cgroup tests (#131059) 2025-03-27 23:40:34 -07:00
Natasha Sarkar
d349ac57e4 wait for containers to have started before doing cgroup check 2025-03-27 20:52:44 +00:00
Filip Křepinský
b0b89d3bd2 fix the DeploymentReplicaSetTerminatingReplicas version 2025-03-27 20:28:21 +01:00
Filip Křepinský
8db1426554 rename DeploymentPodReplacementPolicy FG to DeploymentReplicaSetTerminatingReplicas 2025-03-27 20:27:44 +01:00
Natasha Sarkar
83bb5d5705 deflake restart count assertions in in-place resize tests (#131055) 2025-03-27 07:56:40 -07:00
Kubernetes Prow Robot
047e4c8e56 Merge pull request #131039 from natasha41575/deflakeQuotaTest
deflake pod-resize-resource-quota-test
2025-03-26 11:12:39 -07:00
Kubernetes Prow Robot
070f0ad3bd Merge pull request #129970 from mortent/AddResourceV1beta2API
Add resource v1beta2 API
2025-03-26 09:10:47 -07:00
Morten Torkildsen
1d42ba78ff Add e2e tests for resource v1beta2 API 2025-03-26 14:52:47 +00:00
Morten Torkildsen
39507d911f Add resource v1beta2 API 2025-03-26 14:41:09 +00:00
Kubernetes Prow Robot
c90a4b16b6 Merge pull request #130945 from danwinship/prefersame-e2e-test
e2e testing for PreferSameZone/PreferSameNode
2025-03-25 18:12:34 -07:00
Natasha Sarkar
2350e7a911 deflake pod-resize-resource-quota-test 2025-03-25 21:12:29 +00:00
Kubernetes Prow Robot
ef838fcc3f Merge pull request #131054 from jsturtevant/fix-up-ginkgo-skips
[sig-windows] Ginkgo skip needs to run inside leaf node otherwise it panics
2025-03-25 13:52:44 -07:00
Kubernetes Prow Robot
bcea7a100b Merge pull request #130980 from macsko/increase_number_of_pods_in_preemption_tests
Increase number of pods in PreemptionBasic and PreemptionPVs
2025-03-25 13:52:32 -07:00
James Sturtevant
2073252d5a Ginkgo skip needs to run inside leaf node otherwise it panics
Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
2025-03-25 06:59:26 -07:00
Kubernetes Prow Robot
ee41b03416 Merge pull request #131041 from dims/fix-cpu_manager_test-failure-in-ci-kubernetes-node-swap-ubuntu-serial
Fix cpu_manager_test-failure in ci-kubernetes-node-swap-ubuntu-serial
2025-03-25 04:38:32 -07:00
Kubernetes Prow Robot
ff25881bc1 Merge pull request #130556 from sreeram-venkitesh/kep-4960-container-stop-signals
KEP 4960: Container Stop Signals
2025-03-24 16:36:32 -07:00
Davanum Srinivas
d429c8b17d debug cpu_manager_test failure
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-03-24 19:15:38 -04:00
Dan Winship
478a6f9d05 Add a tests for PreferSameNode 2025-03-24 18:47:45 -04:00
Dan Winship
0ee6b0dbfa Add "multi-node" TrafficDistribution test
The existing TrafficDistribution test didn't really distinguish "same
zone" from "same node". Add another test that makes sure there are at
least 2 nodes in each zone so it can do that.

(Keep the original test as well to avoid losing coverage in CI systems
with single-schedulable-node-per-zone clusters.)
2025-03-24 18:47:37 -04:00
Dan Winship
7956b37f62 Add test for trafficDistribution: PreferSameZone
(Identical to the PreferClose test.)
2025-03-24 18:47:36 -04:00