Commit Graph

130477 Commits

Author SHA1 Message Date
Shingo Omura
ee26a5837c Update staging/src/k8s.io/dynamic-resource-allocation/deviceattribute/pci_linux.go
Co-authored-by: Kevin Klues <klueska@gmail.com>
2025-07-22 10:10:40 +09:00
Shingo Omura
d28791fa62 Remove unused sysfsPath's methods
Signed-off-by: Shingo Omura <everpeace@gmail.com>
2025-06-30 20:59:13 +09:00
Shingo Omura
7e816ca9b1 Commented out for unused sysfspath methods
Signed-off-by: Shingo Omura <everpeace@gmail.com>
2025-06-30 16:14:50 +09:00
Shingo Omura
2bc45ca466 Make test only helpers private (sysfspath methods, touchFile, createSymlink)
Signed-off-by: Shingo Omura <everpeace@gmail.com>
2025-06-30 16:14:44 +09:00
Shingo Omura
94973ba3fc Fix typo: s/smock/mock/g
Signed-off-by: Shingo Omura <everpeace@gmail.com>
2025-06-30 16:14:33 +09:00
Shingo Omura
caa64afd01 merge constants.go into attribute.go
Signed-off-by: Shingo Omura <everpeace@gmail.com>
2025-06-18 22:38:21 +09:00
Shingo Omura
73d65f830a Put _linux suffix for linux specific go files 2025-06-18 21:30:52 +09:00
Shingo Omura
88b34ea1f1 Move bdfRegexp from global constant to local variable 2025-06-18 21:28:41 +09:00
Shingo Omura
fc854a9a86 Introduce DeviceAttribute{Name, Value} and change return type of 'GetPCIeRootAttributeByPCIBusID' with it
Signed-off-by: Shingo Omura <everpeace@gmail.com>
2025-06-18 21:26:15 +09:00
Shingo Omura
8ed8217e9a Moved device attribute constants from api to deviceattribute package
Signed-off-by: Shingo Omura <everpeace@gmail.com>
2025-06-18 21:26:13 +09:00
Shingo Omura
f7461a12dc Revert "Add StandardDeviceAttributes and StandardPCIDeviceAttributes helper functions"
This reverts commit 2869b6f42c.
2025-06-18 21:04:16 +09:00
Shingo Omura
2869b6f42c Add StandardDeviceAttributes and StandardPCIDeviceAttributes helper functions
Signed-off-by: Shingo Omura <everpeace@gmail.com>
2025-06-17 23:04:43 +09:00
Shingo Omura
a8ab9eb5fe Simplify the implementation: just provide GetPCIeRootAttributeByPCIBusID 2025-06-17 22:58:17 +09:00
Shingo Omura
59f0ab97c2 Add boilerplate header to go files
Signed-off-by: Shingo Omura <everpeace@gmail.com>
2025-06-15 15:50:02 +09:00
Shingo Omura
cb26d065d3 Validate PCI Address (domain is 16 bits, bus is 8 bits, device is 5 bits, function is 3 bits)
it also changes the data type from uint32 to uint16 for PCI Root and PCI Address

Signed-off-by: Shingo Omura <everpeace@gmail.com>
2025-06-14 15:57:48 +09:00
Shingo Omura
752a043692 fix lint: apply De Morgan's laws to simplify conditionals
Signed-off-by: Shingo Omura <everpeace@gmail.com>
2025-06-14 15:57:46 +09:00
Shingo Omura
666f38f418 DRA: Introduce a helper function producing standardized device attributes for DRA drivers
The shared function can provide a way for DRA drivers to produce standardized device attributes in a consistent way.

