Commit Graph

134908 Commits

Author SHA1 Message Date
Heba Elayoty
11291fb6c5 update featureflag list
Signed-off-by: Heba Elayoty <heelayot@microsoft.com>
2025-09-29 14:02:17 -07:00
Heba Elayoty
b656027b93 Update MaxUnavailableStatefulSet feature gate to beta
Signed-off-by: Heba Elayoty <heelayot@microsoft.com>
2025-09-29 14:02:13 -07:00
Kubernetes Prow Robot
e87a447ca2 Merge pull request #134327 from p0lyn0mial/watchlist-e2e-table-improve
test/e2e/apimachinery/watchlist: select only wellknown secrets for table test
2025-09-29 13:46:16 -07:00
Michael Aspinwall
2cef54c145 feat: Add helper function for client-go to compare resource version 2025-09-29 20:41:24 +00:00
Ryan Richard
f5e65af173 add getters for event User and ImpersonatedUser on AuditContext
The ability to get these values was deleted by #129472 which removed
the public function audit.AuditEventFrom. The new getters return copies
of the underlying objects to prevent external mutations of the objects
held by the audit events.
2025-09-29 12:41:59 -07:00
Kubernetes Prow Robot
7f180515d7 Merge pull request #134233 from aaron-prindle/dv-validate-csi-driver-option-support
refactor(DRA validation): Add granular controls to ValidateCSIDriverName for declarative validation migration
2025-09-29 12:20:20 -07:00
Alay Patel
8a03067211 fix resource claims deallocation for extended resource when pod is completed
Signed-off-by: Alay Patel <alayp@nvidia.com>
2025-09-29 15:15:40 -04:00
Aaron Prindle
2c12d5731e fix validation_resourceclaim_test.go with MarkCoveredByDeclarative 2025-09-29 18:53:33 +00:00
Aaron Prindle
9380248ad6 generate 2025-09-29 18:53:33 +00:00
Aaron Prindle
ef2b68388e add +k8s:maxItems tag logic and tests 2025-09-29 18:53:27 +00:00
Kubernetes Prow Robot
1ffdc16b71 Merge pull request #134314 from xigang/node_controller_zone
node_lifecycle_controller: fix ComputeZoneState method comment
2025-09-29 11:30:24 -07:00
Kubernetes Prow Robot
da552ef1d7 Merge pull request #134240 from yongruilin/master_vg_strategy-call
Refactor: Centralize declarative validation logic
2025-09-29 11:30:17 -07:00
Lubomir I. Ivanov
b6afe986c6 kubeadm: rework the FetchInitConfigurationFromCluster node flags
The newControlPlane flag has been historically problematic, since
it implies that the function FetchInitConfigurationFromCluster
cannot handle the cases where a node is worker node but
we still want to fetch its NodeRegistrationOptions conditionally,
in cases such as "upgrade node" for workers.

To fix this issue, replace the flag newControlPlaneNode with
two new flags getNodeRegistration and getAPIEndpoint.

If getNodeRegistration is true, we fetch the NRO, and if
getAPIEndpoint is true, we fetch the API endpoint for
that node.

Additionally, rename skipComponentConfigs to getComponentConfigs
for consistency and flip its value accordingly everywhere.
2025-09-29 19:58:56 +02:00
Kubernetes Prow Robot
8ebc216c59 Merge pull request #134185 from DanBokete/deprecate-caseless-validation
Feat: Adds warnings when ResourceSlice driver names contain uppercase characters
2025-09-29 09:40:18 -07:00
Joe Betz
03a1a22478 Add declarative validation tests, use tweak pattern, and additional test structure changes 2025-09-29 16:03:53 +00:00
Joe Betz
11df50453f Add maxItems limits to ResourceClaim 2025-09-29 16:03:40 +00:00
Kubernetes Prow Robot
50cc9905b6 Merge pull request #132059 from jm-franc/configurable-tolerance-e2e-test
Add configurable tolerance e2e test.
2025-09-29 07:40:19 -07:00
Lukasz Szaszkiewicz
212a9c6a60 test/e2e/apimachinery/watchlist: select only wellknown secrets for table test 2025-09-29 13:36:38 +02:00
Ed Bartosh
a20b34aa82 devicemanager: fix golangci-lint errors 2025-09-28 21:13:46 +03:00
Ed Bartosh
bb91913017 Migrate sample-device-lugin to contextual logging 2025-09-28 21:13:41 +03:00
Kevin Hannon
7e27b9c241 change default for failCgroupv1 2025-09-28 13:12:59 -04:00
Kubernetes Prow Robot
5161bf0058 Merge pull request #134268 from joshjms/gce-test-fix-etcd-manifest
gce: Fix etcd manifest
2025-09-28 08:00:16 -07:00
joshjms
6a5d0ef423 gce: fix etcd manifest
Signed-off-by: joshjms <joshjms1607@gmail.com>
2025-09-28 22:06:16 +08:00
Humble Devassy Chirammal
1cfc29a179 cluster/addons: update container images to latest versions
Update several addon container images to their latest stable versions:
- metrics-server: v0.7.2 → v0.8.0
- addon-resizer: 1.8.14 → 1.8.20
- ip-masq-agent: v2.9.3 → v2.9.4
- kube-network-policies: v0.7.0 → v0.8.0

These updates provide bug fixes, security improvements, and enhanced functionality

