Commit Graph

27526 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
b1ce2a61b5 Merge pull request #131249 from MaysaMacedo/randomize-name
Kubelet: Randomize ClusterRole name in e2e
2025-05-07 07:59:16 -07:00
Kubernetes Prow Robot
03763fd1ab Merge pull request #131296 from rzlink/master
e2e: stabilize Windows memory pressure eviction test
2025-05-06 17:45:20 -07:00
Kubernetes Prow Robot
d790594ce1 Merge pull request #131246 from pohly/dra-resourceslice-errors
DRA: improve resource slice publishing
2025-05-06 17:45:13 -07:00
Maysa Macedo
b1bb9a5885 Kubelet: Randomize ClusterRole name in e2e
It's possible that a conflict will happen when
attempting to create a `ClusterRole` resource
without a randomized name given that is a cluster
scoped object and another object with same name
might exist. This commit fixes this issue by ensuring
the name of the `ClusterRole` is randomized. Additionally,
it adds clean up for the clusterRole and clusterRoleBinding.
2025-05-06 14:30:10 -03:00
Dawei Wei
863168e474 e2e: stabilize Windows memory pressure eviction test
- Add logic to wait until memory-pressure taint is cleared before running the test.

This reduces test flakiness due to lingering node conditions between retries.
2025-05-06 09:25:06 -07:00
Kubernetes Prow Robot
73b5f84cb6 Merge pull request #131487 from hshiina/dedup-cgroup-verification
e2e: Deduplicate cgroup verification
2025-05-06 04:03:17 -07:00
Kubernetes Prow Robot
71f0fc6e72 Merge pull request #131593 from gnufied/check-for-recovery-related-fields
Check for newer resizing related fields after expansion is successful
2025-05-05 20:57:14 -07:00
Kubernetes Prow Robot
5bb3aa3604 Merge pull request #131602 from adrianmoisey/bump_cni
Update CNI plugins to v1.7.1
2025-05-05 12:21:57 -07:00
Hemant Kumar
36685c6f1c Add information about expected status 2025-05-05 14:40:06 -04:00
Patrick Ohly
3b5cfeaf20 DRA: use v1beta2
DRA drivers must provide ResourceSlices using the v1beta2 API types.
The controller then converts under the hood to v1beta1 if needed, i.e.
drivers are compatible with Kubernetes 1.32 and Kubernetes 1.33, as
long as at least one beta API group is enabled.

Testing pivots from using v1beta1 as the main API to v1beta2, with only one
test case exercising v1beta1.
2025-05-05 08:49:09 +02:00
Patrick Ohly
a171795e31 DRA resourceslices: better error reporting
A user of the controller can register an error handler via the controller
options. For a kubelet plugin, the error handler is method in the interface
which must be implemented. This is a conscious choice to make DRA driver
developer aware that they should react intelligently to errors.

The controller will invoke that handler with all errors that it encounters
while syncing the desired set of slices. This includes validation errors from
the apiserver if the driver's slices are invalid. Dropped fields get reported
with a special DroppedFieldsError.
2025-05-05 08:40:52 +02:00
Patrick Ohly
5af026120a test: bump agnhost image to 2.54
YAML files were patched with:
   sed -i -e 's;registry.k8s.io/e2e-test-images/agnhost:2...;registry.k8s.io/e2e-test-images/agnhost:2.54;' $(git grep -l agnhost:2 test/e2e/testing-manifests/ test/fixtures/)

The test/images/kitten and test/images/nautilus base images are still on an
older agnhost because updating those is better left to the owners.
2025-05-05 08:25:20 +02:00
Kubernetes Prow Robot
c87ed899e6 Merge pull request #131378 from cuishuang/master
fix: Fix non-constant format string in framework.Logf call
2025-05-04 19:31:56 -07:00
Adrian Moisey
e5ffec242a Bump CNI to 1.7.1 2025-05-04 20:27:09 +02:00
Kubernetes Prow Robot
0b8133816b Merge pull request #131477 from pohly/golangci-lint@v2
golangci-lint v2
2025-05-02 23:03:55 -07:00
Kubernetes Prow Robot
35f46a9d04 Merge pull request #131588 from pohly/agnhost-pause-output
agnhost pause: report signal, support termination message
2025-05-02 19:29:55 -07:00
Hemant Kumar
784c589a77 Check for newer resizing related fields after expansion is successful 2025-05-02 16:29:04 -04:00
Jordan Liggitt
6bb6c99342 Drop null creationTimestamp from test fixtures 2025-05-02 15:38:40 -04:00
Kubernetes Prow Robot
a931fc57aa Merge pull request #131585 from pohly/dra-e2e-no-terminationgraceperiod
DRA e2e: avoid terminationGracePeriodSeconds
2025-05-02 11:37:55 -07:00
Patrick Ohly
79891eac8b agnhost: bump version to 2.54 2025-05-02 17:27:34 +02:00
Patrick Ohly
c78556fb4b agnhost pause: report signal, support termination message
Which signal really cause the pause command to exit may be relevant to know.

