Commit graph

55920 commits

Author SHA1 Message Date
Bartosz
68acdf68c1
Use PlacementFeasible instead of Permit in PodGroup scheduling cycle 2026-05-22 08:01:20 +00:00
Bartosz
6b22e1ccc7
Add PlacementFeasible plugin to support early gang termination 2026-05-22 08:01:15 +00:00
Kubernetes Prow Robot
b151ef23a5
Merge pull request #139030 from mm4tt/authoritative-podgroup-priority
scheduler: make PodGroup priority authoritative in workload preemption
2026-05-13 17:59:47 +05:30
Matt Matejczyk
3c9bf654fb scheduler: make PodGroup priority authoritative in workload preemption 2026-05-13 10:47:49 +00:00
Kubernetes Prow Robot
a5427793cf
Merge pull request #135756 from vshkrabkov/refactor/scheduler-moveToActiveQ-remove-underlock
Remove underlock logic from scheduling queue moveToActiveQ method
2026-05-13 09:18:33 +05:30
Kubernetes Prow Robot
de239f13ef
Merge pull request #135160 from KunWuLuan/feat/multi-cond-apicall
support multi conditions in apicall
2026-05-13 09:18:26 +05:30
Kubernetes Prow Robot
34e600ec49
Merge pull request #139001 from jpbetz/bump-kube-openapi-for-revert
Bump kube-openapi to pick up #609
2026-05-13 06:48:29 +05:30
Kubernetes Prow Robot
7a4ea9be33
Merge pull request #138876 from hoteye/cleanup-kubelet-pods-server-logger
kubelet: pass logger through pod API server
2026-05-13 05:32:28 +05:30
Joe Betz
17123b0326
generate 2026-05-12 17:47:26 -04:00
Kubernetes Prow Robot
553312e6c2
Merge pull request #138657 from jpbetz/codegen-discovery
Enable validation-gen for all existing and future APIs
2026-05-13 01:16:37 +05:30
Joe Betz
234750e9e1
Generate validation 2026-05-12 12:49:02 -04:00
Joe Betz
b8ca9f101f
Explicitly mark defaulter-gen disabled on node APIs
This preserves existing behavior. If enabled, corev1's SetDefaults_ResourceList
will default RuntimeClass's overhead.podFixed field.
2026-05-12 12:49:02 -04:00
Joe Betz
049bdb7884
Enable validation-gen on all remaining APIs 2026-05-12 12:49:02 -04:00
Joe Betz
46ac2d8db8
Explicitly disable openapi-gen where not used 2026-05-12 12:49:02 -04:00
Joe Betz
9d65aeabb6
Explicitly disable validation-gen where not needed 2026-05-12 12:49:01 -04:00
Kubernetes Prow Robot
83710cbf5c
Merge pull request #138389 from gheffern/add-safe-sysctls-135972
Add safe sysctls 135972
2026-05-12 22:04:31 +05:30
hoteye
e9965e7f79 kubelet: pass logger through pod API server
Replace logger-only klog.FromContext(context.Background()) usage in the pod API server with an injected logger.

This keeps the cleanup scoped to logging and does not change context cancellation behavior.
2026-05-12 23:19:31 +08:00
Kubernetes Prow Robot
f830e4a2b8
Merge pull request #138542 from pohly/dra-create-resource-claim
DRA: harmonize ResourceClaim creation metric
2026-05-12 05:12:09 +05:30
Joe Betz
119a1460c1
Generate deepcopy 2026-05-11 12:27:56 -04:00
Joe Betz
f79a4d72f2
Generate model names 2026-05-11 12:27:55 -04:00
Kubernetes Prow Robot
4c4f7d8a76
Merge pull request #138886 from jdzikowski/mincount-preemption2
Add tests for WAP that prove that maxScheduledCount can increase during reprieval for gang PodGroups
2026-05-11 18:09:57 +05:30
Kubernetes Prow Robot
d56dacb1fd
Merge pull request #138658 from danwinship/kubeproxyconfig
Pass complete KubeProxyConfiguration to NewProxier methods
2026-05-11 18:09:50 +05:30
Patrick Ohly
4a305f8fc7 DRA: fix component list for ResourceClaim metric
The endpoint-mappings.yaml file specifies which components use which
metrics. The case some, but not all core components (kube-controller-manager
and kube-scheduler in this case) sharing the same metrics was not
supported. This gets fixed by not returning early once the first file path
matches.

