Commit Graph

13120 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
bf1abbf2e9 Merge pull request #136355 from enj/enj/i/tls_cache_gc
Add GC to client-go TLS cache
2026-03-19 05:42:29 +05:30
Monis Khan
fa9a1fe5f7 Add GC to client-go TLS cache
Signed-off-by: Monis Khan <mok@microsoft.com>
2026-03-18 17:24:33 -04:00
Kubernetes Prow Robot
1b5bcf309c Merge pull request #137641 from helayoty/helayoty/protection-controller-podgroup
KEP-5832: Add protection controller for PodGroup
2026-03-19 01:03:00 +05:30
Kubernetes Prow Robot
6fbb90204c Merge pull request #137781 from richabanker/nh-kube-proxy
Enable native histograms gated by feature flag in kube-proxy
2026-03-18 23:21:29 +05:30
helayoty
0ef8d78d1d Add new protection controller for PodGroup
Signed-off-by: helayoty <heelayot@microsoft.com>
2026-03-18 15:27:17 +00:00
Tsubasa Watanabe
57e649ae03 DRA Device Binding Conditions: update unit and integration tests
- update expectations for the default BindingTimeout in KubeSchedulerConfiguration
- DRA unit tests:
  - enable DRADeviceBindingConditions by default
  - add allocationTimestamp to expected ResourceClaims for PreBind cases
- disable DRADeviceBindingConditions when testing the stable allocator in TestSchedulerPerf

Signed-off-by: Tsubasa Watanabe <w.tsubasa@fujitsu.com>
2026-03-18 13:44:30 +09:00
Kubernetes Prow Robot
ad4e232c4a Merge pull request #137326 from amritansh1502/fix-136333-kubelet-zero-psi-metrics
Fix zero PSI metrics emitted when OS doesn't enable PSI
2026-03-18 08:23:39 +05:30
Kubernetes Prow Robot
fd3bb6d21f Merge pull request #137779 from richabanker/nh-kcm
Enable native histograms gated by feature flag in KCM
2026-03-18 05:20:34 +05:30
Kubernetes Prow Robot
78ffbc93f5 Merge pull request #137708 from tchap/kcm-add-leaderelection-flag
kcm: Link the leader election release on exit feature gate
2026-03-18 05:20:10 +05:30
Kubernetes Prow Robot
399be52146 Merge pull request #137584 from QiWang19/kcfg-memqos
KEP-2570: Add MemoryReservationPolicy to kubeketconfig for MemoryQoS feature
2026-03-18 05:20:01 +05:30
Ondra Kupka
98aa74d376 kcm: Link the leader election release on exit feature gate
This is the last step in the process, simply linking ReleaseOnCancel to
ControllerManagerReleaseLeaderElectionLockOnExit feature gate.

The original logic when the leader election release on exit feature gate
is disabled is to not catch signals and exit immediately when the LE
lock is lost. This is being put back into place so that the new behavior
can be tested without affecting the former approach at all.
2026-03-17 11:39:00 +01:00
Patrick Ohly
e04d25c222 apiserver testing: fix support for pre-created TContext
When StartTestServer is called with a TContext by the caller, tearing down the
apiserver via its tear-down function would also cancel the context for everyone
else using it, which is unexpected and not intended.

Accidentally, scheduler_perf and scheduler/batch relied on this behavior:
- The apiserver clients waited on a context that got its cancellation
  from the root context and thus gets canceled last.
- The apiserver was told to stop earlier, but then waited because
  it still had active clients.
- Shutdown gets slowed down enough that integration testing times out.

The fix is to explicitly cancel the clients before the apiserver. Long-term
ktesting should be changed to do the same as the new testing.T.Context: cancel
the context *before* cleaning up, not *after* it.
2026-03-17 07:50:18 +01:00
Kubernetes Prow Robot
d71ba0f013 Merge pull request #137791 from sivchari/use-connectiontimeout
use connectionTimeout
2026-03-17 10:33:35 +05:30
sivchari
dc607d1908 use connectionTimeout
Signed-off-by: sivchari <shibuuuu5@gmail.com>
2026-03-17 11:27:02 +09:00
Richa Banker
56cd8b2fc6 Enable native histograms gated by feature flag in kubelet
Signed-off-by: Richa Banker <richabanker@google.com>
2026-03-16 12:18:32 -07:00
Richa Banker
34c6060a37 Enable native histograms gated by feature flag in kube-proxy 2026-03-16 12:09:37 -07:00
Richa Banker
cdf6cdde08 Enable native histograms gated by feature flag in KCM 2026-03-16 11:45:51 -07:00
Qi Wang
f1ccd2d8aa Add MemoryReservationPolicy to kubeletconfig for MemoryQoS feature
Add MemoryReservationPolicy (None/HardReservation) controls memory.min. This allows
independently of memory.min protection, providing operators more
granular control over memoryQoS behavior.
Signed-off-by: Qi Wang <qiwan@redhat.com>
2026-03-16 11:24:34 -04:00
sivchari
183ebf26d7 fix: argument order of errors.Is
Signed-off-by: sivchari <shibuuuu5@gmail.com>
2026-03-16 16:23:26 +09:00
Kubernetes Prow Robot
b5661be4ff Merge pull request #137248 from SergeyKanzhelev/propagate-context-cri-client
add context to CRI API client and contextual logging per-call
2026-03-14 00:41:36 +05:30
Kubernetes Prow Robot
b869833664 Merge pull request #137115 from damdo/add-tls-curve-preferences
Add --tls-curve-preferences flag for configuring TLS key exchange mechanism (curves)
2026-03-13 23:11:35 +05:30
Damiano Donati
53b163298d Add --tls-curve-preferences flag for configuring TLS key exchange mechanisms
Introduce support for specifying allowed TLS key exchange mechanisms
(IANA TLS Supported Groups) via a new --tls-curve-preferences flag,
following the same pattern as --tls-cipher-suites.