Signed-off-by: Humble Devassy Chirammal <humble.devassy@gmail.com>
2025-09-28 16:38:18 +05:30
xigang
574ac5b497 disruption: remove unused pdb parameter from getExpectedScale method
Signed-off-by: xigang <wangxigang2014@gmail.com>
2025-09-28 17:41:36 +08:00
xigang
574b09b7de nodelifecycle: fix ComputeZoneState method comment
Signed-off-by: xigang <wangxigang2014@gmail.com>
2025-09-28 10:56:56 +08:00
Kubernetes Prow Robot
ed49decb4a Merge pull request #134309 from hakman/npd-1.34.0
Update NPD to v1.34.0
2025-09-27 19:38:16 -07:00
Ciprian Hacman
2b3f1877be Update NPD to v1.34.0 2025-09-27 19:57:47 +03:00
Humble Devassy Chirammal
c4ec18b58a pkg/volume: improve code style and readability
- Improve slice declaration formatting in quota_common_linux_impl.go
- Enhance variable naming clarity (myMPSlash -> myMountPointWithSlash)
- Standardize function comment format for consistency
- Add trailing comma to slice declarations following Go conventions

These are non-breaking  improvements that enhance code
readability and maintain consistency with Go best practices.

Signed-off-by: Humble Devassy Chirammal <humble.devassy@gmail.com>
2025-09-27 20:18:08 +05:30
Dan Bokete
b40b67b9cf Deprecate caseless driver name validation and enforce lowercase warnings
- Deprecate IsDNS1123SubdomainCaseless to avoid caseless validation issues.
- Warn when ResourceSlice driver names contain uppercase characters.
- Clarify driver names must be DNS subdomains and use only lowercase letters.
- Update tests, staging code, and OpenAPI spec to reflect the changes.
2025-09-27 13:23:59 +01:00
Omer Aplatony
7af3377900 Add desired_replicas histogram metric to HPA controller
Signed-off-by: Omer Aplatony <omerap12@gmail.com>
2025-09-27 09:30:03 +00:00
yongruilin
96349a4608 chore: Move declarative validation featuregates to staging apiserver 2025-09-26 22:30:16 +00:00
Kevin Hannon
06c47136fe implement KEP-5573 by not starting kubelet on cgroup v1 by default 2025-09-26 15:15:37 -04:00
yongruilin
e6e6c6fdfb Remove unused WithTakeover and WithValidationIdentifier 2025-09-26 17:22:48 +00:00
yongruilin
9a7e2291d1 refactor: Remove Validate(Update)Declaratively and improve error handling 2025-09-26 17:22:48 +00:00
Joe Betz
d2ec0308c7 simplify scale subresource testing and document expectations
Co-Authored-by: Yongrui Lin <yongrlin@outlook.com>
2025-09-26 17:22:48 +00:00
yongruilin
713cb97a85 test: Add unit tests for metricIdentifier function 2025-09-26 17:22:48 +00:00
yongruilin
2d7dd9164f Refactor: Centralize declarative validation and migration logic
The boilerplate for running declarative validation was duplicated across multiple resource strategies. This included feature gate checks, metric identifier generation, error comparison, and conditional merging logic, which made the code verbose and difficult to maintain.

This commit introduces a new helper function, `rest.ValidateDeclarativelyWithMigrationChecks`, to encapsulate this common logic. All relevant strategies have been refactored to use this new function, resulting in cleaner and more concise code.
2025-09-26 17:22:46 +00:00
Kubernetes Prow Robot
0bdf1f89c3 Merge pull request #134279 from yongruilin/master_customunique
feat(validation-gen): Introduce k8s:customUnique to control listmap uniqueness
2025-09-26 10:10:16 -07:00
Kubernetes Prow Robot
4f72f0fdbf Merge pull request #134113 from jpbetz/resource-claim-status-pool
Enable Declarative Validation Pool status field of ResourceClaim
2025-09-26 09:16:18 -07:00
Jean-Marc François
d559a4afe7 Add configurable tolerance e2e test. 2025-09-26 10:58:20 -04:00
Kubernetes Prow Robot
aecc114b37 Merge pull request #134275 from humblec/fix
Fix error messages in volume path handler
2025-09-26 07:42:19 -07:00
Ismail Alidzhikov
4a76cd8405 Remove configmaps related rules from the kube-controller-manager and kube-scheduler leader election roles 2025-09-26 16:52:09 +03:00
Ed Bartosh
d45a4557c1 Migrate device manager to contextual logging 2025-09-26 16:50:34 +03:00
Kubernetes Prow Robot
f97ee63b5d Merge pull request #134254 from dims/make-containerd-download-more-robust
containerd download should be more robust to remove flakiness
2025-09-26 03:04:19 -07:00
Kubernetes Prow Robot
f884da7ff9 Merge pull request #134277 from lalitc375/devex
Improve developer experience for DV tests
2025-09-25 21:12:16 -07:00
yashsingh74
4347d4be81 Update coredns to v1.12.4
Signed-off-by: yashsingh74 <yashsingh1774@gmail.com>
2025-09-26 08:51:35 +05:30
Aaron Prindle
5119b86966 refactor(DRA validation): Add granular controls to ValidateCSIDriverName for declarative validation migration 2025-09-26 01:42:33 +00:00
Tim Allclair
2c78bc981c Introduce API to codify and validate feature gate dependencies 2025-09-25 16:45:43 -07:00
Kubernetes Prow Robot
9a3dce00ae Merge pull request #134271 from Jefftree/scheme-nil
Add nil scheme check in GetReference
2025-09-25 14:54:15 -07:00