Not all metrics in pkg/controller/resourceclaim/metrics are shared. To make the
sharing clearer and fit into the file-path based component support in
endpoint-mappings.yaml, the shared metric gets moved to a new
pkg/resourceclaim/metrics package.
2026-05-11 12:31:45 +02:00
Patrick Ohly
341b7d65b6 DRA: harmonize ResourceClaim creation metric
Both kube-controller-manager and kube-scheduler create ResourceClaims. Using
the same metric (sub-system: "dynamic_resource_allocation", name:
"resourceclaim_creates_total") in both components simplifies aggregation across
the entire cluster.
2026-05-11 12:15:14 +02:00
Kubernetes Prow Robot
42d3bed46e
Merge pull request #138854 from alexmchughdev/fix-eviction-monitor-shutdown
kubelet/eviction: stop monitoring loop on context cancellation
2026-05-11 13:55:50 +05:30
Kubernetes Prow Robot
63b36867dd
Merge pull request #138016 from pacoxu/fix-ut-pod-group
fix PodGroup protection test flake by waiting for pod watch before delete
2026-05-11 07:01:46 +05:30
Davanum Srinivas
cacb333aad
Update pkg/controller/scheduling/podgroupprotection/podgroup_protection_controller_test.go
Co-authored-by: Ania Borowiec <anias@google.com>
2026-05-10 20:38:25 -04:00
Davanum Srinivas
e4ed3aa73b
pkg/util/coverage: add ModulePath() to fakeTestDeps
Go 1.26's testing.testDeps interface added a ModulePath() string method.
Without it, fakeTestDeps no longer satisfies the interface and any build
with -tags=coverage (KUBE_BUILD_WITH_COVERAGE=true) fails to compile at
pkg/util/coverage/coverage.go:84 (testing.MainStart):

    pkg/util/coverage/coverage.go:84:32: cannot use deps (variable of
    struct type fakeTestDeps) as testing.testDeps value in argument to
    testing.MainStart: fakeTestDeps does not implement testing.testDeps
    (missing method ModulePath)

This restores the two coverage jobs that have been failing for ~65 days:

  ci-kubernetes-coverage-conformance
    history:  https://prow.k8s.io/job-history/gs/kubernetes-ci-logs/logs/ci-kubernetes-coverage-conformance
    sample:   https://prow.k8s.io/view/gs/kubernetes-ci-logs/logs/ci-kubernetes-coverage-conformance/2053245547074031616

  ci-kubernetes-coverage-e2e-gci-gce
    history:  https://prow.k8s.io/job-history/gs/kubernetes-ci-logs/logs/ci-kubernetes-coverage-e2e-gci-gce
    sample:   https://prow.k8s.io/view/gs/kubernetes-ci-logs/logs/ci-kubernetes-coverage-e2e-gci-gce/2053247811943665664

