Commit graph

138470 commits

Author SHA1 Message Date
Kubernetes Prow Robot
66ad1618f1
Merge pull request #139562 from yongruilin/dv-podspec-toleration
Add declarative validation for Toleration key format
2026-06-11 23:10:42 +05:30
Kubernetes Prow Robot
5f3b845f8f
Merge pull request #139647 from bart0sh/PR239-dont-use-Background-in-Kubelet-tests
kubelet: unittests: use ktesting context
2026-06-11 22:06:42 +05:30
Ed Bartosh
1bf1da9958 kubelet_volumes_test: fix testifylint require-error violations
Replace assert.NoError with require.NoError for error assertions as
required by the testifylint linter.
2026-06-11 18:42:11 +03:00
Kubernetes Prow Robot
e5b1ed8ec6
Merge pull request #139646 from p0lyn0mial/move-gzip-writer-pool-to-compression
apiserver/endpoints/handlers/responsewriters: move gzip writer pool constructor to compression.go
2026-06-11 20:26:50 +05:30
Kubernetes Prow Robot
79751b17da
Merge pull request #137278 from humblec/update-npd-v1.35.2
Update node-problem-detector to v1.35.2 and remove addon manifests
2026-06-11 20:26:42 +05:30
Ed Bartosh
657158688d kubelet: unittests: use ktesting context in tests
Use ktesting.Init(t) and ktesting.NewTestContext(t) instead of
context.Background() so tests carry proper logging and cancellation
tied to the test lifecycle.
2026-06-11 17:14:42 +03:00
Kubernetes Prow Robot
0543104d77
Merge pull request #139618 from jpbetz/opt/watchcache-replace-nil
Clear stale event slots in watchCache.Replace to reduce peak memory use
2026-06-11 19:28:41 +05:30
Kubernetes Prow Robot
1b23e201c8
Merge pull request #139630 from zylxjtu/images
Bump up version of test images
2026-06-11 17:54:49 +05:30
Kubernetes Prow Robot
f61fb75680
Merge pull request #139075 from kAvEh--/fix-130069-fix-context-todo-kubelet-cm
Fix 130069 fix context todo kubelet cm - part 1
2026-06-11 17:54:42 +05:30
Lukasz Szaszkiewicz
9a6fded42c
apiserver/endpoints/handlers/responsewriters: move gzip writer pool constructor to compression.go
Co-Authored-By: Marek Siarkowicz <siarkowicz@google.com>
2026-06-11 13:55:03 +02:00
Kubernetes Prow Robot
665fb5d3c5
Merge pull request #139634 from lukaszwojciechowski/fix-TestClassifyLBError
Fix TestClassifyLBError test case for nil error
2026-06-11 16:26:50 +05:30
Kubernetes Prow Robot
654e7b2243
Merge pull request #137652 from 0xMH/fix/133927-ephemeral-storage-format
kubelet: use DecimalSI format for ephemeral-storage capacity
2026-06-11 14:24:42 +05:30
Kubernetes Prow Robot
013687b0ce
Merge pull request #139482 from p0lyn0mial/refactor-content-encoding-to-handlers
apiserver/endpoints/handlers: move content encoding negotiation to handlers/internal
2026-06-11 13:10:48 +05:30
Yongrui Lin
462aa20ad9 node: add declarative validation tests for toleration key
RuntimeClass across v1, v1alpha1, and v1beta1; prefixed and unprefixed keys.
2026-06-11 06:35:35 +00:00
Yongrui Lin
fd8870da09 batch: add declarative validation tests for toleration key
Job and CronJob; prefixed and unprefixed keys.
2026-06-11 06:35:35 +00:00
Yongrui Lin
627834ba06 apps: add declarative validation tests for toleration key
Deployment, DaemonSet, ReplicaSet, and StatefulSet; prefixed and unprefixed keys.
2026-06-11 06:35:35 +00:00
Yongrui Lin
ca4ae01f4d core: add declarative validation tests for toleration key
Pod, PodTemplate, and ReplicationController; prefixed and unprefixed keys.
2026-06-11 06:35:35 +00:00
Yongrui Lin
e4cc8f8e9d testing: skip unserved extensions/v1beta1 in validation equivalence sweep
Add WithSkipGroupVersions and apply it to the NetworkPolicy and Scale tests,
whose internal types also register under the now-unvalidated extensions/v1beta1.
2026-06-11 06:35:35 +00:00
Yongrui Lin
d1c82cbeb2 Regenerate validation code and protobuf for toleration migration
Output of hack/update-codegen.sh.
2026-06-11 06:35:28 +00:00
Yongrui Lin
9b63de2453 extensions: disable declarative validation for v1beta1
extensions/v1beta1 is permanently unserved, and its pod-template workloads would
otherwise force a forbidden staging -> k8s.io/kubernetes import. Disable
validation-gen for the package.
2026-06-11 06:33:42 +00:00
Yongrui Lin
ac386895dd core: declare pod /eviction and /resize subresources for declarative validation
Pod is now a DV root, and eviction and resize each do a pod store.Update under
their subresource, so the dispatch must handle them or fail with "no validation
found" (this broke kubectl drain). binding is unaffected (GuaranteedUpdate).
2026-06-11 06:33:42 +00:00
Yongrui Lin
eb5a4ca192 apps: declare /scale subresource for declarative validation
The toleration rule makes the workload types DV roots; scale updates validate
the parent under /scale, so the dispatch must handle it (as ReplicationController
already does).
2026-06-11 06:33:42 +00:00
Yongrui Lin
8976f7a9e1 Declaratively validate Toleration.Key as k8s-label-key
Tag corev1.Toleration.Key (alpha) and mark the shared handwritten error covered
via an opt-in KeyFormatCovered option, so the annotation-encoded path stays
authoritative. Add a RuntimeClass spec.scheduling normalization rule for the
v1alpha1 cross-version path.
2026-06-11 06:33:42 +00:00
Humble Devassy Chirammal
5e7ff89619 cluster: remove remaining NPD envvars, setup functions, and Windows support
Remove the remaining node-problem-detector references across the cluster/
directory that were not covered by the initial cleanup:

