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
Kubernetes Prow Robot
657776e52b
Merge pull request #112350 from chenk008/reduce_kubeadm_tls_wait
...
Reduce kubeadm tls bootstrap wait
2022-09-14 22:21:22 -07:00
chenk008
c601c7fd4c
reduce kubeadm tls bootstrap retry interval to 1s
2022-09-15 11:31:02 +08:00
B Aravind
b307321c0a
I have evaluated TODO retry remove if feasible ( #112383 )
...
Hi team, hope u all doing well.
I have checked TODO that to remove "retry" if feasible but it's important i think that it shouldn't be removed because it was used in every file on your repo.
Update idempotency.go
Update idempotency.go
Update idempotency.go
2022-09-13 22:31:00 -07:00
Kubernetes Prow Robot
2b2be7fa6b
Merge pull request #111277 from chymy/improve-kubeadm-subcommand-tips
...
kubeadm: improve tips of incorrect input of kubedm subcommand
2022-09-09 00:49:23 -07:00
Kubernetes Prow Robot
00c0c9d880
Merge pull request #112235 from demoManito/fix/upgrade-style
...
fix: modify declaration slice and map code style
2022-09-08 02:56:06 -07:00
Kubernetes Prow Robot
cae4c036c8
Merge pull request #112241 from xiaoliwang/simplified_regexp
...
Optimize: simplified regexp
2022-09-07 02:28:36 -07:00
demoManito
35c26f48e4
fix: map and slice create style
2022-09-07 17:10:13 +08:00
jiepeng
211e0a6496
simplified regexp
2022-09-07 15:51:36 +08:00
Kubernetes Prow Robot
4b9575acb8
Merge pull request #112272 from chendave/cleanupflags
...
kubeadm: using the existing exported method to add config flag
2022-09-06 22:26:36 -07:00
Dave Chen
6675bea8a2
kubeadm: using the existing exported method to add config flag
...
Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-09-07 11:50:06 +08:00
Dave Chen
57551cc3d7
kubeadm: Add the option to cleanup the tmp
directory
...
The `tmp` is created by `kubeadm` but is never removed, the
size is expected to be expanded as time goes by.
Add one bool option to cleanup the `tmp` dir, the flag is
off by default.
Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-09-02 15:57:07 +08:00
Dave Chen
1bb44a8e78
kubeadm: too early return for reset with dry-run or force mode
...
Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-09-01 17:02:27 +08:00
Octopusjust
48c8183fc4
cmd/kubeadm/:add test file for data.go ( #112122 )
...
Update data_test.go
according to the modification suggestions
Update data_test.go
according to the modification suggestions
2022-08-31 01:43:00 -07:00
Kubernetes Prow Robot
891cbede96
Merge pull request #110972 from chendave/cleanup_data
...
kubeadm: unify the way to cleanup the files for `kubeadm reset`
2022-08-29 00:44:36 -07:00
Kubernetes Prow Robot
50097acf15
Merge pull request #112008 from pacoxu/kubeadm-taint
...
Kubeadm cleanup for taint / toleration with master label
2022-08-28 19:58:36 -07:00
SataQiu
8e4cf3b8d2
kubeadm: move show-join-command as a separate phase
2022-08-26 23:35:58 +08:00
Claudiu Belu
d192029e6a
unittests: Fixes cmd unit tests for Windows
...
Currently, there are some unit tests that are failing on Windows due to
various reasons:
- filepath.IsAbs does not consider "/" or "\" as absolute paths, even
though files can be addressed as such.
- paths not properly joined (filepath.Join should be used).
- files not closed, which means that they cannot be removed / renamed.
- some assertions fail due to slashes / backslashes not matching.
- backslashes need to be escaped in yaml files, or put between ''
instead of "".
2022-08-26 16:03:13 +03:00
Claudiu Belu
49ef27009d
unittests: Fixes unit tests for Windows
...
Currently, there are some unit tests that are failing on Windows due to
various reasons:
- Windows file permissions do not work the same way as the Linux ones.
- cp does not exist on Windows, and xcopy should be used instead.
- Get-Item does not work for hidden files / folders like AppData, but
works if given the -Force flag.
2022-08-26 14:39:56 +03:00
Paco Xu
f445764969
fix a flag replace of container-runtime=remote
2022-08-26 19:18:42 +08:00
Dave Chen
71ef1ea68d
Cleanup etcd data dir on best effort basis
...
Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-08-26 11:55:19 +08:00
Dave Chen
f180a3f265
Move the logic of file cleanup within each phase
...
Guarantee that stale files are removed if end user resets cluster
by resetting each phase.
Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-08-26 11:30:49 +08:00
chymy
749256e9c2
Improve tips of incorrect input of kubedm some subcommand
...
Signed-off-by: chymy <chang.min1@zte.com.cn>
2022-08-26 01:18:29 +00:00
Kubernetes Prow Robot
bc9f48b841
Merge pull request #112024 from cndoit18/remove-redundant-judgment
...
style: remove redundant judgment
2022-08-25 07:28:18 -07:00
Paco Xu
04e0c6c160
kubeadm: do not need to remove old taint as v1.25 upgrade will remove it
2022-08-25 22:24:44 +08:00
Paco Xu
4daf5f903b
kubeadm: cleanup master related taint and tolerations
2022-08-25 22:22:20 +08:00
Kubernetes Prow Robot
b87a436aed
Merge pull request #112000 from pacoxu/kubeadm-cleanup
...
kubeadm: remove container-runtime=remote
2022-08-25 05:14:18 -07:00
Kubernetes Prow Robot
8206c9d458
Merge pull request #111458 from muyangren2/addtest_common
...
add test to isKubeadmConfigPresent method
2022-08-25 03:52:06 -07:00
Paco Xu
f9643b69f3
cleanup kubelet config file: kubeadm-flags.env to remove container-runtime flag
2022-08-25 17:55:37 +08:00
Paco Xu
5974da784c
kubeadm: remove container-runtime=remote
2022-08-25 17:10:39 +08:00
cndoit18
ec43037d0f
style: remove redundant judgment
...
Signed-off-by: cndoit18 <cndoit18@outlook.com>
2022-08-25 12:07:36 +08:00
Kubernetes Prow Robot
2a8eff983e
Merge pull request #112006 from pacoxu/kubeadm-registry-name-cleanup
...
kubeadm: remove MutateImageRepository for registry change
2022-08-24 12:01:49 -07:00
Kubernetes Prow Robot
4bf457ea95
Merge pull request #112005 from pacoxu/kubeadm-dup-unix-prefix
...
kubeadm: revert dedup prefix unix:// in node annotation
2022-08-24 05:52:14 -07:00
Paco Xu
db0d55e1e6
kubeadm: remove MutateImageRepository for registry change
2022-08-24 17:47:51 +08:00
Paco Xu
09d3255572
kubeadm: revert dedup prefix unix:// in node annotation
2022-08-24 17:35:05 +08:00
Kubernetes Prow Robot
dabb1c5f93
Merge pull request #111949 from chymy/kubeadm-version-test
...
kubeadm: add test cases for version_test.go
2022-08-23 22:33:49 -07:00
Kubernetes Prow Robot
7f8f035ae8
Merge pull request #111836 from ialidzhikov/cleanup/cmd-kubeadm
...
cmd/kubeadm: Replace deprecated func usage from the `k8s.io/utils/pointer` pkg
2022-08-23 20:08:00 -07:00
Kubernetes Prow Robot
17e03f858e
Merge pull request #111783 from SataQiu/fix-kubeadm-20220810
...
kubeadm: try to load CA cert from external CertificateAuthority file when CertificateAuthorityData is empty for existing kubeconfig
2022-08-23 19:00:36 -07:00
Kubernetes Prow Robot
94c70776ee
Merge pull request #111656 from Octopusjust/k8s-pr7
...
Add test for cmd/kubeadm/app/cmd/util/cmdutil.go
2022-08-23 17:16:40 -07:00
chymy
08d4748de2
kubeadm: add test cases for version_test.go
...
Signed-off-by: chymy <chang.min1@zte.com.cn>
2022-08-22 02:56:35 +00:00
ialidzhikov
76bf5a41cf
cmd/kubeadm: Replace deprecated func usage from the k8s.io/utils/pointer
pkg
2022-08-14 12:49:45 +03:00
SataQiu
31f1d84d9a
kubeadm: try to load CA cert from external CertificateAuthority file when CertificateAuthorityData is empty for existing kubeconfig
2022-08-10 21:03:27 +08:00
Octopusjust
d1dd3691c5
Update cmdutil_test.go
...
Modify error reporting format
2022-08-05 09:47:12 +08:00
Kubernetes Prow Robot
e539bb5a50
Merge pull request #111596 from muyangren2/addtest_virtualIP
...
add test for GetAPIServerVirtualIP
2022-08-04 04:57:46 -07:00
muyangren2
4af5cc3443
add test for GetAPIServerVirtualIP
...
modify
modify
modify
modify
modify
2022-08-03 18:12:00 +08:00
ZhangYu
20affda7f7
Add test for cmd/kubeadm/app/cmd/util/cmdutil.go
2022-08-03 15:01:55 +08:00
muyangren2
fc976d9f89
add test for GetNodeNameAndHostname
2022-08-02 11:03:21 +08:00
Benjamin Elder
719c1d2680
kubeadm: make pre-release warning log less confusing
2022-08-01 15:29:36 -07:00
Kubernetes Prow Robot
3a650c5c56
Merge pull request #111502 from muyangren2/addtest_apiendpoint
...
add test for String
2022-08-01 12:10:40 -07:00
Kubernetes Prow Robot
ebad8c70c2
Merge pull request #111492 from muyangren2/addtest_validation_port
...
add test for ValidatePort
2022-08-01 03:50:29 -07:00
muyangren2
c0cabc67e1
add test
...
modify
modify2
2022-08-01 15:28:03 +08:00
inosato
3b95d3b076
Remove ioutil in kubelet and its tests
...
Signed-off-by: inosato <si17_21@yahoo.co.jp>
2022-07-30 12:35:26 +09:00
Clément Nussbaumer
1459fdf7cf
Fix kubeadm upgrade plan
issue with FQDN nodes names
...
the fix introduced in #110634 also introduces a bug preventing `kubeadm
upgrade plan` from running on nodes having a different `os.Hostname()`
than node name. concretely, for a node `titi.company.ch`,
`os.Hostname()` will return `titi`, while the full node name is actually
`titi.company.ch`. this simple fix uses the `cfg.NodeRegistration.Name`
instead, which fixes the issue on my nodes with a FQDN node name
Keep previous hostname retrieval as fallback for dupURL CRI fix
2022-07-29 10:42:21 +02:00
Kubernetes Prow Robot
2c8af1e4b1
Merge pull request #111455 from chendave/clientset
...
kubeadm: move `getClientSet` to cmd utils
2022-07-28 05:03:09 -07:00
muyangren2
2422e99df3
add test for String
...
modify
2022-07-28 18:23:44 +08:00
muyangren2
fc6bbf991e
add test in cmd/kubeadm/app/apis/kubeadm/validation/validation_test.go for ValidatePort
...
modify
2022-07-28 17:12:14 +08:00
Dave Chen
819c12276b
kubeadm: move getClientSet
to cmd utils
...
`getClientSet` is used by both cmd `token` and `reset`, move this
method to cmd utils to decouple it from one specific cmd.
Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-07-27 15:13:09 +08:00
Davanum Srinivas
a9593d634c
Generate and format files
...
- Run hack/update-codegen.sh
- Run hack/update-generated-device-plugin.sh
- Run hack/update-generated-protobuf.sh
- Run hack/update-generated-runtime.sh
- Run hack/update-generated-swagger-docs.sh
- Run hack/update-openapi-spec.sh
- Run hack/update-gofmt.sh
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-07-26 13:14:05 -04:00
Kubernetes Prow Robot
96a32be18d
Merge pull request #111394 from SataQiu/cleanup-20220725
...
kubeadm: prefer to use pkg/errors package and cleanup fmt.Errorf
2022-07-26 09:11:09 -07:00
SataQiu
6cab9800a7
kubeadm: prefer to use pkg/errors package and cleanup fmt.Errorf
2022-07-26 16:56:16 +08:00
Lukasz Szaszkiewicz
81dec8bc6a
kubeadm: pass etcd progress notification flag to etcd
...
The experimental-watch-progress-notify-interval flag specifies an interval
at which etcd sends data to the kube-api server.
It is used by the WatchBookmark feature which is GA since 1.17.
It will be used by a new WatchList feature which is Alpha since 1.25
In addition to that the feature was graduated to GA (non-experiment) in etcd 3.5 without any code changes
2022-07-25 12:28:51 +02:00
Mark Rossetti
40f3e624a6
Switching everything to use pause:3.8
...
Signed-off-by: Mark Rossetti <marosset@microsoft.com>
2022-07-21 14:53:15 -07:00
Kubernetes Prow Robot
122254fc01
Merge pull request #111210 from chymy/kubeadm-fix-typo
...
kubeadm: fix comment typo
2022-07-18 21:56:34 -07:00
Kubernetes Prow Robot
1c1efde70d
Merge pull request #109639 from Abirdcfly/fixduplicateimport
...
cleanup: remove all duplicate import
2022-07-18 16:55:23 -07:00
Kubernetes Prow Robot
5108b0a3a0
Merge pull request #111189 from Octopusjust/k8s-pr4
...
Add testcases for cmd/kubeadm/app/util/net.go and version.go
2022-07-18 02:49:27 -07:00
chymy
a1fd50d53a
kubeadm: fix comment typo
...
Signed-off-by: chymy <chang.min1@zte.com.cn>
2022-07-18 16:48:29 +08:00
Octopusjust
db0bfd8727
Update version_test.go
...
run ./hack/verify-gofmt.sh
2022-07-18 14:15:06 +08:00
ZhangYu
ba80421254
Add testcases for cmd/kubeadm/app/util/net.go and version.go
2022-07-16 09:23:48 +08:00
Paco Xu
5c0c20a5ea
kubeadm: UnversionedKubeletConfigMap is GAed in v1.25
2022-07-14 20:56:45 +08:00
Abirdcfly
00b9ead02c
cleanup: remove duplicate import
...
Signed-off-by: Abirdcfly <fp544037857@gmail.com>
2022-07-14 11:25:19 +08:00
SataQiu
723cadf750
kubeadm: respect user specified image repository when using Kubernetes ci version
2022-07-09 16:24:51 +08:00
Kubernetes Prow Robot
34b9f0dbed
Merge pull request #110998 from chendave/de_dup_kubeadm
...
kubeadm: De-dup the confirmation on the interactive cmds
2022-07-07 12:46:37 -07:00
Dave Chen
8aeee521e6
kubeadm: De-dup the confirmation on the interactive cmds
...
Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-07-07 11:51:26 +08:00
Mengjiao Liu
88c6deb778
Update godoc.org
to pkg.go.dev
in kubeadm
2022-07-07 11:06:13 +08:00
Kubernetes Prow Robot
f88b11897d
Merge pull request #110978 from chendave/dry_run_interactive
...
kubeadm: Don't ask for input if it's dry run mode
2022-07-06 18:39:33 -07:00
Dave Chen
988b96fcbb
kubeadm: Don't ask for input if it's dry run mode
...
Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-07-06 18:18:53 +08:00
runzhliu
37f66cb9d8
improve the comments
2022-07-05 01:59:11 +00:00
Kubernetes Prow Robot
fa16bf8e12
Merge pull request #110791 from SataQiu/fix-kubeadm-20220626
...
kubeadm: fix the bug that configurable KubernetesVersion not respected during kubeadm join
2022-06-30 21:53:34 -07:00
Kubernetes Prow Robot
8b0221708c
Merge pull request #110744 from neolit123/1.25-update-etcd-startup-probe
...
kubeadm: use non-serializable startup probe for etcd pods
2022-06-30 21:53:22 -07:00
Kubernetes Prow Robot
3eb7b7a48f
Merge pull request #110874 from chendave/fix_debug
...
kubeadm: Force to disable debug mode for `crictl`
2022-06-30 10:42:20 -07:00
Lubomir I. Ivanov
2829fc03e3
kubeadm: use non-serializable startup probe for etcd pods
...
As per the etcd maintainers' recommendation - startup probes
shouldn't be serialized, while the liveness probes should be.
2022-06-30 20:26:32 +03:00
SataQiu
2fb1941ae3
kubeadm: improve the error message of getClusterNodeMask func
2022-06-30 20:28:45 +08:00
Dave Chen
c5b22b535b
kubeadm: Force to disable debug mode for crictl
...
Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-06-30 15:08:45 +08:00
SataQiu
5b2d6ca5df
kubeadm: fix the bug that configurable KubernetesVersion not respected during kubeadm join
2022-06-30 14:47:33 +08:00
Kubernetes Prow Robot
dafa55be10
Merge pull request #110837 from SataQiu/fix-kubeadm-20220628
...
kubeadm: support retry mechanism for removing container in reset phase
2022-06-29 05:12:05 -07:00
SataQiu
3889a6cac8
kubeadm: support retry mechanism for removing container in reset phase
2022-06-29 17:54:56 +08:00
Kubernetes Prow Robot
4cd7394252
Merge pull request #110819 from pacoxu/kubeadm-join-doc
...
kubeadm: update join --discovery-file docs
2022-06-28 19:58:03 -07:00
Paco Xu
0b44750ab9
kubeadm: update join --discovery-file docs(support tokenfile authProvider and exec)
2022-06-28 12:12:29 +08:00
Kubernetes Prow Robot
34b4125351
Merge pull request #110656 from pacoxu/kubeadm-dup-unix
...
kubeadm: handle dup unix:// prefix in node annotation
2022-06-24 00:21:21 -07:00
Paco Xu
8555f401a0
kubeadm: handle dup unix:// prefix in node annotaiton
2022-06-24 11:16:34 +08:00
Kubernetes Prow Robot
07dfdf0859
Merge pull request #110709 from chendave/fix_renew
...
kubeadm: Honor `cert-dir` for cert operations
2022-06-23 19:51:19 -07:00
Kubernetes Prow Robot
035f22d781
Merge pull request #110712 from chendave/ignore_args
...
kubeadm: certs renew doesn't support positional args
2022-06-23 09:09:43 -07:00
Dave Chen
e8e804deaa
kubeadm: certs renew doesn't support positional args
...
Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-06-23 19:52:22 +08:00
Kubernetes Prow Robot
df0af6f7b8
Merge pull request #110736 from Octopusjust/k8s-pr3
...
Incomplete coverage of test scenarios
2022-06-23 04:33:44 -07:00
Dave Chen
57646c941f
kubeadm: Honor cert-dir
for cert operations
...
- `cert-dir` could be specified to a value other than the default value
- we have tests that should be executed successfully on the working cluster
Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-06-23 19:32:20 +08:00
ZhangYu
9f4562c7b6
Incomplete coverage of test scenarios
2022-06-23 11:41:23 +08:00
Kubernetes Prow Robot
e9702cfc1b
Merge pull request #110593 from SataQiu/kubeadm-coredns-20220615
...
kubeadm: add the preferred pod anti-affinity for CoreDNS Deployment
2022-06-22 09:29:56 -07:00
chymy
c8aa25e472
fix several typo
...
Signed-off-by: chymy <chang.min1@zte.com.cn>
2022-06-21 09:11:41 +00:00
Kubernetes Prow Robot
609db7ed0b
Merge pull request #110635 from chendave/kubeadm_fix
...
kubeadm: fail faster when the version is not provided
2022-06-19 10:06:03 -07:00
Dave Chen
aa5dfd8b28
kubeadm: fail faster when the version is not provided
...
Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-06-17 16:42:56 +08:00
Lubomir I. Ivanov
81b3540206
kubeadm: ensure kubelet patch results are in YAML
...
Once we patch a kubelet configuration file, the patched output
is in JSON. Make sure it's converted back to YAML, given
the kubelet config in the cluster and on disk is always in YAML.
Add unit test for the new function applyKubeletConfigPatches()
2022-06-15 13:38:04 +03:00
SataQiu
299e745127
kubeadm: add the preferred pod anti-affinity for CoreDNS Deployment
2022-06-15 14:38:12 +08:00
tallaxes
4a542609aa
Support more auth strategies in kubeadm join
with discovery file ( #110553 )
...
* Add support for client-go credential plugins
* Add support for authprovider authentication
* Add support for TokenFile authentication
2022-06-14 08:03:45 -07:00
Kubernetes Prow Robot
4407a02aef
Merge pull request #110560 from lunhuijie/fixTestpki
...
Incomplete coverage of test scenarios and optimize bad code
2022-06-14 04:53:32 -07:00
10284789刁浩
696d537239
Incomplete coverage of test scenarios and bad code
2022-06-14 07:48:43 +00:00
Paco Xu
178dc11b75
kubeadm: upgrade coredns to v1.9.3
2022-06-09 18:45:26 +08:00
Paco Xu
31922c7794
kubeadm: use staticpod known tags for upgrade/init phases
2022-06-09 14:21:48 +08:00
Kubernetes Prow Robot
0985c476e3
Merge pull request #109995 from wangyysde/fix_issue_2681
...
add print-manifest flag to print addon manifests to STDOUT
2022-06-08 09:00:22 -07:00
Paco Xu
29aca9692c
overwrite known targets in patch manager cache in case it changes
2022-06-08 16:10:41 +08:00
wangyysde
e863ebb6b5
add print-manifest flag to print addon manifests to STDOUT
...
Signed-off-by: wangyysde <net_use@bzhy.com>
2022-06-08 13:45:37 +08:00
Kubernetes Prow Robot
cd4b8ed070
Merge pull request #110405 from neolit123/1.25-kubelet-config-patches
...
kubeadm: add support for patching a "kubeletconfiguration" target
2022-06-07 07:05:07 -07:00
Kubernetes Prow Robot
9fad5c981a
Merge pull request #110327 from neolit123/1.25-ga-unversioned-kubelet-config
...
kubeadm: graduate the UnversionedKubeletConfigMap FG to GA
2022-06-07 07:04:56 -07:00
Lubomir I. Ivanov
2134026e3b
kubeadm: allow passing the --patches flag to init/join/node phases
...
Allow passing the --patches flag to init/join/node phases
relevant to the kubelet writing the config file on disk.
2022-06-06 20:37:27 +03:00
Lubomir I. Ivanov
428c3fe954
kubeadm: document "kubeletconfiguration" as a patch target
...
Document the "kubeletconfiguration" as a patch target in the
v1beta3 API Init/JoinConfiguration.Patches struct
and also for the --patches flag.
2022-06-06 20:37:26 +03:00
Lubomir I. Ivanov
c3c9fb8608
kubeadm: add unit tests for patching a "kubeletconfiguration" target
2022-06-06 20:37:26 +03:00