Curve preferences are specified as numeric IANA TLS Supported Group IDs
(e.g. 23,29,4588) rather than string names. This avoids maintaining a
hardcoded name-to-ID map that would become stale with each Go release,
and ensures new curves (such as Go 1.26's SecP256r1MLKEM768 and
SecP384r1MLKEM1024) work automatically when rebuilding with a newer Go
version -- no code changes required.

Changes:
- Add curves_flag.go in component-base/cli/flag with a simple
  int-to-tls.CurveID cast function
- Add CurvePreferences field ([]int32) to SecureServingOptions, registered
  via IntSliceVar, and wire it through to tls.Config

The order of the list is ignored; Go selects from the set using an
internal preference order. If omitted, Go defaults are used. The set of
accepted values depends on the Go version used to build the binary; see
https://pkg.go.dev/crypto/tls#CurveID for reference.
2026-03-13 14:26:05 +01:00
Kubernetes Prow Robot
d73c1818e9 Merge pull request #132620 from tchap/kcm-clean-termination
kube-controller-manager: Refactor leader election management to prepare for releasing lock on exit
2026-03-13 03:49:38 +05:30
Amritansh Amritansh
fbb68965f2 Fix zero PSI metrics emitted when OS doesn't enable PSI
Made-with: Cursor
2026-03-13 00:24:11 +05:30
Kubernetes Prow Robot
4e2bbc78bf Merge pull request #137170 from pohly/dra-device-taints-beta
DRA device taints: graduate to beta
2026-03-13 00:13:38 +05:30
Patrick Ohly
566dc7f3f3 DRA device taints: graduate to beta
The fields become beta, enabled by default. DeviceTaintRule gets
added to the v1beta2 API, but support for it must remain off by default
because that API group is also off by default.

The v1beta1 API is left unchanged. No-one should be using it
anymore (deprecated in 1.33, could be removed now if it wasn't for
reading old objects and version emulation).

To achieve consistent validation, declarative validation must be enabled also
for v1alpha3 (was already enabled for other versions). Otherwise,
TestVersionedValidationByFuzzing fails:

    --- FAIL: TestVersionedValidationByFuzzing (0.09s)
        --- FAIL: TestVersionedValidationByFuzzing/resource.k8s.io/v1beta2,_Kind=DeviceTaintRule (0.00s)
            validation_test.go:109: different error count (0 vs. 1)
                resource.k8s.io/v1alpha3: <no errors>
                resource.k8s.io/v1beta2: "spec.taint.effect: Unsupported value: \"幤HxÒQP¹¬永唂ȳ垞ş]嘨鶊\": supported values: \"NoExecute\", \"NoSchedule\", \"None\""
            ...
