Commit graph

12921 commits

Author SHA1 Message Date
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
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
Kubernetes Prow Robot
8826364a57
Merge pull request #131483 from tallclair/kubeletconfig
Clean up pkg/kubelet/config
2025-09-15 15:54:07 -07:00
Kubernetes Prow Robot
a4981e1cf3
Merge pull request #134007 from carlory/fix-128763
kubeadm: fix KUBEADM_UPGRADE_DRYRUN_DIR not honored in upgrade phase when writing kubelet config files
2025-09-15 06:48:11 -07:00
杨朱 · Kiki
8817dd6529
Update cmd/kubeadm/app/cmd/upgrade/node.go
Co-authored-by: Bing Hongtao <695097494plus@gmail.com>
2025-09-15 20:51:52 +08:00
Kubernetes Prow Robot
aa35105213
Merge pull request #132703 from tchap/kcm-sync-api
kcm/app: Add proper goroutine management
2025-09-15 01:58:11 -07:00
carlory
5dac4ee169
Improve dry-run error messages for clarity 2025-09-15 09:56:13 +08:00
Kubernetes Prow Robot
26b246ae66
Merge pull request #133191 from Jefftree/rev
Add jefftree to OWNERS
2025-09-11 07:06:11 -07:00
carlory
97cd1c2408
replace fmt.Printf with fmt.Fprintf
Signed-off-by: carlory <baofa.fan@daocloud.io>
2025-09-11 16:43:46 +08:00
carlory
96463c1e9a
kubeadm: fix the KUBEADM_UPGRADE_DRYRUN_DIR environment variable doesn't work forthe upgrade phase when it writes kubelet config files to disk
Signed-off-by: carlory <baofa.fan@daocloud.io>
Co-authored-by: Lubomir I. Ivanov <neolit123@gmail.com>
2025-09-11 15:57:47 +08:00
Kubernetes Prow Robot
5cef241d82
Merge pull request #133218 from nmn3m/kube-controller-manager-statuz
adds a list of available HTTP endpoints for the kube-controller-manag…
2025-09-10 11:48:22 -07:00
Ondra Kupka
9e60e3593e kcm/app: Add proper goroutine management
Make sure no goroutines can leak in the app package that manages
controller starting/termination.
2025-09-10 16:21:36 +02:00
Ed Bartosh
bf0429ed07 migrate kubelet/certificate to contextual logging 2025-09-10 12:33:33 +03:00
Kubernetes Prow Robot
f26c1326e2
Merge pull request #133957 from bart0sh/PR199-migrate-server-to-contextual-logging
Migrate kubelet/server to contextual logging
2025-09-09 19:29:57 -07:00
Kubernetes Prow Robot
a8905a154b
Merge pull request #133179 from nmn3m/fix-strings-title
Replace deprecated strings.Title with cases.Title
2025-09-09 05:53:30 -07:00
Ed Bartosh
b276c96ef8 Migrate kubelet/server to contextual logging 2025-09-09 12:49:42 +03:00
Kubernetes Prow Robot
08946ca255
Merge pull request #132606 from Peac36/fix/132539
add paths section to scheduler statusz endpoint
2025-09-08 07:39:31 -07:00
Kubernetes Prow Robot
597a684bb0
Merge pull request #133172 from ania-borowiec/move_handle_and_plugin
Move interfaces: Handle and Plugin and related types from kubernetes/kubernetes to staging repo kube-scheduler
2025-09-08 06:05:31 -07:00
Nikola
b42b96f518 add paths section to scheduler statusz endpoint
Signed-off-by: Nikola <peac36@abv.bg>
2025-09-08 13:13:42 +03:00
Kubernetes Prow Robot
d9b31d602d
Merge pull request #133893 from HirazawaUi/close-connections
Kubeadm: Close container runtime connections after use
2025-09-06 01:35:24 -07:00