Commit Graph

126703 Commits

Author SHA1 Message Date
Antonio Ojea
8e1d0c664c rest client watch: use same name for package as folder 2024-11-04 19:56:55 +00:00
Filip Křepinský
05bc270870
add tests for getReplicaSetFraction in the deployment controller (#128535)
* better name variables in deployment_util

* add tests for getReplicaSetFraction in the deployment controller

- make validation more robust and make sure we do not divide by 0
2024-11-04 19:11:43 +00:00
Kubernetes Prow Robot
7a4d755644
Merge pull request #128507 from dims/use-k8s.io/utils/lru-instead-of-github.com/golang/groupcache/lru
Use k8s.io/utils/lru instead of github.com/golang/groupcache/lru
2024-11-04 19:11:35 +00:00
Alay Patel
3e3276e9fe
Promote PodIndexLabel for Statefulset and IndexedJob stable (#128387)
* lock feature gate for PodIndexLabel and mark it GA

Signed-off-by: Alay Patel <alayp@nvidia.com>

* add emulated version if testing disabling of PodIndexLabel FG

Signed-off-by: Alay Patel <alayp@nvidia.com>

---------

Signed-off-by: Alay Patel <alayp@nvidia.com>
2024-11-04 19:11:28 +00:00
leonzz
d5067208e4 fix boottime inconsistency with accurate uptime
`golang.org/x/sys/unix`.`Sysinfo` only provide uptime in whole second,
which leads to +-1s drifting in the boot time calculation. Reading from
/proc/stat is a better option as there's a reliable boot time directly
returned from linux kernel.
2024-11-04 19:09:27 +00:00
Kubernetes Prow Robot
b4d91d1b8a
Merge pull request #128517 from Tal-or/memorymanager-ga-features
node: kubelet: memmgr: Memory Manager to GA
2024-11-04 17:19:36 +00:00
Kubernetes Prow Robot
6a1a6fd85f
Merge pull request #126894 from carlory/ZeroLimitedNominalConcurrencyShares
remove generally available feature-gate ZeroLimitedNominalConcurrencyShares
2024-11-04 17:19:29 +00:00
Ben Luddy
0b7b42cc10
Reject custom marshalers from direct CBOR Marshal and Unmarshal.
Types that implement any of the stdlib text and JSON marshaler and unmarshaler interfaces without
implementing the corresponding CBOR interfaces are currently rejected by the CBOR serializer. This
is a temporary measure for the initial alpha; such types will ultimately be handled via automatic
transcoding. The "cbor/direct" subpackage exports Marshal and Unmarshal functions to support the
implementation of custom CBOR marshalling and unmarshalling behaviors, but did not include the
safeguard against handling non-CBOR custom marshalers.
2024-11-04 11:29:21 -05:00
Davanum Srinivas
2b0592ee77
Use k8s.io/utils/lru instead of github.com/golang/groupcache/lru
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2024-11-04 10:51:13 -05:00
Kubernetes Prow Robot
cb31e42b85
Merge pull request #128533 from neolit123/1.32-update-system-validators-to-v1.9.0
vendor: update system-validators to v1.9.1
2024-11-04 14:49:28 +00:00
Kubernetes Prow Robot
cc319bf654
Merge pull request #128527 from atiratree/annotations-validation
improve validation for ReplicaSet annotations in the deployment controller
2024-11-04 13:07:28 +00:00
Kubernetes Prow Robot
6ae2d359ad
Merge pull request #128494 from dims/drop-go-colortext-and-its-usage
Drop go-colortext and its usage
2024-11-04 11:41:35 +00:00
Kubernetes Prow Robot
c6ea102f5f
Merge pull request #128298 from SergeyKanzhelev/convergePluginRegistrationForDRAAndDP
converge DRA and Device Plugin plugins registration
2024-11-04 11:41:28 +00:00
Lubomir I. Ivanov
6928007087 vendor: update system-validators to v1.9.1 2024-11-04 13:25:28 +02:00
Filip Křepinský
3ac0ac7a81 improve validation for ReplicaSet annotations in the deployment controller 2024-11-04 10:43:16 +01:00
Kubernetes Prow Robot
b845137026
Merge pull request #128526 from atiratree/deployment-improve-scaling
simplify ScalingReplicaSet event building in the deployment controller
2024-11-04 09:01:28 +00:00
Maciej Skoczeń
8371a35824 Split scheduler_perf config into subdirectories 2024-11-04 08:45:34 +00:00
Talor Itzhak
a56fde3694 lint: fix linter's complaints
Signed-off-by: Talor Itzhak <titzhak@redhat.com>
2024-11-04 09:59:39 +02:00
Talor Itzhak
37bcd38785 memorymanager: FG is locked to ON by default
We can remove the `if()` guards, since
the feature is always available.

Signed-off-by: Talor Itzhak <titzhak@redhat.com>
2024-11-04 09:57:21 +02:00
Talor Itzhak
c279c67071 hack/update-featuregates.sh output
Signed-off-by: Talor Itzhak <titzhak@redhat.com>
2024-11-04 09:57:18 +02:00
Talor Itzhak
004db73142 node:kubelet:memmgr: Memory Manager to GA
Signed-off-by: Talor Itzhak <titzhak@redhat.com>
2024-11-04 09:56:06 +02:00
Kubernetes Prow Robot
f4d05aad77
Merge pull request #128470 from omerap12/autoscale-unit
kubectl: add test coverage for autoscale command
2024-11-04 07:43:28 +00:00
Filip Křepinský
a460e2c413 simplify ScalingReplicaSet event building in the deployment controller 2024-11-04 08:42:22 +01:00
carlory
8a45986eea clean up tmp kubelet dir 2024-11-04 14:52:41 +08:00
Kubernetes Prow Robot
3036d107a0
Merge pull request #127074 from Tal-or/mm_fix_checkpoint_file_comparison
memorymanager: fix checkpoint file comparison
2024-11-04 02:13:27 +00:00
Tim Allclair
96aa71cc02 Cleanup unused cacheless PLEG code 2024-11-03 13:36:12 -08:00
Tim Allclair
13ae28bd67 Speed up resize test suite: only test rollback for a subset of cases 2024-11-03 13:02:17 -08:00
Kubernetes Prow Robot
6cb5ea56cb
Merge pull request #128484 from carlory/improve-error
improve error message format for WaitForPodSuccessInNamespaceTimeout
2024-11-03 02:19:27 +00:00
Abhijit Hoskeri
d86debe500 e2e_node: Pass e2eCriProxy instead of updating global.
e2eCriProxy is defined in a _test.go and referenced
in a non-test file. This confuses gopls.

It's also clearer to future readers.
2024-11-02 17:40:49 -07:00
Kubernetes Prow Robot
dfd456c567
Merge pull request #128276 from kolyshkin/runc-1.2.0
vendor: bump runc/libcontainer to v1.2.1
2024-11-02 18:23:26 +00:00
Kubernetes Prow Robot
6fce566781
Merge pull request #128474 from neolit123/1.32-handle-custom-addreses-comp-readyz
kubeadm: use actual addresses/ports for WaitForAllControlPlaneComponents
2024-11-02 17:19:26 +00:00
Lubomir I. Ivanov
b2741f7b1c kubeadm: use actual addresses/ports for WaitForAllControlPlaneComponents
By default check the KCM and scheduler on 127.0.0.1:<port> as that is the
defaall --bind-address kubeamd uses for these components.

For kube-apiserver take the value from APIEndpoint.AdvertiseAddress which is
dynamically detected from the host. Unless the user has passed explicitly --advertise-address
as an extra arg.

Read the <port> values for all components from the --secure-port flag
value if needed. Otherwise use defaults.

Use /livez for apiserver and scheduler. Add TODO for KCM to
switch to /livez as well.
2024-11-02 18:09:36 +02:00
Kubernetes Prow Robot
406fb26628
Merge pull request #128511 from aojea/revert-128508-fix-118141
Revert "Don't stop the next poll when it fails to grab logs"
2024-11-02 14:53:26 +00:00
Antonio Ojea
2c23db7311 don't panic inside e2e test 2024-11-02 13:51:46 +00:00
Antonio Ojea
e973b05f89
Revert "Don't stop the next poll when it fails to grab logs" 2024-11-02 09:50:11 +01:00
Omer Aplatony
6cb17d85a5 kubectl: add test coverage for autoscale command
Signed-off-by: Omer Aplatony <omerap12@gmail.com>
2024-11-02 09:11:53 +02:00
Kubernetes Prow Robot
fa77f7f548
Merge pull request #128508 from carlory/fix-118141
Don't stop the next poll when it fails to grab logs
2024-11-02 06:35:26 +00:00
carlory
bd0c5a40f8 Don't stop the next poll when it fails to grab logs 2024-11-02 13:31:36 +08:00
AxeZhan
200a61b6b9 Graduate PodLifecycleSleepAction to GA 2024-11-02 11:05:36 +08:00
Kubernetes Prow Robot
2c4a863bf9
Merge pull request #126620 from yunwang0911/master
[InPlacePodVerticalScaling] fix restore checkpoint bug: failed to verify pod status checkpoint checksum because of different behaviors of func Quantity.Marshal and Quantity.Unmarshal
2024-11-02 00:33:27 +00:00
Kir Kolyshkin
1d4f88b1ee vendor: bump runc to v1.2.1
For one thing, this release decouples device management from
libcontainer/cgroups. You can see the result of this in a dropped
cilium/ebpf dependency (which is only needed for device management).

NOTE that due to an issue with go mod / go list,
github.com/opencontainers/runc had to be added to
hack/unwanted-dependencies.json under x/exp. This is bogus because
opencontainers/runc does not use x/exp directly, only via cilium/ebpf
dependency (which is not vendored here).

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2024-11-01 17:26:09 -07:00
Kubernetes Prow Robot
6bc0768c62
Merge pull request #127744 from carlory/fix-126662
Tighten validation on the qosClass field of pod status
2024-11-01 22:33:27 +00:00
Tim Allclair
f557903263 Delete unusued max resources function 2024-11-01 14:46:56 -07:00
Tim Allclair
6cb301a56f Don't consider allocated resources for limitranger constraints 2024-11-01 14:10:14 -07:00
Tim Allclair
99dcf07e21 If ResourceRequirements changed, always mark a proposed resize 2024-11-01 14:10:12 -07:00
Kubernetes Prow Robot
1890157a6c
Merge pull request #128490 from dims/remove-incorrect-usage-of-golang.org/x/net/context
Remove incorrect usage of golang.org/x/net/context
2024-11-01 21:09:26 +00:00
Tim Allclair
bf4f1832e2 Don't clear resize status when resources are missing 2024-11-01 14:02:59 -07:00
Tim Allclair
84201658c3 Fix ResizeStatus state transitions 2024-11-01 14:02:59 -07:00
Tim Allclair
04aeb40793 Comment clarifying definition of non-resizable containers 2024-11-01 14:02:58 -07:00
Tim Allclair
9d28cc0413 Improve resize test debugability 2024-11-01 14:02:58 -07:00