Commit Graph

127104 Commits

Author SHA1 Message Date
Laura Lorenz
59f9858086 Move function specific to container restart test inline
Signed-off-by: Laura Lorenz <lauralorenz@google.com>
2024-11-12 23:59:30 +00:00
Laura Lorenz
529d5ba9d3 Don't overly indirect image name
Signed-off-by: Laura Lorenz <lauralorenz@google.com>
2024-11-12 23:34:57 +00:00
Laura Lorenz
8e7b2af712 Use a better util
Signed-off-by: Laura Lorenz <lauralorenz@google.com>
2024-11-12 23:30:03 +00:00
Laura Lorenz
285d433dea Clearer image pull test and utils
Signed-off-by: Laura Lorenz <lauralorenz@google.com>
2024-11-12 23:30:00 +00:00
Laura Lorenz
e03d0f60ef Orient tests to run faster, but tolerate infra slowdowns up to 5 minutes
Signed-off-by: Laura Lorenz <lauralorenz@google.com>
2024-11-12 21:48:28 +00:00
Laura Lorenz
d293c5088f Fix spelling
Signed-off-by: Laura Lorenz <lauralorenz@google.com>
2024-11-12 21:12:20 +00:00
Kubernetes Prow Robot
252e9cbb23
Merge pull request #128754 from vivzbansal/sidecar-3
Add AllowSidecarResizePolicy to relax resize policy validation check of sidecar containers
2024-11-12 20:28:48 +00:00
Laura Lorenz
1da8ca816e Extract restart number properly
Signed-off-by: Laura Lorenz <lauralorenz@google.com>
2024-11-12 20:00:11 +00:00
Laura Lorenz
2732d57e33 Missed refactor of container name here
Signed-off-by: Laura Lorenz <lauralorenz@google.com>
2024-11-12 19:50:11 +00:00
Laura Lorenz
e6059d7386 Fix typecheck and verify
Signed-off-by: Laura Lorenz <lauralorenz@google.com>
2024-11-12 19:48:38 +00:00
Kubernetes Prow Robot
79e5584257
Merge pull request #128682 from tallclair/ippr-beta
[FG:InPlacePodVerticalScaling] Graduate to Beta
2024-11-12 19:00:46 +00:00
Patrick Ohly
6c27e8dc8f DRA kubelet: use unique protobuf package name
As mentioned in https://protobuf.dev/programming-guides/style, package names
"should be unique". For generated API pb files, Kubernetes uses
"k8s.io.api.<api group>.<version>". The same approach is now used for the
kubelet DRA v1beta1 API. This can be changed without a breaking change because
the API is still unreleased.

This avoids a conflict between the DevicePlugin and the DRA API when both get
used by kubelet:

    2024/11/10 12:51:40 proto: duplicate proto type registered: v1beta1.Device

The exact impact of that conflict is unknown but it seems better to
pro-actively avoid the problem.
2024-11-12 18:06:50 +01:00
Kubernetes Prow Robot
8115baca00
Merge pull request #128666 from macsko/fix_scale_down_in_eventhandlingpodupdate_scheduler_perf_test_case
Fix pod scale down failure in EventHandlingPodUpdate scheduler_perf test
2024-11-12 16:28:47 +00:00
ah8ad3
7580e6ac00 Revert PR #126533 and add a test case for the case where there is yaml
structed texts in the description.
We should find a way to both relign line breaks and not break these kind
of texts.