- Remove ENABLE_NODE_PROBLEM_DETECTOR, NODE_PROBLEM_DETECTOR_VERSION,
  NODE_PROBLEM_DETECTOR_TAR_HASH, NODE_PROBLEM_DETECTOR_RELEASE_PATH and
  NODE_PROBLEM_DETECTOR_CUSTOM_FLAGS exports from config-default.sh and
  config-test.sh.
- Remove WINDOWS_ENABLE_NODE_PROBLEM_DETECTOR and
  WINDOWS_NODE_PROBLEM_DETECTOR_CUSTOM_FLAGS from config-default.sh and
  config-test.sh.
- Remove WINDOWS_NODEPROBLEMDETECTOR_KUBECONFIG_FILE from config-common.sh.
- Remove create-node-problem-detector-kubeconfig and
  create-node-problem-detector-kubeconfig-from-kubelet functions along
  with all NPD token/kubeconfig setup blocks from configure-helper.sh.
- Remove NPD installation and configuration steps (install-npd,
  configure-npd, start-node-problem-detector) from upgrade.sh and util.sh.
- Remove DownloadAndInstall-NodeProblemDetector,
  Create-NodeProblemDetectorKubeConfig and Configure-NodeProblemDetector
  from cluster/gce/windows/k8s-node-setup.psm1 and their call sites in
  configure.ps1.
- Remove the node-problem-detector systemd source block from the fluentd
  configmaps and the node-problem-detector.log entry from log-dump.sh.
- Remove npd and npdSA test variables and their use from audit_policy_test.go.

Co-authored-by: Jordan Liggitt <liggitt@google.com>
Signed-off-by: Humble Devassy Chirammal <humble.devassy@gmail.com>
2026-06-11 11:42:01 +05:30
Kubernetes Prow Robot
c2cd34a6ed
Merge pull request #139457 from akhilsingh-git/fix/job-controller-active-count-backoff-139428
Fix job controller reporting active=0 during pod creation backoff
2026-06-11 11:34:41 +05:30
Kubernetes Prow Robot
87741d80fd
Merge pull request #137522 from brianpursley/node-logs-context
Use request context when serving node logs
2026-06-11 10:12:46 +05:30
Kubernetes Release Robot
8d34ac5ef8 CHANGELOG: Update directory for v1.37.0-alpha.1 release 2026-06-11 03:25:50 +00:00
Kubernetes Prow Robot
3841ba06c2
Merge pull request #139530 from QiWang19/cleanuppod-grace-period
Set short termination grace period for test pods in MemoryQoS tests
2026-06-11 08:04:49 +05:30
Kubernetes Prow Robot
a00f6e9181
Merge pull request #139560 from yongruilin/dv-custom-validation
validation-gen: add +k8s:customValidation tag
2026-06-11 05:54:46 +05:30
Yongrui Lin
170df28320 Address review comments
- Check parameter types and print a copy-pasteable signature on mismatch
- Drop explicit function names (the tag is now value-less)
- Error on ValidateCustom_* functions that are untagged or in the wrong package
- Build inputToPkg deterministically; generation wins over --readonly-pkg
- Set tag stability to stable
- Clarify docs (value/oldValue type, Go field names) and drop the ratcheting jargon
2026-06-10 23:20:13 +00:00
Kubernetes Prow Robot
8f8aa9aae1
Merge pull request #139101 from lalitc375/conditions
Setup metav1.Condition for declarative valdiations.
2026-06-11 04:28:47 +05:30
Lukasz Wojciechowski
a800e7077f Fix TestClassifyLBError test case for nil error
The classifyLBError function returns lbErrNone when err is nil,
but the test was incorrectly expecting lbErrOther.

