kubernetes/cmd/kubeadm/app/util/apiclient
Lubomir I. Ivanov 54b73deaca kubeadm: handle dry run GET actions from fake discovery
The kubeadm dry run client reactor code is flawed as it assumes
all invoked "get" verb actions can be casted to GetAction.
Apparently that is not the case when Discovery().ServerVersion()
and other discovery calls are made. In such cases the action
type is the bare ActionImpl.

Catch if an action can be casted to ActionImpl and construct a
GetAction from it. GetActionImpl only suppersets ActionImpl with
a Name field (empty string in this case).

Add unit test for Discovery().ServerVersion().
2022-12-21 11:49:59 +02:00
..
clientbacked_dryrun.go kubeadm: optimize and make the usage consistent about apierrors.IsNotFound 2022-10-13 23:23:53 +08:00
dryrunclient_test.go kubeadm: handle dry run GET actions from fake discovery 2022-12-21 11:49:59 +02:00
dryrunclient.go kubeadm: handle dry run GET actions from fake discovery 2022-12-21 11:49:59 +02:00
idempotency_test.go Retry patch when then service is unavailable or timeout. 2022-11-29 23:09:31 +08:00
idempotency.go Retry patch when then service is unavailable or timeout. 2022-11-29 23:09:31 +08:00
init_dryrun_test.go
init_dryrun.go
wait.go kubeadm: optimize and make the usage consistent about apierrors.IsNotFound 2022-10-13 23:23:53 +08:00