Commit Graph

12939 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
0bb040288a Merge pull request #134781 from neolit123/1.35-removete-WaitForAllControlPlaneComponents-fg
kubeadm: remove the GA WaitForAllControlPlaneComponents FG
2025-10-22 18:46:39 -07:00
Kubernetes Prow Robot
eea58e01f4 Merge pull request #134743 from marquiz/devel/configz-cgroupdriver-fix
kubelet: fix kubeletconfig.cgroupDriver in configz
2025-10-22 17:38:38 -07:00
Kubernetes Prow Robot
972517f0dd Merge pull request #134281 from siyuanfoundation/fix-test
adopt consistent way to set feature gate based on emulation version for kcm and scheduler test server.
2025-10-22 13:26:39 -07:00
Siyuan Zhang
70ac573619 adopt consistent way to set feature gate based on emulation version for kcm and scheduler test server.
Signed-off-by: Siyuan Zhang <sizhang@google.com>
2025-10-22 13:20:30 -05:00
Kubernetes Prow Robot
4695bb6c19 Merge pull request #134779 from joshjms/bump-etcd-v3.5.24
etcd: Bump supported etcd version to v3.5.24 for release v1.32, v1.33, and v1.34
2025-10-22 10:32:48 -07:00
Kubernetes Prow Robot
501b768370 Merge pull request #134545 from novahe/fix-missing-apiversion
Fix missing involvedObject.apiVersion in event
2025-10-22 09:00:40 -07:00
Lubomir I. Ivanov
c49bdda383 kubeadm: remove the GA WaitForAllControlPlaneComponents FG
The kubeadm specific FG WaitForAllControlPlaneComponents
went GA and was locked enabled by default in 1.34.

In 1.35 it can be removed.
2025-10-22 17:14:02 +02:00
joshjms
3fbd1a1787 etcd: bump etcd to v3.5.24 for k8s v1.32, v1.33, v1.34
Signed-off-by: joshjms <joshjms1607@gmail.com>
2025-10-22 22:38:57 +08:00
novahe
9d48e7d2d4 fix missing involvedObject.apiVersion in event 2025-10-22 20:13:36 +08:00
Lubomir I. Ivanov
38373335cd kubeadm: adjust the etcd version map for release 1.35
Remove 1.31, add 1.35.
Also, add a note that there are a couple of variables
that must be updated as well.
2025-10-22 12:28:19 +02:00
Markus Lehtonen
49e4fe9d2b kubelet: fix kubeletconfig.cgroupDriver in configz
Reflect the correct cgroupDriver setting in the configz enpoint in case
the cgroup driver setting is received from the CRI. Moves the
initialization of the configz handler to a slightly later phase where
the CRI has been queried.
2025-10-21 11:23:22 +03:00
Kubernetes Prow Robot
b5c4ebc898 Merge pull request #134539 from adrianmoisey/kep-5495-add-deprecation-warning-to-kube-proxy
KEP: 5495 - Add deprecation warning for ipvs
2025-10-20 06:34:43 -07:00
Lubomir I. Ivanov
0613fdeccb kubeadm: add missing cluster-info context validation
When retrieving the cluster-info CM, ensure the cluster pointed
out by the current context in the kubeconfig is validated.

Add unit test for the above.

Make the function GetClusterFromKubeConfig() to return various
errors. Handle the errors on call sites. Add unit tests
for the update.