Also add lbErrNone to TestLBErrorTypeConstants verification.
2026-06-10 23:54:35 +02:00
Kubernetes Prow Robot
e2ed47e2de
Merge pull request #134860 from danwinship/apiserver-service-proxy
Port service/proxy subresource from Endpoints to EndpointSlice
2026-06-11 03:10:50 +05:30
zylxjtu
0f457ea8c5 Bump up version of test image
This is to bump up the test image version for busybox and nginx/nginxnew
to version which have the windows2025 support.
2026-06-10 20:35:25 +00:00
Kubernetes Prow Robot
70576e5dee
Merge pull request #139443 from omerap12/cleanup-hpa-cs
cleanup hpa consistency store
2026-06-11 01:50:01 +05:30
Kubernetes Prow Robot
b4e4d2cfc1
Merge pull request #139237 from aojea/webhook_idle_
webhook use resolved endpoint IP instead of cached
2026-06-11 01:49:53 +05:30
Lukasz Szaszkiewicz
08cc5ec753
apiserver/endpoints/handlers/responsewriters: move and refactor contentEncodingSupported to accept feature gate parameter
Co-Authored-By: Marek Siarkowicz <siarkowicz@google.com>
2026-06-10 21:51:45 +02:00
Kubernetes Prow Robot
4a1340bfd5
Merge pull request #139619 from Jefftree/cacher-init-concurrent-decode-bench
apiserver: exercise ConcurrentWatchObjectDecode on/off in BenchmarkCacherInit
2026-06-11 00:49:13 +05:30
Kubernetes Prow Robot
78f000c93a
Merge pull request #139612 from weizhoublue/fix-event-qps-help
fix: correct --event-qps default in help message
2026-06-11 00:49:05 +05:30
Kubernetes Prow Robot
2773ff5aeb
Merge pull request #139608 from yongruilin/dv-fix-recursive
validation-gen: fix panic on self-recursive slice/map fields
2026-06-11 00:48:57 +05:30
Kubernetes Prow Robot
8f977c3855
Merge pull request #139607 from liggitt/spurious-inline-test
Test inline tags, match stdlib inline tag handling behavior
2026-06-11 00:48:50 +05:30
Dan Winship
6559d7ca54 Port service/proxy subresource from Endpoints to EndpointSlice
Co-authored-by: Jordan Liggitt <liggitt@google.com>
2026-06-10 15:10:38 -04:00
Kubernetes Prow Robot
f7a260bfc5
Merge pull request #139609 from amritansh1502/promote-agnhost-2.64.0
Promote agnhost e2e test image to 2.64.0
2026-06-10 23:09:06 +05:30
Kubernetes Prow Robot
1af59c2d1f
Merge pull request #138937 from RajvardhanPatil07/codex/fix-pullmanager-lock-stripes
Fix pullmanager lock stripe normalization
2026-06-10 23:08:58 +05:30
Jefftree
ca9d6bbea7 apiserver: exercise ConcurrentWatchObjectDecode on/off in BenchmarkCacherInit 2026-06-10 13:02:25 -04:00
Jordan Liggitt
357a72eac8
Add back tests of behavior around spurious inline tags, match Go 1.27 inline support 2026-06-10 12:01:41 -04:00
Kubernetes Prow Robot
1b85ff009e
Merge pull request #137767 from princepereira/ppereira-kproxy-prometheus-metrics-master
Adding prometheues metrics for Kubeproxy failed loadbalancer operations.
2026-06-10 20:33:57 +05:30
Joe Betz
ceb27292b1
Clear stale event slots in watchCache.Replace 2026-06-10 09:06:00 -04:00
Kubernetes Prow Robot
de391ca4a4
Merge pull request #139087 from lukaszwojciechowski/generalize-cpumanager-checkpoint-useful-fixes
Generalize cpumanager checkpoint remaining fixes
2026-06-10 16:53:56 +05:30
Amritansh Amritansh
64915c6459 Promote agnhost e2e test image to 2.64.0 2026-06-10 14:18:35 +05:30