The build image kube-cross:v1.36.0-go1.26.2-bullseye.0 is what surfaced
this once kube-cross moved to Go 1.26.

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2026-05-09 19:40:33 -04:00
Yongrui Lin
a791288d81 test/declarative_validation: migrate DV equivalence tests to new tree
Move the existing declarative_validation_test.go files out of
pkg/registry/ into a top-level tree at
test/declarative_validation/<group>/<kind>/. The new location pairs
each hand-written test with the per-Kind TestMain and version-init
files emitted by validation-gen, so the coverage gate runs alongside
the equivalence checks and apiVersions no longer needs to be
hand-maintained.
2026-05-09 19:11:01 +00:00
Yongrui Lin
14ebdd6494 pkg/registry/scheduling: move scheme install import into strategy_test.go
The scheduling/install blank import previously lived in the package's
declarative_validation_test.go. Moving the test to test/declarative_validation/
would otherwise drop the legacyscheme registration that strategy_test.go
relies on, so the import moves with the dependency.
2026-05-09 19:11:01 +00:00
Yongrui Lin
3577cbda2f pkg/api/testing: record observed rules during DV equivalence tests
VerifyValidationEquivalence's all-rules-enforced subtest now extracts
the GVK from the request context and forwards each error to
coverage.RecordObservedRules so AssertDeclarativeCoverage (in the
generated TestMain) can confirm every declared rule fired.
2026-05-09 18:59:16 +00:00
Kubernetes Prow Robot
ea231e60e7
Merge pull request #138921 from liggitt/drop-redundant-dv
Drop declarative minimum that is redundant with field type
2026-05-09 11:17:17 +05:30
Kubernetes Prow Robot
22e92c6a95
Merge pull request #138764 from yongruilin/dv-add-tests
scheduling: close declarative-validation test gaps for PodGroup and Workload
2026-05-09 10:11:27 +05:30
Kubernetes Prow Robot
4c75e77f31
Merge pull request #138740 from yongruilin/dv-flowcontrol-test
flowcontrol: cover declarative Required rule for PriorityLevelConfiguration type field
2026-05-09 10:11:20 +05:30
Jordan Liggitt
b926833260
Drop declarative minimum that is redundant with field type 2026-05-08 23:57:04 -04:00
Benjamin Elder
ec5f4dce1b undeprecate enable-logs-handler
This is an opt-in feature to expose logs, while there are some security concerns, functionaly it is very similar to the recently GA-ed NodeLogQuery, which is also opt-in.

This feature has been "deprecated" since 1.15 without removal and is still actively used by multiple installers / distros (e.g. GKE, https://github.com/zalando-incubator/kubernetes-on-aws)

It is not reasonable to plan removal after 20+ releases, and there do not seem to be any plans to do so.
2026-05-08 14:19:24 -07:00
Kubernetes Prow Robot
692d9f21dd
Merge pull request #138907 from Jefftree/remove-locked-apimachinery-feature-gates
Remove locked GA feature gates (sig-api-machinery)
2026-05-09 01:57:18 +05:30
Jefftree
361ff186bc Remove locked GA feature gate ConsistentListFromCache 2026-05-08 14:16:03 -04:00
Jefftree
591f5acf37 Remove locked GA feature gate ResilientWatchCacheInitialization 2026-05-08 14:16:01 -04:00
Jefftree
98e17b2565 Remove locked GA feature gate APIServerTracing 2026-05-08 14:15:58 -04:00
Jefftree
876f47cbc8 Remove locked GA feature gate BtreeWatchCache 2026-05-08 14:15:55 -04:00
Jefftree
5511cc46c8 Remove locked GA feature gate RetryGenerateName 2026-05-08 14:15:53 -04:00
Jefftree
8bda44f413 Remove locked GA feature gate StreamingCollectionEncodingToProtobuf 2026-05-08 14:15:50 -04:00
Jefftree
16cc05969f Remove locked GA feature gate StreamingCollectionEncodingToJSON 2026-05-08 14:15:48 -04:00
Jefftree
dfa449fabf Remove locked GA feature gate OrderedNamespaceDeletion 2026-05-08 14:15:45 -04:00
Kubernetes Prow Robot
d745d30ecf
Merge pull request #136543 from herb-duan/test-kubelet-podstatus-future-proof
test(kubelet): add future-proof test for PodStatus equality
2026-05-08 23:13:19 +05:30
Kubernetes Prow Robot
dfbe9362f9
Merge pull request #138482 from vshkrabkov/bug/usched-pods-metric
decrease metrics for unscheduled plugin when removing pod from active or backoff queue
2026-05-08 22:15:18 +05:30
Kubernetes Prow Robot
b1c17fc745
Merge pull request #138847 from GFilipek/dev-1
refactor: separate New and Update PodInfo and add unit tests
2026-05-08 20:57:21 +05:30
vshkrabkov
ce26010a71 decrease metrics for unscheduled plugin when removing pod from active or backoff queue 2026-05-08 14:52:26 +00:00
gfilipek
f7bb88a930 refactor: separate New and Update PodInfo and add unit tests
Signed-off-by: gfilipek <gfilipek@google.com>
2026-05-08 13:21:29 +00:00