Commit Graph

134908 Commits

Author SHA1 Message Date
yshngg
7685612b9c refactor(event): simplify conditional logic in event handling for both v1 and eventsv1 APIs
Signed-off-by: yshngg <yshngg@outlook.com>
2025-08-29 17:03:20 +08:00
carlory
faa0f33b8b remove v1beta3 flowcontrol from rest storage
Signed-off-by: carlory <baofa.fan@daocloud.io>
2025-08-29 16:32:08 +08:00
Kubernetes Prow Robot
c9cc8c1ea8 Merge pull request #133771 from marckhouzam/marck/fixResourceCompletion
Fix completion of resource names
2025-08-29 01:03:09 -07:00
Sascha Grunert
fd2d2fd66f Convert k8s.io/kubelet/pkg/apis/dra from gogo to protoc
Use standard protoc for the dra instead of gogo.

Part of kubernetes#96564

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2025-08-29 09:40:51 +02:00
Marc Khouzam
d194619979 Fix linter
Signed-off-by: Marc Khouzam <marc.khouzam@gmail.com>
2025-08-28 23:04:35 -07:00
carlory
36cf728281 Drop SizeMemoryBackedVolumes after the feature GA-ed in 1.32
Signed-off-by: carlory <baofa.fan@daocloud.io>
2025-08-29 14:01:39 +08:00
Jordan Liggitt
9f8d9432e2 bump gopkg.in/evanphx/json-patch.v4 2025-08-29 00:31:11 -04:00
Marc Khouzam
f3d278e75d Fix completion of resource names
The output format is now used by the `Complete()` function, so it must
be set before invoking said function.

The commit also adds a unit tests for this scenario.

Signed-off-by: Marc Khouzam <marc.khouzam@gmail.com>
2025-08-28 21:29:16 -07:00
carlory
233384d4e4 deflake e2e test: Services should implement NodePort and HealthCheckNodePort correctly when ExternalTrafficPolicy changes
Signed-off-by: carlory <baofa.fan@daocloud.io>
2025-08-29 11:24:44 +08:00
Joe Betz
d85ce5310d Appease linters 2025-08-28 20:53:54 -04:00
Joe Betz
e6ae04e02c generate 2025-08-28 20:09:24 -04:00
Joe Betz
15b29a0fa2 Add +k8s:ifEnabled and +k8s:ifDisabled tags
Rename if(OptionsEnabled|Disabled) -> if(Enabled|Disabled)

Drop stability

Use positional arg for option name
2025-08-28 20:09:24 -04:00
Joe Betz
243f47f3b3 Omit type names of emitted slice elements to appease gofmt 2025-08-28 20:09:24 -04:00
Joe Betz
5c955edfe0 Add support variable initialization using any literal type 2025-08-28 20:09:24 -04:00
Joe Betz
e8186d0679 Add output tests 2025-08-28 20:09:24 -04:00
Joe Betz
8435fbab98 Add +k8s:enumExclude and options support to +k8s:enum 2025-08-28 20:09:19 -04:00
Joe Betz
64d9ddcf9d Add enumExclude support to enum validator 2025-08-28 19:45:18 -04:00
Joe Betz
ed170c1c0a Add constant discovery, ScopeConst and StructLiberal. Remove ScopeAny.
# Conflicts:
#	staging/src/k8s.io/code-generator/cmd/validation-gen/validators/limits.go

