Commit Graph

127140 Commits

Author SHA1 Message Date
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
Tim Allclair
1d822f1dc8 Fix linter errors 2024-11-08 06:48:50 -08:00
Kubernetes Prow Robot
da215bf06a
Merge pull request #128697 from carlory/fix-node-test
Make fake node as ready but unschedulable
2024-11-08 14:36:43 +00:00
carlory
f0f319c6af Make fake node as ready but unschedulable 2024-11-08 18:12:18 +08:00
Stephen Kitt
736e5560ba
Align fake client-go clients with the main interface
"Real" clients use objectWithMeta to enforce support for meta.Object;
strictly speaking, fakes don't need this, but it's best to align them
with the real clients to ensure that fakes don't end up allowing types
that can't be used with the real clients.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2024-11-08 10:44:22 +01:00
Kubernetes Prow Robot
2691a29eac
Merge pull request #128683 from AnishShah/validation
[FG:InPlacePodVerticalScaling] Disallow removing requests & limits for Burstable pods.
2024-11-08 09:08:43 +00:00
Stephen Kitt
be03bcf324
Run codegen
Signed-off-by: Stephen Kitt <skitt@redhat.com>
2024-11-08 09:48:59 +01:00
Stephen Kitt
b0ce65df9b
Generify fake clientsets
This adds a generic implementation of a fake clientset, and uses it to
replace the template code in generated fake clientsets for the default
methods. The templates are preserved as-is (or as close as they can
be) for use in extensions, whether for resources or subresources.

Fake clientsets with no extensions are reduced to their main getter,
their specific struct, and their constructor. All method
implementations are provided by the generic implementation. The
dedicated struct is preserved to allow extensions and expansions to be
defined where necessary.

Instead of handling the variants (with/without list, apply) with a
complex sequence of if statements, build up an index into an array
containing the various declarations.

Similarly, instead of calling different action constructors for
namespaced and non-namespaced clientsets, assume the current behaviour
of non-namespaced action creation (equivalent to creating a namespaced
action with an empty namespace) and document that assumption in the
action implementation.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2024-11-08 09:33:28 +01:00
umagnus
48e43445a6 fix isLikelyNotMountPointStatx relative path issue 2024-11-08 07:23:45 +00:00
Kubernetes Prow Robot
c25f5eefe4
Merge pull request #128407 from ndixita/pod-level-resources
[PodLevelResources] Pod Level Resources Feature Alpha
2024-11-08 07:10:50 +00:00
Kubernetes Prow Robot
45260fd76a
Merge pull request #127857 from Jefftree/cle-v1alpha2
Coordinated Leader Election add v1alpha2
2024-11-08 07:10:43 +00:00
Tim Allclair
bf8354d460
Revert "[FG:InPlacePodVerticalScaling] kubelet: Propagate error in doPodResizeAction() to the caller" 2024-11-07 22:43:59 -08:00
Vu Dinh
917aa9a8c4 Remove deprecated extra-dirs flag
The extra-dirs input is no longer in use. The extra-dirs flag, however, is still present
even though it is not wired in conversion code. As a result, any extra dirs inputs are provided
via extra-dirs flag are not taken in consideration for conversion-gen. This flag should be removed
from args options to avoid confusion.

Signed-off-by: Vu Dinh <vudinh@outlook.com>
2024-11-08 00:58:39 -05:00
Kubernetes Prow Robot
6db94779e4
Merge pull request #128686 from thockin/take_over_pr-125233
Add missing comments in k8s.io/api/core/v1
2024-11-08 05:24:59 +00:00
Kubernetes Prow Robot
0fff5bbe7d
Merge pull request #128680 from tallclair/min-cpu
[FG:InPlacePodVerticalScaling] Handle edge cases around CPU MinShares
2024-11-08 05:24:51 +00:00