Signed-off-by: ah8ad3 <ah8ad3@gmail.com>
2024-11-12 14:23:03 +03:30
Laura Lorenz
f032068ef7 Focus on restart numbers instead of timing
Signed-off-by: Laura Lorenz <lauralorenz@google.com>
2024-11-12 07:12:24 +00:00
vivzbansal
95591abd02 Add AllowSidecarResizePolicy to relax resize policy validation check of sidecar containers 2024-11-12 05:08:51 +00:00
Laura Lorenz
bad037b505 Formatting
Signed-off-by: Laura Lorenz <lauralorenz@google.com>
2024-11-12 04:48:10 +00:00
Laura Lorenz
15bae1eadf Add container restart test too
Signed-off-by: Laura Lorenz <lauralorenz@google.com>
2024-11-12 04:30:46 +00:00
Laura Lorenz
fc4ac5efeb Move image pull backoff test to be with other image pull tests
Signed-off-by: Laura Lorenz <lauralorenz@google.com>
2024-11-12 01:27:44 +00:00
Laura Lorenz
2479d91f2a Fix test to count pull tries
Signed-off-by: Laura Lorenz <lauralorenz@google.com>
2024-11-12 01:27:34 +00:00
Kubernetes Prow Robot
6b031e50b2
Merge pull request #128713 from tallclair/ippr-debug-events
[FG:InPlacePodVerticalScaling] Emit events for Deferred and Infeasible statuses
2024-11-11 23:22:45 +00:00
Kubernetes Prow Robot
f5d1fdf772
Merge pull request #128718 from tallclair/no-cpu-limit
[FG:InPlacePodVerticalScaling] Enable resizing containers without limits
2024-11-11 22:08:46 +00:00
Tim Allclair
2935b106dc Set default ResizePolicy in fuzzer for roundtrip tests 2024-11-11 12:44:33 -08:00
Tim Allclair
4991d2feb5 Resize E2E tests without limits 2024-11-11 12:04:36 -08:00
Tim Allclair
25cf2a2aac Allow adding limits 2024-11-11 12:04:36 -08:00
Tim Allclair
caedccf0e4 Allow resize when pod limits aren't set 2024-11-11 12:04:36 -08:00
Tim Allclair
9df464fee7 Generate ContainerManager mocks 2024-11-11 12:04:36 -08:00
Kubernetes Prow Robot
2e0cc1befe
Merge pull request #127943 from ii/promote-serviceaccounttoken-test
Promote ServiceAccount e2e test to Conformance
2024-11-11 18:12:45 +00:00
Laura Lorenz
6ef05dbd01 The idea of how this test should work
Signed-off-by: Laura Lorenz <lauralorenz@google.com>
2024-11-11 17:55:41 +00:00
Laura Lorenz
6337a28a68 Organize into its own context
Signed-off-by: Laura Lorenz <lauralorenz@google.com>
2024-11-11 17:55:41 +00:00
Laura Lorenz
f913b7afe8 Adding imagepull backoff test
Signed-off-by: Laura Lorenz <lauralorenz@google.com>
2024-11-11 17:55:41 +00:00
Tim Allclair
4bbc6f1c2c Move pod_resize tests out of alpha 2024-11-09 14:29:02 -08:00
Tim Allclair
479b300227 Fix unit tests 2024-11-09 14:29:02 -08:00
Tim Allclair
7378b5e690 Graduate InPlacePodVerticalScaling to Beta 2024-11-09 14:29:02 -08:00
Kubernetes Prow Robot
8fe10dc378
Merge pull request #128691 from sanposhiho/flaky-candidate
fix: flaky TestPrepareCandidate
2024-11-09 19:38:44 +00:00
Kubernetes Prow Robot
1b08de5f7f
Merge pull request #128722 from dims/possible-fix-for-alpha-feature-breaking-tests
Fix for alpha CI jobs failing with AllowUnsafeMalformedObjectDeletion switched on
2024-11-09 16:28:43 +00:00
Davanum Srinivas
9c6126e29c
Possible fix for alpha CI jobs failing with AllowUnsafeMalformedObjectDeletion switched on
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2024-11-09 08:58:03 -05:00
Mengjiao Liu
e905e2de1c Update metrics docs for v1.32 release 2024-11-09 20:48:12 +08:00
Kubernetes Prow Robot
feb3f92bc4
Merge pull request #128712 from kannon92/fix-stream-test-failures
fix PodLogsQuerySplitStream if feature is enabled and using defaults
2024-11-09 06:24:44 +00:00
Kevin Hannon
3d08c10c8a fix PodLogsQuerySplitStream if feature is enabled and using defaults 2024-11-08 22:32:30 -05:00
Kensei Nakada
00f7b95b7b fix: flaky TestPrepareCandidate 2024-11-09 12:07:16 +09:00
lauralorenz
7fe41da522
KEP-4603: Node specific kubelet config for maximum backoff down to 1 second (#128374)
* Add feature gate, API, and conflict validation tests for enablecrashloopbackoffmax

Signed-off-by: Laura Lorenz <lauralorenz@google.com>

* Handle when current base is longer than node max

Signed-off-by: Laura Lorenz <lauralorenz@google.com>

* Update pkg/features/kube_features.go

Co-authored-by: Tsubasa Nagasawa <toversus2357@gmail.com>

* Fix indentation

Signed-off-by: Laura Lorenz <lauralorenz@google.com>

* Follow convention for success test

Signed-off-by: Laura Lorenz <lauralorenz@google.com>

* Normalize casing, and change field to Duration

Signed-off-by: Laura Lorenz <lauralorenz@google.com>

* Fix json name and some other casing errors

Signed-off-by: Laura Lorenz <lauralorenz@google.com>

* Another one I missed before

Signed-off-by: Laura Lorenz <lauralorenz@google.com>

* Don't clobber global max function

Signed-off-by: Laura Lorenz <lauralorenz@google.com>

* Change to flat value in defaults.go

Signed-off-by: Laura Lorenz <lauralorenz@google.com>

* Streamline validation and defaults

Signed-off-by: Laura Lorenz <lauralorenz@google.com>

* Fix typecheck

Signed-off-by: Laura Lorenz <lauralorenz@google.com>

* Lint

Signed-off-by: Laura Lorenz <lauralorenz@google.com>

* Tighten up validation for subsecond values

Signed-off-by: Laura Lorenz <lauralorenz@google.com>

* Rename field from MaxBackOffPeriod to MaxContainerRestartPeriod

Signed-off-by: Laura Lorenz <lauralorenz@google.com>

* A few missed references to renames

Signed-off-by: Laura Lorenz <lauralorenz@google.com>

* Only compare flags in flags test

Signed-off-by: Laura Lorenz <lauralorenz@google.com>

* Don't mess with SetDefault signature

Nobody messes with SetDefault signature

Signed-off-by: Laura Lorenz <lauralorenz@google.com>

* Fix stale signature change, and update test data

Signed-off-by: Laura Lorenz <lauralorenz@google.com>

* Inspect current feature gates at defaulting time

Signed-off-by: Laura Lorenz <lauralorenz@google.com>

* Don't use the global feature gate for temp usage

Signed-off-by: Laura Lorenz <lauralorenz@google.com>

* Expose default error, and some comments

Signed-off-by: Laura Lorenz <lauralorenz@google.com>

* Hint fuzzer for less arbitrary values to FeatureGates

Signed-off-by: Laura Lorenz <lauralorenz@google.com>

---------

Signed-off-by: Laura Lorenz <lauralorenz@google.com>
Co-authored-by: Tsubasa Nagasawa <toversus2357@gmail.com>
2024-11-09 01:44:43 +00:00
Tim Allclair
3a2555ee93 Emit events for resize error states 2024-11-08 16:43:55 -08:00
Tim Allclair
61e6242967 Move windows infeasible resize check into canResizePod 2024-11-08 16:42:10 -08:00
Kubernetes Prow Robot
591c75e40b
Merge pull request #128694 from tallclair/revert-127300-error-propagation
Revert "[FG:InPlacePodVerticalScaling] kubelet: Propagate error in doPodResizeAction() to the caller"
2024-11-08 19:14:43 +00:00
Kubernetes Prow Robot
fd66693104
Merge pull request #128701 from pohly/prune-junit-xml-trailing-semicolon
prune-junit-xml: avoid appending semicolon
2024-11-08 17:54:50 +00:00
Kubernetes Prow Robot
31970d418c
Merge pull request #126503 from skitt/generic-fake-client
Use generics to share code in fake client-go implementations
2024-11-08 17:54:43 +00:00
Kubernetes Prow Robot
2012060312
Merge pull request #128692 from dinhxuanvu/extra-dir
Remove deprecated extra-dirs flag
2024-11-08 16:38:57 +00:00
Kubernetes Prow Robot
469524442f
Merge pull request #126621 from my-git9/node-deadcode-remove
Remove deadcode in pkg/util/node
2024-11-08 16:38:45 +00:00
Patrick Ohly
dd6ad66f5f prune-junit-xml: avoid appending semicolon
Appending a semicolon after some text is unnecessary if it's the last
entry. This led to visually distracting extra semicolons in Spyglass which
looked like a bug in Spyglass.

Now the code checks if a semicolon is necessary before inserting it.
2024-11-08 16:12:47 +01:00