# Conflicts:
#	staging/src/k8s.io/code-generator/cmd/validation-gen/output_tests/tags/options/zz_generated.validations.go
2025-08-28 19:45:16 -04:00
Kubernetes Prow Robot
be361a18dd Merge pull request #133736 from dims/populate-pending-and-ineligible-endpoints
Populate pending and ineligible endpoints
2025-08-28 14:57:16 -07:00
Kubernetes Prow Robot
dd64619a62 Merge pull request #133716 from ahmetb/metav1-status-list-marker
api: Remove +listType marker for non-list field
2025-08-28 14:57:09 -07:00
Michael Aspinwall
e1218922db Add unit tests to isResourceUpdatable 2025-08-28 21:04:59 +00:00
Kubernetes Prow Robot
31edf4feb1 Merge pull request #133760 from BenTheElder/xtrace-away
drop spammy xtrace from hack/test scripts
2025-08-28 13:27:09 -07:00
Davanum Srinivas
aea2723744 populate pending and ineligible endpoints 2025-08-28 15:41:17 -04:00
Benjamin Elder
e5f4caf62a drop spammy xtrace from hack/test scripts
this shouldn't be set when sourcing install-etcd.sh, which has a lot of non-trivial shell to log

we can leave it when it just logs the test commands
2025-08-28 12:21:01 -07:00
Kubernetes Prow Robot
6b33567f9b Merge pull request #133684 from soltysh/drop_StatefulSetAutoDeletePVC
Drop StatefulSetAutoDeletePVC after the feature GA-ed in 1.32
2025-08-28 10:49:15 -07:00
Kubernetes Prow Robot
b260693d18 Merge pull request #133682 from ardaguclu/increase-port-forward-client-timeout
Increase port-forward broken connection detection client timeout
2025-08-28 10:49:08 -07:00
Kubernetes Prow Robot
6fad180fe3 Merge pull request #133463 from ffromani/e2e-node-cpumgr-cleanup
e2e: node: cpumanager: replace the test suite
2025-08-28 09:23:09 -07:00
Natasha Sarkar
f1d980adf9 separate resource-quota and limit-ranger resize tests 2025-08-28 15:56:10 +00:00
Carlos Eduardo Arango Gutierrez
541ff7cd16 DRA: Add configurable health check timeout per device
Implements device-specific health check timeouts in the DRA health monitoring
system as defined in KEP-4680. This allows DRA drivers to specify custom
timeout values for individual devices through the gRPC health API.

Changes:
- Add HealthCheckTimeout field to state.DeviceHealth struct to store
  device-specific timeout durations
- Add health_check_timeout_seconds field to DeviceHealth proto message
  in the DRA health gRPC API (v1alpha1)
- Update manager.go to extract timeout from gRPC responses and apply
  DefaultHealthTimeout (30s) when not specified
- Handle negative timeout values defensively by logging a warning and
  falling back to the default timeout
- Simplify healthinfo.go by removing redundant fallback logic since
  timeouts are now always set at creation time
- Update tests to include HealthCheckTimeout in test fixtures

The timeout behavior is:
- Positive values: Use the specified timeout in seconds
- Zero or unspecified: Use DefaultHealthTimeout (30 seconds)
- Negative values: Log warning and use DefaultHealthTimeout

This implementation provides flexibility for DRA drivers to define
appropriate health check intervals for different device types while
maintaining backward compatibility through sensible defaults.

Ref: KEP-4680 (Add Resource Health to Pod Status)
Ref: kubernetes/enhancements#5476

Signed-off-by: Carlos Eduardo Arango Gutierrez <eduardoa@nvidia.com>
2025-08-28 16:34:34 +02:00
Kubernetes Prow Robot
bd55877b09 Merge pull request #133325 from liggitt/conversion-gen-unexported-pointers
Fix conversion-gen handling of unexported fields and custom conversions of pointers
2025-08-28 06:55:17 -07:00
Kubernetes Prow Robot
546519987d Merge pull request #132288 from thevilledev/chore/coredns-v1.12.2
chore: update CoreDNS to v1.12.3
2025-08-28 06:55:10 -07:00
Kubernetes Prow Robot
8c1094d54a Merge pull request #133615 from carlory/fix-133610
Promote VAC API test to conformance
2025-08-28 05:37:17 -07:00
Kubernetes Prow Robot
aead71c1c2 Merge pull request #132128 from skitt/cadvisor-0.53
Bump cadvisor to 0.53
2025-08-28 05:37:10 -07:00
Arda Güçlü
f336f4c75a Close response body after the conn is closed 2025-08-28 15:21:57 +03:00
Arda Güçlü
2608a38d47 Increase port-forward broken connection detection client timeout 2025-08-28 15:16:32 +03:00
Maciej Szulik
2f356d02e2 make update
Signed-off-by: Maciej Szulik <soltysh@gmail.com>
2025-08-28 13:35:20 +02:00
Maciej Szulik
09e357d31f Drop StatefulSetAutoDeletePVC after the feature GA-ed in 1.32
Signed-off-by: Maciej Szulik <soltysh@gmail.com>
2025-08-28 13:35:16 +02:00
Francesco Romani
bf6a55cd06 e2e: node: address linter errors
remove now-unused code