2026-03-12 18:26:02 +01:00
Ondra Kupka
8ddefcf4b3 kcm: Prepare leader election for release on exit
Refactor KCM so that it's ready to turn on releasing leader election
exit easily.
2026-03-12 16:27:35 +01:00
Kubernetes Prow Robot
1a75abd5b5 Merge pull request #137102 from sivchari/kubeadm-ca-cert-summary
kubeadm: print CA certificate summary during join discovery
2026-03-12 09:09:33 +05:30
Sergey Kanzhelev
2411af44e7 CRI client: pass context to Close and use contextual logging 2026-03-12 00:58:13 +00:00
Kubernetes Prow Robot
0909c60df9 Merge pull request #137605 from pacoxu/coredns-1.14.2
bump coredns to v1.14.2
2026-03-12 06:09:55 +05:30
Kubernetes Prow Robot
c232632ac5 Merge pull request #137213 from Jefftree/leak-fix
Fix FSWatcher goroutine leak by adding ctx to Run()
2026-03-12 06:09:42 +05:30
Kubernetes Prow Robot
b16838370b Merge pull request #136044 from SergeyKanzhelev/versioninconfigz
added API Version and Kind in /configz serailized objects
2026-03-11 15:09:36 +05:30
Kubernetes Prow Robot
38940f0222 Merge pull request #135297 from michaelasp/svmUpdateCRD
Remove CRD stored versions from status upon SVM migration
2026-03-11 08:03:09 +05:30
Michael Aspinwall
d274e05cc9 Remove CRD stored versions from status upon SVM migration 2026-03-11 00:50:27 +00:00
Sergey Kanzhelev
4396474b0b integration tests for configz endpoints 2026-03-11 00:25:32 +00:00
Kubernetes Prow Robot
0873aca240 Merge pull request #137402 from Nordix/fix-ipv6-support-check
fix(kube-proxy): fix IPv6 support check for Linux
2026-03-11 03:03:33 +05:30
Kubernetes Prow Robot
bfb362c575 Merge pull request #137466 from richabanker/nh-scheduler
Enable native histograms gated by feature flag in scheduler
2026-03-10 23:03:11 +05:30
Paco Xu
ed316226d2 bump coredns to v1.14.2 for kubeadm and cluster/ 2026-03-10 17:44:14 +08:00
Antoni Zawodny
3f094dc228 Create Workload API v1alpha2 (#136976)
* Drop WorkloadRef field and introduce SchedulingGroup field in Pod API

* Introduce v1alpha2 Workload and PodGroup APIs, drop v1alpha1 Workload API

Co-authored-by: yongruilin <yongrlin@outlook.com>

* Run hack/update-codegen.sh

* Adjust kube-scheduler code and integration tests to v1alpha2 API

* Drop v1alpha1 scheduling API group and run make update

---------

Co-authored-by: yongruilin <yongrlin@outlook.com>
2026-03-10 07:59:10 +05:30
Richa Banker
07705a5de7 Enable native histograms in scheduler gated by feature flag 2026-03-09 16:36:05 -07:00
Sergey Kanzhelev
f5efc1de14 add context to CRI API client and contextual logging per-call 2026-03-07 08:07:10 +00:00
Sergey Kanzhelev
1d4776ce85 Require configz to be external versioned runtime.Object 2026-03-06 18:41:11 +00:00
Wei Fu
2634261c17 cmd/kubeadm: ignore EINVAL error during unmount
If /var/lib/kubelet is MS_SHARED mountpoint, all the mountpoints
under /var/lib/kubelet will have duplicate one. When `kubeadm reset -f`
is executed, it will try to umount one path twice. However, they are in
the peer group. Once we umount one path, the duplicate one will be
umounted as well. So, in this case, we should ignore EINVAL error.

Signed-off-by: Wei Fu <fuweid89@gmail.com>
2026-03-06 11:50:42 -05:00
Kubernetes Prow Robot
e56063a600 Merge pull request #131774 from sivchari/use-embed
kubeadm: Use go:embed for readability
2026-03-06 20:00:22 +05:30
sivchari
68d7b79527 kubeadm: Use go:embed for readability
Migrate test fixtures to use go:embed for improved readability
and maintainability across kubeadm test files.

Signed-off-by: sivchari <shibuuuu5@gmail.com>
2026-03-06 21:03:09 +09:00
Tero Kauppinen
8cdc61b924 fix(kube-proxy): fix IPv6 support check for Linux
The current Linux implementation checks whether a node supports
IPv6 by testing for the presence of '/proc/net/if_inet6'. However,
that check does not confirm that IPv6 support is actually enabled.
As a result, kube-proxy can incorrectly enable dual‑stack support
on nodes that do not have IPv6 enabled.

The possibility to disable IPv6 support has existed since
Linux kernel v2.6.27.

Update the IPv6 support check to also consider the contents of
'/proc/sys/net/ipv6/conf/all/disable_ipv6'.

Signed-off-by: Tero Kauppinen <tero.kauppinen@est.tech>
2026-03-06 13:14:32 +02:00
sivchari
7246d1d406 kubeadm: print CA certificate summary during join discovery
Add CA certificate information display when running kubeadm join
with verbosity level 1 (--v=1). This helps users verify the cluster
CA certificate during the join process.

The output includes:
- Subject and Issuer
- Serial number
- NotBefore and NotAfter dates
- Signature and PublicKey algorithms
- Public key hash (SHA256)

Changes:
- Reorganize For() to print CA cert info after auth validation
- Add getCACertFromKubeconfig() helper function
- Add formatCACertInfo() helper function
- Add unit tests for the new helper functions

Signed-off-by: sivchari <shibuuuu5@gmail.com>
2026-03-06 16:25:33 +09:00
Harshal Neelkamal
40d8705d28 Introduce a kubelet-server configuration that allows reloading ClientCA in TLSConfig 2026-03-05 02:04:08 +00:00
Kubernetes Prow Robot
90e75ac8cf Merge pull request #136815 from atombrella/feature/slices_contains_cmd_kubelet
Use for-range in `cmd/{kubelet,kubeadm,kubemark}`
2026-03-03 13:31:28 +05:30
Paco Xu
a542dc586a kubeadm: do not add learner member to etcd client endpoints 2026-02-26 10:36:38 +08:00