Commit Graph

135432 Commits

Author SHA1 Message Date
yongruilin
33dec2246f address feedback: refactor declarative validation migration checks
- Extract HV error filtering into filterHandwrittenErrors for readability.
- Simplify errOutputMatcherByStability initialization in testing helpers.
2026-02-13 00:54:18 +00:00
yongruilin
d1b805f41e Mark scheduling Workload validation as Alpha in test 2026-02-13 00:54:18 +00:00
yongruilin
93b901d177 Enhance validation testing: add support for all declarative rules enforcement 2026-02-13 00:54:18 +00:00
yongruilin
3470dbd96e address feedback: add IsAlpha/IsBeta helpers for ValidationStabilityLevel
Introduce IsAlpha() and IsBeta() helper methods on field.Error to
encapsulate stability level checks. Unexport the underlying
ValidationStabilityLevel constants to keep the API surface minimal.
Update the apiserver's validation logic to use these helpers.
2026-02-13 00:54:18 +00:00
yongruilin
4d2a2abdee scheduling/workload: fix tests requiring RequestInfo for declarative validation
- Update resttest and genericregistrytest to support RequestInfo injection.
- Inject RequestInfo in Workload storage and strategy tests to resolve context-related failures.
- Refine validate.go log messages and error deduplication logic.
2026-02-13 00:54:18 +00:00
yongruilin
4f56a298cc Enforce zero mismatches in validation equivalence testing 2026-02-13 00:54:18 +00:00
yongruilin
2ef358870a Update validation equivalence testing for lifecycle enforcement
- Test scenarios: Beta Enabled, Beta Disabled, and Legacy (emulated 1.35).
- Remove deprecated Takeover gate references and redundant coverage checks.
- Add TODO to remove legacy emulation in 1.39.
- Update documentation to match the new Validation Lifecycle strategy.
2026-02-13 00:54:18 +00:00
yongruilin
a972411936 opt-in Workload v1alpha1 to explicit declarative enforcement
Mark Workload v1alpha1 validations as +k8s:alpha(since:"1.35") and
configure the registry strategy to use WithDeclarativeEnforcement().
This transitions the resource to the stability-based validation lifecycle,
where enforcement is determined by tag stability and feature gates.
Includes generated code updates.
2026-02-13 00:54:18 +00:00
yongruilin
069f913681 Update mismatch checking to support Validation Lifecycle stages
- Rename takeover to enforced in mismatch checking logic and comments.
- Update recommendation messages to refer to DeclarativeValidationBeta.
- Ensure Alpha-level mismatches always recommend "HV authoritative" (shadowed).
- Filter mismatch candidates by lifecycle stage when explicit enforcement is active.
- Refactor mismatch tests to cover Alpha/Beta scenarios and remove redundancy.
2026-02-13 00:54:18 +00:00
yongruilin
eceed007d3 Implement DeclarativeValidationBeta and Validation Lifecycle strategy
- Introduce WithDeclarativeEnforcement to opt-in to the lifecycle model.
- Update ValidateDeclarativelyWithMigrationChecks to:
    - Enforce Beta-level validations when DeclarativeValidationBeta is enabled.
    - Shadow Alpha-level validations.
    - Filter handwritten errors only for Beta-level validations (when enabled).
    - Limit mismatch checking to Alpha and Beta stages when enforcement is enabled.
- Deprecate WithDeclarativeNative and DeclarativeNative field in field.Error.
- Add comprehensive lifecycle tests and clean up redundant test cases.
2026-02-13 00:54:17 +00:00
yongruilin
0c679cea68 Introduce DeclarativeValidationBeta and deprecate Takeover gate
This change introduces the DeclarativeValidationBeta feature gate in v1.36
as the global safety switch for Beta-stage validation rules and marks
DeclarativeValidationTakeover as deprecated.