Signed-off-by: Francesco Romani <fromani@redhat.com>
2025-08-28 13:24:02 +02:00
Kubernetes Prow Robot
67216cfdd9 Merge pull request #133408 from richabanker/etcd-metrics-test
Update TestDeleteStoreStats to validate the new apiserver_resource_objects metric
2025-08-28 03:17:16 -07:00
Kubernetes Prow Robot
7174623fb8 Merge pull request #131639 from borg-land/fetch-mounter-cdn
pull mounter from dl.k8s.io
2025-08-28 03:17:10 -07:00
Francesco Romani
9aed0813e6 e2e: node: cpumgr: replace old testsuite
This final change in the series completes the transition
to the new test suite

Signed-off-by: Francesco Romani <fromani@redhat.com>
2025-08-28 12:02:27 +02:00
Francesco Romani
c4f7272f62 e2e: node: cpumgr: keep only scaffolding
keep only the test stub, as all the code was already
removed by PR in the series because superseded by
code in cpumanager_test.go,
which will be moved in cpu_manager_test.go at the
end of this series.
Split to make the review easier.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2025-08-28 11:51:40 +02:00
Francesco Romani
37d678e098 e2e: node: cpumgr: remove old sidecar container tests
superseded by code in cpumanager_test.go,
which will be moved in cpu_manager_test.go at the
end of this series.
Split to make the review easier.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2025-08-28 11:51:40 +02:00
Francesco Romani
666dec8c2f e2e: node: cpumgr: remove old reserved cpus tests
superseded by code in cpumanager_test.go,
which will be moved in cpu_manager_test.go at the
end of this series.
Split to make the review easier.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2025-08-28 11:51:40 +02:00
Francesco Romani
d98069e22c e2e: node: cpumgr: remove old distribute-cpus tests
superseded by code in cpumanager_test.go,
which will be moved in cpu_manager_test.go at the
end of this series.
Split to make the review easier.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2025-08-28 11:51:40 +02:00
Francesco Romani
e2624d0cce e2e: node: cpumgr: remove old smt alignment tests
superseded by code in cpumanager_test.go,
which will be moved in cpu_manager_test.go at the
end of this series.
Split to make the review easier.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2025-08-28 11:51:40 +02:00
Francesco Romani
9e6073304f e2e: node: cpumgr: remove old cfs quota tests
superseded by code in cpumanager_test.go,
which will be moved in cpu_manager_test.go at the
end of this series.
Split to make the review easier.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2025-08-28 11:51:40 +02:00
Kubernetes Prow Robot
cc39357833 Merge pull request #122140 from huww98/multi-volume-for-upstream
kubelet: multiple volumes reference one PVC in one Pod
2025-08-28 01:43:10 -07:00
carlory
bf9511eda6 Remove GA feature gate ComponentSLIs
Signed-off-by: carlory <baofa.fan@daocloud.io>
2025-08-28 16:26:55 +08:00
Kubernetes Prow Robot
23acc94870 Merge pull request #129986 from djboris9/patch-1
fix(kubelet-windows): Typo in structured log user display name fixed
2025-08-28 00:29:09 -07:00