Paco Xu
75f89875f8
use etcd 3.5.6-0 after promotion
2022-11-24 09:45:56 +08:00
songxiao-wang87
23fa8032ff
word misspelling
...
Signed-off-by: songxiao-wang87 <wang.xiaosong23@zte.com.cn >
2022-11-23 00:29:36 +00:00
ZhangYu
ad2d23eb9f
Add test for cmd/kubeadm/app/phases/upgrade/compute.go
2022-11-21 10:25:30 +08:00
ZhangYu
44285a16ec
Add test for cmd/kubeadm/app/constants/constants.go
...
Add test for cmd/kubeadm/app/constants/constants.go
2022-11-16 14:50:32 +08:00
Mark Rossetti
534f052a8d
Updating pause image refernces to 3.9
...
Signed-off-by: Mark Rossetti <marosset@microsoft.com >
2022-11-14 10:24:54 -08:00
SataQiu
69547267ef
kubeadm: remove unused command flag constants
2022-11-13 17:56:58 +08:00
Kubernetes Prow Robot
c4a8d3e9e4
Merge pull request #113462 from chendave/reset_test
...
kubeadm: add testcases for `kubeadm reset`
2022-11-02 06:47:15 -07:00
Kubernetes Prow Robot
22f3e64039
Merge pull request #113320 from chendave/test
...
kubeadm: simply struct of `joinOptions` by removing `joinControlPlane`
2022-11-01 02:48:45 -07:00
Dave Chen
3ddedf00e5
kubeadm: add testcases for kubeadm reset
...
For parity with `init` and `join`, the test file only
covers some basic scenarios and is expected to be expanded
when the config file for `kubeadm reset` is ready.
Signed-off-by: Dave Chen <dave.chen@arm.com >
2022-11-01 11:34:53 +08:00
Paco Xu
e57985a3f4
remove UnversionedKubeletConfigMap feature gate: GAed in v1.25
2022-10-30 11:17:24 +08:00
Kubernetes Prow Robot
f3e6e05979
Merge pull request #113355 from chendave/preflightErrors
...
kubeadm: Don't reuse the `ignorePreflightErrors` from initCfg for `reset`
2022-10-26 08:40:36 -07:00
Dave Chen
5854b92450
kubeadm: Don't reuse the ignorePreflightErrors from initCfg for reset
...
The init config file fetched from cluster won't have `ignorePreflightErrors`
set, and shouldn't try to reuse it even it's set with any value.
Instead, it should be defined in reset config file and fetch from it when the
reset config is ready.
Signed-off-by: Dave Chen <dave.chen@arm.com >
2022-10-26 16:14:11 +08:00
Kubernetes Prow Robot
5539a5b80f
Merge pull request #113353 from chendave/validation
...
kubeadm: print the invalid field when validating bootstrap token discovery
2022-10-26 00:44:36 -07:00
Dave Chen
1607babd35
kubeadm: print the invalid field when validating bootstrap token discovery
...
It was saying `discovery.bootstrapToken` is invalid with empty value, while
it is actually `discovery.bootstrapToken.caCertHashes` invalid.
Signed-off-by: Dave Chen <dave.chen@arm.com >
2022-10-26 13:45:00 +08:00
Dave Chen
d4fd5b77aa
kubeadm: simply struct of joinOptions by removing joinControlPlane
...
Signed-off-by: Dave Chen <dave.chen@arm.com >
2022-10-25 19:03:47 +08:00
Kubernetes Prow Robot
38c659eb9f
Merge pull request #111534 from claudiubelu/unittests-7
...
unittests: Fixes unit tests for Windows
2022-10-24 06:30:25 -07:00
SataQiu
93ece333e6
kubeadm: print the detailed manifest info when decoding it into runtime.Object fails
2022-10-21 16:50:17 +08:00
Kubernetes Prow Robot
3b8cfefaee
Merge pull request #113005 from chendave/dry-run-prepare
...
kubeadm: Enable `dry-run` mode for phase of `control-plane-prepare certs`
2022-10-17 06:59:07 -07:00
Dave Chen
b3f91f0c02
kubeadm: Enable dry-run mode for phase of control-plane-prepare certs
...
- All certs will be created under the folder of `/etc/kubernetes/tmp/kubeadm-join-dryrunxxx`
if the `dry-run` mode is enabled.
- Try to make each phase idempotent by resetting the cert dir with `dry-run` mode
Signed-off-by: Dave Chen <dave.chen@arm.com >
2022-10-17 18:29:53 +08:00
Dave Chen
6694b6bf9a
kubeadm: fix the err msg if the token format is not match
...
Previously, the err msg will repeat the token ID of the form "[a-z0-9]{6}"
if the token doesn't match with the desired format.
Signed-off-by: Dave Chen <dave.chen@arm.com >
2022-10-17 15:59:18 +08:00
Kubernetes Prow Robot
baaf22a37c
Merge pull request #113039 from chendave/fix_help_msg
...
kubeadm: fix the help msg for `kubeadm init phase upload-certs`
2022-10-14 03:38:46 -07:00
Kubernetes Prow Robot
2f7fae3451
Merge pull request #112941 from chendave/certs_msg
...
kubeadm: print out the solution if CA files do not exist
2022-10-14 01:40:45 -07:00
Dave Chen
bd1ac95974
kubeadm: fix the help msg for kubeadm init phase upload-certs
...
The phase `kubeadm init phase upload-certs` intends to be used if
secret "kubeadm-certs" is expired and deleted.
But the help msg was saying this command cannot run on its own.
It's fine to run this command on its own to upload local certs to secret.
Signed-off-by: Dave Chen <dave.chen@arm.com >
2022-10-14 15:39:30 +08:00
Kubernetes Prow Robot
a31e88ad6e
Merge pull request #113048 from SataQiu/clean-20221013
...
kubeadm: optimize and make the usage consistent about apierrors.IsNotFound
2022-10-13 13:43:04 -07:00
SataQiu
d4cafe4738
kubeadm: optimize and make the usage consistent about apierrors.IsNotFound
2022-10-13 23:23:53 +08:00
Kubernetes Prow Robot
5301d92150
Merge pull request #112945 from chendave/dry-run
...
kubeadm: Inherit `dry-run` flags for each sub-phases
2022-10-11 03:03:02 -07:00
Dave Chen
183a26f853
kubeadm: Inherit dry-run flags for each sub-phases
...
- The sub-phases like `kubeadm reset phase cleanup-node` which
could be run independently would be able to support the `dry-run`
mode as well.
- Consistent with the sub-phases which support the `dry-run` mode
already, such as `kubeadm init phase control-plane apiserver`.
- Prepare for the day when each of those sub-phases could be run
independently.
Signed-off-by: Dave Chen <dave.chen@arm.com >
2022-10-11 16:02:50 +08:00
Dave Chen
3fa6662875
kubeadm: print out the solution if CA files do not exist
...
phase `kubeadm init phase kubeconfig/*` must run after the phase
`kubeadm init phase certs/ca` to get the client cert and key singed
by the CA.
print out the way to generate the CA file is more useful than just say
the file cannot be loaded.
Signed-off-by: Dave Chen <dave.chen@arm.com >
2022-10-10 15:24:42 +08:00
Kubernetes Prow Robot
99360e5dbc
Merge pull request #112946 from chendave/typo
...
kubeadm: fix typo for cmd reset's runner binding
2022-10-09 23:55:20 -07:00
Dave Chen
b375109225
kubeadm: fix typo for cmd reset's runner binding
...
Signed-off-by: Dave Chen <dave.chen@arm.com >
2022-10-10 11:51:15 +08:00
Shiming Zhang
3a54e3e56a
Cleanup CopyFile
2022-10-09 19:59:39 +08:00
Kubernetes Prow Robot
c012d901d8
Merge pull request #112598 from wangguoyan/fix-deprecated-method
...
replace deprecated ioutil functions
2022-09-28 20:38:29 -07:00
wangguoyan
447ad7eacb
replace deprecated ioutil functions
...
Signed-off-by: wangguoyan <717338097@qq.com >
2022-09-29 09:00:10 +08:00
SataQiu
61cd585ad2
kubeadm: remove redundant import alias and unused apiclient util funcs
2022-09-28 12:36:54 +08:00
Kubernetes Prow Robot
8cbe9e91c8
Merge pull request #112742 from ping035627/k8s-220926
...
Kubeadm: Cleanup runPreflight in init/preflight
2022-09-27 13:00:00 -07:00
PingWang
da88db6321
Kubeadm: Cleanup runPreflight in join/preflight
...
Signed-off-by: PingWang <wang.ping5@zte.com.cn >
update runPreflight in init/preflight.go
Signed-off-by: PingWang <wang.ping5@zte.com.cn >
cleanup runPreflight in init/preflight.go
Signed-off-by: PingWang <wang.ping5@zte.com.cn >
2022-09-27 19:36:45 +08:00
SataQiu
605f3dd89a
kubeadm: fix the field path of ClusterConfiguration networking validation
2022-09-27 18:51:19 +08:00
Kubernetes Prow Robot
edd6776943
Merge pull request #112732 from SataQiu/fix-kubeadm-20220926
...
kubeadm: support image repository format validation
2022-09-27 03:23:50 -07:00
Kubernetes Prow Robot
27b7d3cd41
Merge pull request #112620 from pacoxu/windows-kubeadm-ut
...
add go:build no windows for some control-plane related UT for kubeadm
2022-09-26 22:29:50 -07:00
SataQiu
b833e628b2
kubeadm: support image repository format validation
2022-09-26 19:38:42 +08:00
Paco Xu
241445759e
add go:build no windows for some control-plane related UT for kubeadm
2022-09-26 17:17:41 +08:00
anstns
105a7319b1
Optimize name rules
2022-09-22 21:46:37 +08:00
Kubernetes Prow Robot
17c5066625
Merge pull request #112596 from chendave/data
...
kubeadm: try to reuse `RunData` if possible
2022-09-20 23:37:06 -07:00
Dave Chen
41b8536a50
kubeadm: try to reuse RunData if possible
...
The generation of `RunData` for init and join is relative time consuming,
the data should be shared / reused whenever possible.
Signed-off-by: Dave Chen <dave.chen@arm.com >
2022-09-21 13:35:15 +08:00
Kubernetes Prow Robot
297a986738
Merge pull request #110941 from runzhliu/patch-1
...
improve the comments
2022-09-19 14:21:34 -07:00
Kubernetes Prow Robot
127f33f63d
Merge pull request #111221 from inosato/remove-ioutil-from-kubelet
...
Remove ioutil in kubelet/kubeadm and its tests
2022-09-17 21:56:28 -07:00
Kubernetes Prow Robot
06fd0a0728
Merge pull request #112489 from dims/etcd_update_v3.5.5
...
etcd: Updated to v3.5.5
2022-09-16 08:49:16 -07:00
Kubernetes Prow Robot
05f17ee5d6
Merge pull request #111076 from claudiubelu/unittests-6
...
unittests: Fixes cmd unit tests for Windows
2022-09-16 07:39:27 -07:00
SataQiu
de4aeecd48
kubeadm: allow RSA and ECDSA format keys in preflight check
2022-09-16 18:50:45 +08:00
Davanum Srinivas
0f6b9b883c
etcd: Updated to v3.5.5
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
2022-09-15 21:05:13 -04:00