By supporting the default /dev/termination-log, that information also shows up
in the pod status and then is often already shown in output of E2E tests for
unexpected pod failures.
2025-05-02 14:46:56 +02:00
Patrick Ohly
9bada79de1 DRA node test: fix useless gomega.Consistently
Passing a constant value to gomega.Consistently means that it will not re-check
while running.

Found by linter after removing the suppression rule for the check. It was
disabled earlier because of a bug in the linter.
2025-05-02 12:51:02 +02:00
Patrick Ohly
dceae3b388 DRA e2e: avoid terminationGracePeriodSeconds
`terminationGracePeriodSeconds: 0` was a mistake, it bypasses the normal
pod shutdown in the kubelet.

The right way to shut down a pod quickly is to have it react to SIGTERM.
The busybox implementation of "sleep" doesn't. `agnhost pause` does,
so let's use that instead.

For E2E tests, the InfiniteSleepCommand was already change about a year ago to
react to SIGTERM, so the `terminationGracePeriodSeconds: 1` workaround is no
longer needed.
2025-05-02 10:52:56 +02:00
Hironori Shiina
43ce37ed48 Address feedback 2025-05-01 14:56:28 +02:00
Hironori Shiina
7e1cec680e e2e: Deduplicate cgroup verification
This fix deduplicates cgroup verification in tests for
InPlacePodVerticalScaling and PodLevelResources.
2025-05-01 14:53:26 +02:00
Kubernetes Prow Robot
cf6cc0f5d7 Merge pull request #130381 from royalsflush/probe-total-beta
Bumps up prober_probe_total from alpha to beta
2025-04-30 18:39:54 -07:00
Kubernetes Prow Robot
8aa1d337e9 Merge pull request #131102 from esotsal/debug_131067
[FG:InPlacePodVerticalScaling] Clean code resize test
2025-04-30 15:33:55 -07:00
Kubernetes Prow Robot
42bd93955a Merge pull request #131538 from aojea/blue_green_e2e
e2e network: blue green deployments
2025-04-30 14:14:01 -07:00
Kubernetes Prow Robot
15f8e91f03 Merge pull request #131342 from carlory/fix131329
deflake e2e tests: CustomResourcePublishOpenAPI works for multiple CRDs of same group and version but different kinds
2025-04-30 10:13:55 -07:00
Antonio Ojea
3a5dda78af e2e network: blue green deployments
Use Pod Readiness Gates and Services to implement blue green deployment
strategies by setting the corresponding readines gate to influence the
service traffic.