The above changes prevent panics when the users has manually
edited and malformed the kubeconfig in the cluster-info CM.
2025-10-20 11:58:58 +02:00
Adrian Moisey
44a268e272 KEP: 5495 - Add deprecation warning for ipvs 2025-10-18 15:11:58 +02:00
joshjms
51fc3c744a bump etcd to v3.5.23 for release v1.31, v1.32, and v1.33
Signed-off-by: joshjms <joshjms1607@gmail.com>
2025-10-18 02:10:21 +08:00
Kubernetes Prow Robot
f7fb7cd86b Merge pull request #134588 from liggitt/fixes-only-no-go-bump
go 1.25.2/1.24.8 related fixes
2025-10-14 07:45:36 -07:00
Kubernetes Prow Robot
db63a581ca Merge pull request #134366 from tallclair/feature-gates-test
Set multiple feature gates simultaneously in test
2025-10-13 13:11:33 -07:00
Jordan Liggitt
39d37a1e92 Remove invalid SAN certificate construction 2025-10-13 10:27:22 -07:00
Benjamin Elder
ced2a40b9e kubeadm preflight checks: fix host URL construction 2025-10-13 10:27:22 -07:00
Kubernetes Prow Robot
095b9d6045 Merge pull request #134433 from neolit123/1.35-show-wait-control-plane-errors-more-verbosely
kubeadm: print errors during control-plane-wait retries
2025-10-13 08:13:43 -07:00
Lubomir I. Ivanov
52c734f1e6 kubeadm: print errors during control-plane-wait retries
While waiting for control plane components, the errors during
retries are not shown in higher klog verbosity. Show them
for level 5.
2025-10-13 14:14:37 +02:00
Kubernetes Prow Robot
c8fb7c9174 Merge pull request #134524 from HirazawaUi/revert-134178
Revert "Merge pull request #134178 from HirazawaUi/remove-RootlessControlPlane“
2025-10-10 20:42:59 -07:00
Kubernetes Prow Robot
27cfc5b4d5 Merge pull request #133778 from carlory/kubeadm-cleanup-pod-infra-container-image
Remove the --pod-infra-container-image flag from kubeadm and cluster/gce
2025-10-10 19:48:58 -07:00
HirazawaUi
7b4d4f72c9 fix lint error 2025-10-10 22:35:03 +08:00
HirazawaUi
d6dec0b345 Revert "Merge pull request #134178 from HirazawaUi/remove-RootlessControlPlane"
This reverts commit fce5a08b92, reversing
changes made to d39b162163.
2025-10-10 18:36:42 +08:00
carlory
400f8eccc5 Remove the --pod-infra-container-image flag from kubeadm
Signed-off-by: carlory <baofa.fan@daocloud.io>
2025-10-10 16:54:42 +08:00
Kubernetes Prow Robot
4db43d1321 Merge pull request #134251 from joshjms/update-etcd-3.6.5
etcd: Update etcd to v3.6.5
2025-10-03 07:00:58 -07:00
joshjms
070d4c1846 bump etcd to v3.6.5
Signed-off-by: joshjms <joshjms1607@gmail.com>
2025-10-03 18:19:15 +08:00
Kubernetes Prow Robot
914f6f1116 Merge pull request #134201 from danwinship/conntrack-workaround
Update comments around an old bug workaround
2025-10-02 08:43:04 -07:00
Tim Allclair
4986abe0b8 Automated refactoring to use SetFeatureGatesDuringTest 2025-10-01 21:10:53 -07:00
Kubernetes Prow Robot
cffecaac55 Merge pull request #134319 from neolit123/1.35-refactor-fetch-init-config-flags
kubeadm: rework the FetchInitConfigurationFromCluster node flags
2025-09-30 09:14:32 -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
Tim Allclair
2c78bc981c Introduce API to codify and validate feature gate dependencies 2025-09-25 16:45:43 -07:00
Kubernetes Prow Robot
bab29b5b62 Merge pull request #134274 from neolit123/1.35-fix-discovery-client-lb
kubeadm: use JoinHostPort for Waiter functions
2025-09-25 12:26:15 -07:00
Lubomir I. Ivanov
bd075eb98c kubeadm: use JoinHostPort in WaitControlPlaneClient
Using naive string concat with ":" does not work for IPv6.
Apply the fix to WaitForKubelet as well.
2025-09-25 19:11:10 +02:00
Kubernetes Prow Robot
243d8c000e Merge pull request #133190 from aman4433/kube-proxy-statusz-endpoints
kube-proxy: list available endpoints in /statusz
2025-09-25 07:28:23 -07:00
Lubomir I. Ivanov
0010d3992a kubeadm: ensure waiting for apiserver uses a local client
When waiting for the kube-apiserver to report 'ok'
in the 'init' and 'join' phase 'wait-control-plane', a client
constructed from the 'admin.conf' is used. In the case of the
kube-apiserver, the discovery client is used so that
anonymous-auth works. But if 'admin.conf' is used as is,
it would point to the CPE and not the LAE.