Signed-off-by: Shingo Omura <everpeace@gmail.com>
2025-06-14 04:19:00 +09:00
Kubernetes Prow Robot
74830fbd06 Merge pull request #132270 from pohly/dra-kubelet-version-skew-labels
DRA E2E: label tests which need a certain minimum kubelet
2025-06-13 03:29:02 -07:00
Kubernetes Prow Robot
5a0f0f7b2d Merge pull request #122634 from carlory/KEP-3902
Promote SeparateTaintEvictionController to stable
2025-06-13 03:28:55 -07:00
Kubernetes Prow Robot
41dc045529 Merge pull request #132257 from p0lyn0mial/upstream-watchlist-typed-client-rm
typed client: remove support for API streaming
2025-06-13 01:47:03 -07:00
Kubernetes Prow Robot
0e674fd468 Merge pull request #130107 from carlory/fix-getPodMatches
fix getPodMatches should call /runningpods endpoint
2025-06-13 01:46:56 -07:00
Kubernetes Prow Robot
8458cfed43 Merge pull request #132258 from J3m3/patch
Correct error message to print `ResetConfigurationKind`
2025-06-12 21:42:56 -07:00
carlory
901441c66e Promote SeparateTaintEvictionController to stable
Signed-off-by: carlory <baofa.fan@daocloud.io>
2025-06-13 11:15:35 +08:00
Kubernetes Prow Robot
ad4cc125c9 Merge pull request #132260 from kishen-v/bump-nonewprivs
Bump base image used in nonewprivs to alpine:3.22
2025-06-12 19:18:56 -07:00
Kubernetes Prow Robot
060ed4e99a Merge pull request #132165 from gavinkflam/130690/fix-admission-control-response-codes
bug: Fix misleading response codes in admission control metrics
2025-06-12 16:07:01 -07:00
Kubernetes Prow Robot
146196c317 Merge pull request #132007 from AumPatel1/issue-132002-hpa-retry
Fix: HPA suppresses FailedRescale event on successful conflict retry.
2025-06-12 14:58:57 -07:00
Jordan Liggitt
9251b2a7a5 Expand webhook test to check rejection metrics 2025-06-12 16:02:19 -04:00
Kubernetes Prow Robot
d55b119d34 Merge pull request #132269 from dims/update-to-latest-github.com/modern-go/reflect2
Update to latest github.com/modern-go/reflect2
2025-06-12 10:47:02 -07:00
Kubernetes Prow Robot
e33933fa97 Merge pull request #132232 from likakuli/feat-optlabelselector
feat: optimize label selector match performance
2025-06-12 10:46:56 -07:00
Lukasz Szaszkiewicz
f8b4ea50e8 ./hack/update-internal-modules.sh 2025-06-12 19:26:26 +02:00
Kubernetes Prow Robot
7e94ec9eac Merge pull request #132000 from pohly/dra-api-alpha3-removal
DRA API: remove obsolete types from v1alpha3
2025-06-12 09:39:12 -07:00
Kubernetes Prow Robot
d2af3329e9 Merge pull request #131214 from carlory/remove-unneeded-code
cleanup unneeded code
2025-06-12 09:39:04 -07:00
Kubernetes Prow Robot
004d55cffa Merge pull request #129501 from carlory/PodDisruptionConditions
Remove general available feature-gate PodDisruptionConditions
2025-06-12 09:38:56 -07:00
Patrick Ohly
71b2f32d70 DRA E2E: label tests which need a certain minimum kubelet
This is used by n-1 and n-2 version skew jobs to exclude
current tests which cannot run with a certain older kubelet
release because the tested functionality wasn't present yet.
2025-06-12 18:16:04 +02:00
Kubernetes Prow Robot
dac3c09bd1 Merge pull request #132251 from ardaguclu/kubectl-interactive-delete-fix
kubectl delete: update interactive delete to break on new line
2025-06-12 08:27:05 -07:00
Kubernetes Prow Robot
a715a1f520 Merge pull request #132208 from danwinship/loadbalancer-test-ratelimit
Rate-limit the LoadBalancer rolling update test
2025-06-12 08:26:58 -07:00
Davanum Srinivas
3908550c0d Update to latest github.com/modern-go/reflect2
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-06-12 11:20:39 -04:00
Lukasz Szaszkiewicz
d8bfafe07a test/apimachinery/watchlist: prove typed client's List method not streaming 2025-06-12 16:02:10 +02:00
Gavin Lam
601065a7c6 bug: Fix misleading response codes in admission control metrics
Signed-off-by: Gavin Lam <gavin.oss@tutamail.com>
2025-06-12 09:44:41 -04:00
Kubernetes Prow Robot
6f7df1f143 Merge pull request #132247 from kishen-v/bump-ipc-utils
Bump ipc-utils base image to alpine:3.22
2025-06-12 06:42:57 -07:00
Kishen Viswanathan
69a5bda836 Bump base image used in nonewprivs to alpine:3.22 2025-06-12 18:15:11 +05:30
Jesung Yang
04110fce1b Correct error message to print ResetConfigurationKind
The previous message incorrectly used `JoinConfigurationKind`,
which is unrelated, as `documentMapToResetConfiguration` function
only processes ResetConfiguration.
2025-06-12 21:29:54 +09:00
Lukasz Szaszkiewicz
3443c1115a make update 2025-06-12 13:54:57 +02:00
Lukasz Szaszkiewicz
798c6ebab8 client-gen/code-generator: remove watchList 2025-06-12 13:41:50 +02:00
Kubernetes Prow Robot
50773d75b6 Merge pull request #132250 from AxeZhan/test3960
Flaky test fix for KEP3960:  Lifecycle Sleep Hook
2025-06-12 04:41:06 -07:00
aumpatel
db2555628c Fix: HPA suppresses FailedRescale event on successful conflict retry
This change modifies the HPA controller to use retry.RetryOnConflict when updating a scale subresource. This prevents the controller from emitting a FailedRescale event on transient API conflicts if a subsequent retry succeeds. If the retry is successful, a SuccessfulRescale event is emitted. If all retries are exhausted and the conflict persists, the original FailedRescale event is emitted. This reduces event noise caused by race conditions where the scale subresource is updated by another process.
2025-06-12 07:35:07 -04:00
Lukasz Szaszkiewicz
2f943293ed client-go/gentype: remove watchlist 2025-06-12 13:13:02 +02:00
Kubernetes Prow Robot
2dd1424b54 Merge pull request #132249 from kishen-v/bump-perl
Bump perl base image to perl:5.40
2025-06-12 03:35:02 -07:00
Kubernetes Prow Robot
d2ab26a5c5 Merge pull request #132222 from cpanato/update-go-main
[go] Bump dependencies, images and versions used to Go 1.24.4 and distroless iptables
2025-06-12 03:34:55 -07:00
Kubernetes Prow Robot
990e5ded4f Merge pull request #132242 from a-finocchiaro/fix/update-apparmor-alpine-to-3-22
bump to alpine 3.22 and bump apparmor-loader to 1.6
2025-06-12 01:48:57 -07:00