Change-Id: I23e3b9a0440014f48a4612685055565fd8dff5ec
2025-04-30 04:46:50 +00:00
Kubernetes Prow Robot
67d2befc93 Merge pull request #131526 from pohly/dra-test-driver-example-update
DRA test: update examples
2025-04-29 09:18:10 -07:00
Kubernetes Prow Robot
e0dbdc9d17 Merge pull request #131518 from kevinrizza/pod-resize-test-namespace
Don't create extra namespaces during pod resize tests
2025-04-29 09:18:02 -07:00
Kubernetes Prow Robot
ea08d4df93 Merge pull request #128946 from jackfrancis/SetPVCVACName-eventually-gomega
test: don't panic during an Eventually retry loop
2025-04-29 09:17:55 -07:00
kevinrizza
903d6d4f03 Don't reinitialize test framework during each test case
This commit updates pod resize tests to resolve an
issue where extraneous unused namespaces are created
when the tests are run. This happens because a new
instance of the test framework is generated when
looping over the test specs, registering BeforeEach each
time.
2025-04-29 09:17:40 -04:00
Patrick Ohly
3cadb6ff80 DRA test: update examples
Some more out-dated reference to resource class. Keeping the pod running is
better for demonstrating the lifecycle of claims because it is actually
possible to see a claim in the allocated state.
2025-04-29 09:55:05 +02:00
Kubernetes Prow Robot
23258f104d Merge pull request #131511 from pohly/dep-misspell
dependencies: github.com/client9/misspell -> github.com/golangci/misspell
2025-04-28 12:25:53 -07:00
Sotiris Salloumis
d6b45bc98d [FG:InPlacePodVerticalScaling] clean code resize test
- Improve information when VerifyPodContainersCgroupValues fails
- Use common way to append errors
2025-04-28 18:43:12 +02:00
Patrick Ohly
8bb7b05637 dependencies: github.com/client9/misspell -> github.com/golangci/misspell
github.com/client9/misspell was archived by the owner on Mar 26, 2025.
The golangci-lint team maintains a fork.

The newer code finds some misspellings which where missed before.
2025-04-28 15:44:04 +02:00
Abhijit Hoskeri
db960d1007 Fix openid discovery docs with external jwt signer.
If the external jwt signer is enabled, publishing
OIDC discovery docs and keys fails because the PublicKeysGetter
is not wired correctly.

Set the public keys getter on startup so public key
discovery works in that case as well.
2025-04-26 17:39:31 -07:00
Kubernetes Prow Robot
fe5afa919b Merge pull request #130333 from kmala/job
handle job complete update delayed event
2025-04-25 17:55:22 -07:00
Kubernetes Prow Robot
30f8f3d146 Merge pull request #131361 from jkyros/fix-inplace-test-wait-quota-status
[FG:InPlacePodVerticalScaling] deflake - wait for resourceQuota status to be populated
2025-04-25 13:35:22 -07:00
John Kyros
00908ce2d1 Wait for resource quota status to be populated
Trying to create a pod using a resourcequota whose status has not been
populated will result in api admission rejecting it with a 403
Forbidden. The pod resize tests do not wait/check to make sure the
resourcequota status is populated before trying to use the quota when
creating a pod, so in scenarious where either the test runs too fast, or
the resourcequota controller is too slow, the tests will fail.

This just makes the test wait up to a minute for the quota status to
populate. The status generation timing/logic gets tested separately in
test/e2e/apimachinery/resource_quota.go, and it waits a minute, so we
wait a minute, but in practice it takes at worst seconds.
2025-04-25 01:09:08 -05:00
Benjamin Elder
540ea5949f skip kubectl proxy env tests when the host is localhost/loopback and would not be proxied 2025-04-24 22:40:05 -07:00
Kubernetes Prow Robot
05a3d178a2 Merge pull request #129564 from Jefftree/compat-134
Bump DefaultKubeBinaryVersion to 1.34 and fix VAP test
2025-04-24 15:24:30 -07:00
Kubernetes Prow Robot
5da29d0ee7 Merge pull request #131334 from natasha41575/fix-cgorup-error-msg
[FG:InPlacePodVerticalScaling] add more error details to the failing cgroup check
2025-04-24 12:00:41 -07:00
Kubernetes Prow Robot
af53af19e6 Merge pull request #130211 from carlory/add-intree-driver-for-nfs3
e2e storage test: in-tree driver adds the support for nfs v3
2025-04-24 10:52:31 -07:00
Natasha Sarkar
932cff5dd4 add more error details to the failing cgroup check 2025-04-24 15:51:08 +00:00
Kubernetes Prow Robot
4bcaa515c9 Merge pull request #131267 from tallclair/resize-helpers
Move pod resize e2e utilities out of e2e/framework
2025-04-24 01:28:44 -07:00
Kubernetes Prow Robot
62129df407 Merge pull request #129699 from carlory/cleanup-intree
remove unnecessary functions
2025-04-24 01:28:33 -07:00
Kubernetes Prow Robot
a88a8238d7 Merge pull request #131416 from alculquicondor/rm-alculquicondor
Remove alculquicondor from test framework OWNERS
2025-04-23 18:21:36 -07:00