Implement a new method WaitControlPlaneClient() for both
init.go and join.go that patches the 'Server' field in the
loaded v1.Config to point to the LAE, before constructing
a client set and using it in the kube-apiserver waiter.
2025-09-25 14:43:45 +02:00
Aman Shrivastava
409ad3944f added unit test for /statusz endpoints 2025-09-24 21:34:08 +05:30
hoteye
1e4e6e10c1 Use context.Background() directly in kubeadm polling API calls
Replace context.TODO() and poll timeout context propagation with direct
context.Background() calls to prevent timeout errors from masking actual
API errors. Affects discovery/file.go, phases/upgrade/health.go, and
util/apiclient/wait.go for consistent error reporting.
2025-09-22 21:37:27 +08:00
Dan Winship
c813854620 Update comments around an old bug workaround 2025-09-22 09:33:31 -04:00
Kubernetes Prow Robot
fce5a08b92 Merge pull request #134178 from HirazawaUi/remove-RootlessControlPlane
Kubeadm: Remove RootlessControlPlane feature gate
2025-09-21 09:00:12 -07:00
HirazawaUi
12db1e28dc remove unused file 2025-09-21 00:35:54 +08:00
Kubernetes Prow Robot
d39b162163 Merge pull request #134106 from neolit123/1.35-graduate-ControlPlaneKubeletLocalMode-to-ga
kubeadm: graduate ControlPlaneKubeletLocalMode to GA
2025-09-20 09:02:12 -07:00
HirazawaUi
15b16e0090 Remove RootlessControlPlane feature gate 2025-09-20 22:37:56 +08:00
Kubernetes Prow Robot
09aaf72260 Merge pull request #134124 from danwinship/iptables-setup
drop utiliptables.NewDualStack, which is too confusing
2025-09-19 08:30:12 -07:00
Lubomir I. Ivanov
9d4b91dbd8 kubeadm: cleanup after ControlPlaneKubeletLocalMode 2025-09-18 18:37:23 +02:00
Dan Winship
f8bfcfc885 Drop utiliptables.NewDualStack()
The semantics (sometimes it returns an error that is really just a
warning) are too confusing, and it turns out that we really only need
it in one place (platformCheckSupported()); after that we've already
figured out what IP families are supported, so we could just use
utiliptables.NewBestEffort() instead, knowing we want exactly what it
returns.

So we can just expand the semantics of the old NewDualStack() inline
in the one place we care, without hiding any of it behind a
too-complicated return value.
2025-09-17 20:14:28 -04:00
Lubomir I. Ivanov
56a4306fed kubeadm: graduate ControlPlaneKubeletLocalMode to GA 2025-09-17 15:02:00 +02:00
Aditi Gupta
f58d1e101f refactor(controller): Use WithContext variants in cloud node controllers
This change refactors the cloud-specific versions of the node lifecycle
and node IPAM controllers to use a context.Context for cancellation and
contextual logging, replacing the legacy stopCh pattern.

This is a follow-up to PR #133985, where these controllers were
separated out due to their use in the legacy Cloud Controller Manager
(CCM).

It is a known issue that the CCM's startup logic does not pass the
controller name via the context. This change proceeds with the
refactoring to unify the cancellation logic across controllers, while
acknowledging that contextual logs will be less detailed when these
controllers are run in the CCM.

Signed-off-by: Aditi Gupta <aditigpta@google.com>
2025-09-17 00:17:38 -07:00
Kubernetes Prow Robot
b40d570248 Merge pull request #133988 from bart0sh/PR199-migrate-kubelet-certificate-to-contextual-logging
migrate kubelet/certificate to contextual logging
2025-09-16 02:24:12 -07:00