Following KEP-5073.
2026-02-13 00:54:11 +00:00
Kubernetes Prow Robot
fc74562c38 Merge pull request #136808 from nmn3m/kubelet-contextual-logging
Update kubelet to use EventRecorderLogger.WithLogger() for contextual…
2026-02-10 02:31:58 +05:30
Kubernetes Prow Robot
09e1c9fe0e Merge pull request #136455 from pohly/client-go-simpleclient-undeprecation
fake client-go: un-deprecate NewSimpleClientset
2026-02-10 01:33:59 +05:30
Patrick Ohly
e80da21868 fake client-go: un-deprecate NewSimpleClientset
NewSimpleClientset was marked as deprecated when NewClientset was
introduced. This has caused some confusion:
- Not all packages have NewClientset (https://github.com/kubernetes/kubernetes/issues/135980).
- Tests that work with NewSimpleClientset fail when
  switched to NewClientset (https://github.com/kubernetes/kubernetes/issues/136327)
  because of missing CRD support (https://github.com/kubernetes/kubernetes/issues/126850).

It doesn't seem burdensome to keep NewSimpleClientset around forever. Some unit
tests may even prefer to use it when they don't need server-side apply (less
overhead). Therefore there is no need to deprecate it.

This avoids churn in the eco system because contributors no longer create PRs
"because the linter complains about the usage of a deprecated function".
2026-02-09 20:09:42 +01:00
Kubernetes Prow Robot
139e78d88d Merge pull request #136337 from pohly/dra-e2e-hostpath-image-selection
DRA E2E: use image utils to manage hostpath image
2026-02-10 00:02:02 +05:30
Kubernetes Prow Robot
e73221ce18 Merge pull request #136488 from thockin/fix_bad_arg_name_in_dv
Rename an argument in validation stack
2026-02-09 21:57:21 +05:30
Kubernetes Prow Robot
a39c8201e9 Merge pull request #136423 from neolit123/1.36-remove-flex-volume-support-from-kubeadm
kubeadm: removed the built-in flex volume support
2026-02-09 14:07:21 +05:30
Kubernetes Prow Robot
97a2334637 Merge pull request #136778 from Jefftree/etcd-metrics-typo
Fix RecordStorageListMetrics comment
2026-02-09 10:31:08 +05:30
Kubernetes Prow Robot
918b5ac90b Merge pull request #136840 from atombrella/feature/fmt_sprintf_unneeded
Remove unneeded use of fmt.Sprintf in test/{integration,e2e}
2026-02-09 00:53:08 +05:30
Mads Jensen
7883039b31 Remove unneeded use of fmt.Sprintf in test/{integration,e2e} 2026-02-08 14:34:13 +01:00
Kubernetes Prow Robot
669b1de008 Merge pull request #136767 from Sahil-4555/atomic-types-test
test: refactor to use atomic types
2026-02-07 22:13:08 +05:30
Kubernetes Prow Robot
d863fbe80b Merge pull request #135335 from carlory/cleanup
[1.36] Remove feature gate HonorPVReclaimPolicy
2026-02-07 06:30:28 +05:30
Kubernetes Release Robot
a491db621b CHANGELOG: Update directory for v1.36.0-alpha.1 release 2026-02-06 22:38:29 +00:00
Kubernetes Prow Robot
a4437af6c6 Merge pull request #136621 from ermias19/fix-validatingadmissionpolicy-nil-panic
Fix validatingadmissionpolicy nil panic
2026-02-07 04:06:35 +05:30
Austin Abro
598922db75 feat(wait): introduce waitOptions.RunWaitContext() (#136781)
* run wait with context

Signed-off-by: Austin Abro <austinabro321@gmail.com>

* delete other comment

Signed-off-by: Austin Abro <austinabro321@gmail.com>

---------

Signed-off-by: Austin Abro <austinabro321@gmail.com>
2026-02-07 01:40:32 +05:30
Kubernetes Prow Robot
17810c6249 Merge pull request #136743 from ansilh/master
fix(kube-proxy): skip topology hints logging when no ready endpoints exist
v1.36.0-alpha.1
2026-02-06 23:06:36 +05:30
Nour
dde1c5d8a6 Update kubelet to use EventRecorderLogger.WithLogger() for contextual logging when emitting events.
Signed-off-by: Nour <nurmn3m@gmail.com>
2026-02-06 19:29:40 +02:00
ansilh
440cfca4ef refactor(kube-proxy): remove redundant empty endpoints check in topologyModeFromHints
The len(endpoints) == 0 check is now redundant since the hasReadyEndpoints
check handles this case when the slice is empty, the loop executes zero
times, hasReadyEndpoints stays false, and returns "" via the same path.
2026-02-06 21:56:58 +05:30
ansilh
18f56fa7c7 fix(kube-proxy): skip topology hints logging when no ready endpoints exist
When all endpoints are non-ready (ready=false, serving=false, terminating=false),
the topologyModeFromHints function was incorrectly logging "Ignoring same-zone
topology hints for service since no hints were provided for zone" because the
boolean flags remained at their initial values after the loop skipped all
non-ready endpoints.

This fix adds tracking for whether any ready endpoints were processed and
returns early if none exist, avoiding misleading log messages.

Also adds a test case covering this scenario.
2026-02-06 21:46:05 +05:30
Kubernetes Prow Robot
2023f445ec Merge pull request #136291 from atombrella/feature/modernize_rangeint_test_integration_utils
Use Go 1.22 for-range in test/{utils,integrations}
2026-02-06 20:16:32 +05:30
Kubernetes Prow Robot
1c91a55324 Merge pull request #136798 from dims/mark-archived-deps-unwanted
Mark flynn/go-shlex and kr/pty as unwanted dependencies
2026-02-06 18:56:33 +05:30
Davanum Srinivas
8518a8bcfa Mark flynn/go-shlex and kr/pty as unwanted dependencies
Both repositories are archived on GitHub and were detected by the
new check-dependency-archived-periodical CI job.

Also add flynn/go-shlex to unwantedReferences (referenced by
github.com/coredns/caddy).

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2026-02-06 07:17:02 -05:00
Kubernetes Prow Robot
c0e6971b70 Merge pull request #136710 from bart0sh/PR221-integration-add-implicit-extended-resources
DRA: integration: test implicit resources
2026-02-06 15:12:32 +05:30
Kubernetes Prow Robot
38c2026613 Merge pull request #136315 from liyuerich/commentstartauthorization
enable commentstart check on authorization API group
2026-02-06 14:04:32 +05:30
liyuerich
d172d92d6c enable commentstart check on authorization API group
Signed-off-by: liyuerich <yue.li@daocloud.io>
2026-02-06 14:15:29 +08:00
Kubernetes Prow Robot
aba3dc7256 Merge pull request #133759 from BenTheElder/integrationprocs
Reapply "stop overriding max concurrency in CI, let automax procs handle it
2026-02-06 11:06:36 +05:30
carlory
4bc5464553 Remove feature gate HonorPVReclaimPolicy
Signed-off-by: carlory <baofa.fan@daocloud.io>
2026-02-06 13:31:16 +08:00
Kubernetes Prow Robot
8972957668 Merge pull request #135782 from richabanker/fifo-identity-metric
Add identifier-based queue depth metrics for RealFIFO
2026-02-06 07:34:29 +05:30
Kubernetes Prow Robot
da9e038713 Merge pull request #133845 from rbiamru/clarify-cpucfsquotaperiod
Clarify CPUCFSQuotaPeriod config vs CustomCPUCFSQuotaPeriod feature gate
2026-02-06 06:22:29 +05:30
Kubernetes Prow Robot
98629689c1 Merge pull request #136478 from kairosci/fix-audit-log-rotation
fix: Set effectively unlimited MaxSize for audit logs when 0 is specified
2026-02-06 05:26:30 +05:30
Alessio Attilio
b753a2afe5 fix: Set effectively unlimited MaxSize for audit logs when 0 is specified
Signed-off-by: Alessio Attilio <attilio.alessio@protonmail.com>

fix: Update TestAuditLogMaxSizeZero to expect os.File when MaxSize is 0

fix: Update TestAuditValidOptions to handle MaxSize=0 case
2026-02-06 00:06:57 +01:00
Kubernetes Prow Robot
9b1228fe05 Merge pull request #136706 from Jefftree/ulimit
Fix ulimit check in test.sh
2026-02-06 04:16:30 +05:30
Kubernetes Prow Robot
ca0c2c50bd Merge pull request #136284 from lalitc375/dv-shadow
Implement +k8s:alpha and +k8s:beta
2026-02-06 03:16:37 +05:30
Kubernetes Prow Robot
5dd7be6b4f Merge pull request #136118 from HarshalNeelkamal/ga-external-jwt
Make ExternalServiceAccountTokenSigner GA
2026-02-06 03:16:29 +05:30
Kubernetes Prow Robot
cee0b6d6e0 Merge pull request #136752 from BenTheElder/please-no-new-test-images
clarifying adding new test images
2026-02-06 01:36:39 +05:30
Kubernetes Prow Robot
9f49748159 Merge pull request #135636 from mikecook/DeepEqualWithNilDifferentFromEmpty
fix DeepEqualWithNilDifferentFromEmpty comparison
2026-02-06 01:36:31 +05:30
Richa Banker
7ffcacbf9e Wire informer name through kube-controller-manager shared informers 2026-02-05 11:45:47 -08:00
Richa Banker
9638680933 Wire InformerName through SharedIndexInformer 2026-02-05 11:45:38 -08:00
Richa Banker
1fec293a1d Generate informers with InformerName support 2026-02-05 11:42:54 -08:00
Richa Banker
e90b7a8de9 Update informer-gen to support InformerName for metrics 2026-02-05 11:42:34 -08:00