Kubernetes Prow Robot
4f874a224a
Merge pull request #119562 from my-git9/proxyut
...
kubeadm: increase ut for cmd/kubeadm/app/phases/addons/proxy
2023-08-16 19:44:21 -07:00
git-jxj
a5b3a4b738
cleanup: Update deprecated FromInt to FromInt32 ( #119858 )
...
* redo commit
* apply suggestions from liggitt
* update Parse function based on suggestions
2023-08-16 09:33:01 -07:00
Lubomir I. Ivanov
7a6e056bbd
kubeadm: add TODO for NewMapStringString() and CLI extra-args
2023-08-16 13:27:05 +03:00
Lubomir I. Ivanov
f3da0d4ed3
kubeadm: update the rest of the code base for structured ExtraArgs
...
In all places map[string]string compounds were used directly
for extra args. Modify said locations to use []Arg
and the new utilities Get/SetArgValue(), ArgumentsTo/FromCommand().
2023-08-16 13:27:05 +03:00
Lubomir I. Ivanov
a505c7160e
kubeadm: adapt the validation and utils for structured ExtraArgs
...
Use []kubeadm.Arg instead of map[string]string when
validating ExtraArgs in the API.
Add new GetArgValue() and SetArgValue() utilities
and tests in apis/kubeadm.
Add new utils for constucting commands from and to
a []kubeadm.Arg slice.
2023-08-16 13:27:05 +03:00
Lubomir I. Ivanov
bc6fcb72a8
kubeadm: add structured ExtraArgs in v1beta4
...
Add a new type Arg that holds a dedicated Name and Value.
Instead of using map[string]string for ExtraArgs in the
API use []Arg.
Adapt v1beta3 conversion to convert to/from the
legacy map[string]string.
2023-08-16 13:27:05 +03:00
Kubernetes Prow Robot
b51ad13bf7
Merge pull request #119938 from my-git9/certlist-ut
...
kubeadm: increase ut for certs/certlist
2023-08-16 01:22:37 -07:00
Kubernetes Prow Robot
85e018634c
Merge pull request #119859 from SataQiu/fix-healthcheck-client-cert-20230809
...
kubeadm: remove 'system:masters' organization from etcd/healthcheck-client certificate
2023-08-16 01:22:26 -07:00
Kubernetes Prow Robot
0491866c64
Merge pull request #119753 from pacoxu/kubeadm-reset-nil
...
kubeadm: fix nil pointer when etcd member is already removed
2023-08-15 23:12:26 -07:00
Kubernetes Prow Robot
b406e49123
Merge pull request #119515 from haojue/dev/postupgradecomment
...
adjust order and fix typo for kube upgrade
2023-08-15 19:42:50 -07:00
xin.li
4950521ad8
kubeadm: increase ut for certs/certlist
...
Signed-off-by: xin.li <xin.li@daocloud.io >
2023-08-16 10:04:03 +08:00
Kubernetes Prow Robot
5054f2954d
Merge pull request #119279 from chendave/dryrun_init
...
kubeadm: Make dry-run is configurable in initConfiguration and joinConfiguration
2023-08-15 15:18:03 -07:00
SataQiu
5fb543a411
kubeadm: remove 'system:masters' organization from etcd/healthcheck-client certificate
2023-08-09 19:23:06 +08:00
Paco Xu
3a2c4d6f09
kubeadm: fix nil pointer when etcd member is already removed
2023-08-04 11:37:00 +08:00
xin.li
1b8fb69d9e
kubeadm: increase ut for cmd/kubeadm/app/phases/addons/proxy
...
Signed-off-by: xin.li <xin.li@daocloud.io >
2023-07-26 16:28:07 +08:00
haojue
6d244728b9
adjust order and fix typo for kube upgrade
2023-07-22 00:03:41 -04:00
Dave Chen
2ce07981af
kubeadm: Make dry-run is configurable in joinConfiguration
...
Signed-off-by: Dave Chen <dave.chen@arm.com >
2023-07-17 17:37:50 +08:00
Dave Chen
f5a6797e56
kubeadm: Make dry-run is configurable in initConfiguration
...
The `dry-run` flag was able to use with the config file, since it was not
configurable in the config file.
Make it configurable in v1beta4, so that eventually, kubeadm could deprecate
the flag and suggest to use the config file instead.
Signed-off-by: Dave Chen <dave.chen@arm.com >
2023-07-17 17:37:45 +08:00
Kubernetes Prow Robot
16534deedf
Merge pull request #119351 from SataQiu/fix-kubeadm-20230716
...
kubeadm: remove the limitation that the 'ignorePreflightErrors' field can not be set to 'all' in kubeadm config file
2023-07-16 22:07:07 -07:00
SataQiu
bd9b78d686
kubeadm: remove the limitation that the 'ignorePreflightErrors' field can not be set to 'all' in kubeadm config file, and keep CLI / config consistent
2023-07-16 12:37:12 +08:00
Dave Chen
b883f30501
kubeadm: Support kubeadm config validate for ResetConfiguration
...
Signed-off-by: Dave Chen <dave.chen@arm.com >
2023-07-15 19:29:18 +08:00
Kubernetes Prow Robot
871e6b5b8d
Merge pull request #119313 from chendave/migrate_config
...
kubeadm: Support `kubeadm config migrate` for ResetConfiguration
2023-07-15 00:31:22 -07:00
Dave Chen
8f9e2cb8a8
kubeadm: Support kubeadm config migrate for ResetConfiguration
...
Signed-off-by: Dave Chen <dave.chen@arm.com >
2023-07-15 13:18:47 +08:00
SataQiu
22f0f2e210
kubeadm: add 'kubeadm config print reset-defaults' command for ResetConfiguration
2023-07-15 11:14:28 +08:00
Kubernetes Prow Robot
95c8d61918
Merge pull request #113583 from chendave/POC_resetCfg
...
kubeadm: implementation of `ResetConfiguration` API types
2023-07-14 04:05:48 -07:00
Dave Chen
2a907e6004
kubeadm: fix fuzzing for ResetConfiguration
...
Signed-off-by: Dave Chen <dave.chen@arm.com >
2023-07-14 17:03:37 +08:00
Dave Chen
2e6715bc77
kubeadm: implementation of ResetConfiguration API types
...
Signed-off-by: Dave Chen <dave.chen@arm.com >
2023-07-14 17:03:31 +08:00
Kubernetes Prow Robot
20e60a03df
Merge pull request #110863 from claudiubelu/path-filepath-update-2
...
Replaces path.Operation with filepath.Operation (part 2)
2023-07-13 09:56:37 -07:00
Kubernetes Prow Robot
4c18d40af1
Merge pull request #119075 from chendave/test_gv
...
kubeadm: check the GV after the config migration
2023-07-04 22:00:54 -07:00
Kubernetes Prow Robot
76227fdb3d
Merge pull request #118874 from my-git9/dns-ut
...
kubeadm: increase ut coverage kubeadm/app/phases/dns
2023-07-04 19:30:54 -07:00
Dave Chen
31943cc3f4
kubeadm: check the GV after the config migration
...
Signed-off-by: Dave Chen <dave.chen@arm.com >
2023-07-05 10:04:12 +08:00
xin.li
c26e1ba10c
[UT] increase coverage kubeadm/app/phases/dns
...
Signed-off-by: xin.li <xin.li@daocloud.io >
2023-07-04 22:11:32 +08:00
Kubernetes Prow Robot
3149875175
Merge pull request #119059 from pacoxu/migrate-experimental-v1beta4
...
kubeadm: fix "migrate config --allow-experimental-api" to print v1beta4 kubeadm configurations instead of v1beta3
2023-07-04 06:28:53 -07:00
Paco Xu
01b1174c11
kubeadm: fix "migrate config --allow-experimental-api" to print v1beta4 kubeadm configurations instead of v1beta3
2023-07-04 15:20:43 +08:00
Kubernetes Prow Robot
746b88c6ff
Merge pull request #118867 from chendave/env_custom
...
kubeadm: Support custom env in control plane component
2023-07-03 22:02:52 -07:00
Dave Chen
c68a6b0745
kubeadm: fix fuzzing for ExtraEnvs defined in the control plane component
...
Signed-off-by: Dave Chen <dave.chen@arm.com >
2023-07-04 10:01:26 +08:00
Dave Chen
80b035a116
kubeadm: Support custom env in control plane component
...
Signed-off-by: Dave Chen <dave.chen@arm.com >
2023-07-04 09:57:07 +08:00
Kubernetes Prow Robot
14b08b82e4
Merge pull request #118941 from neolit123/1.28-restore-test-function-for-config-migrate
...
kubeadm: restore and generalize the TestMigrateOldConfig test
2023-07-01 03:18:48 -07:00
Lubomir I. Ivanov
0537c1da56
kubeadm: move migrate / validate tests out of config_tests.go
...
Place the tests in common_tests.go on the backend side in
common_tests.go. A test for migrate TestMigrateOldConfig
was already present there. Apply slightly better coverage to it
and rename desc -> name.
Fix typo in argument oldConfig -> config in ValidateConfig().
2023-06-30 18:14:10 +03:00
Kubernetes Prow Robot
7bac0cee89
Merge pull request #118946 from SataQiu/clean-kubeadm-20230629
...
kubeadm: remove unused Kind and Resource functions from output API
2023-06-29 02:51:47 -07:00
Kubernetes Prow Robot
4036b6fb41
Merge pull request #118922 from champtar/kubeadm-backdate-ca
...
kubeadm: backdate generated CAs
2023-06-28 12:28:56 -07:00
SataQiu
24f4785e3e
kubeadm: remove unused Kind and Resource functions from output API
2023-06-29 00:16:38 +08:00
SataQiu
90f82d05ce
kubeadm: remove unused Kind and Resource functions from kubeadm internal API
2023-06-28 23:36:53 +08:00
Lubomir I. Ivanov
fd15c6791a
kubeadm: restore and generalize the TestMigrateOldConfig test
...
The test required two APIs to be available to test for migration.
Keep it simple and use a variable "gv" on top of the function body
to easily swap the version to be tested once an old API is deleted.
e.g. currently v1beta3 is the "old" API, v1beta4 is the "new" one.
Ultimately, this test only makes sure that the expected kinds are
available post migration.
2023-06-28 18:21:57 +03:00
Etienne Champetier
812556365b
kubeadm: backdate generated CAs by 5 minutes
...
This allow for a small time jump backward after
certificates generation.
Signed-off-by: Etienne Champetier <e.champetier@ateme.com >
2023-06-28 00:12:29 -04:00
Kubernetes Prow Robot
1c32c3bd9f
Merge pull request #118866 from neolit123/1.28-add-v1beta4-to-scheme
...
kubeadm: add v1beta4 to scheme; add --allow-experimental-api flag
2023-06-27 08:56:44 -07:00
SataQiu
4298953c26
kubeadm: remove unused Kind and Resource functions from v1beta4 API
2023-06-26 22:11:52 +08:00
Lubomir I. Ivanov
f04484fe77
kubeadm: add the --allow-experimental-api flag to "config" commands
...
Add the flag --allow-experimental-api to the "config migrate" and
"config validate" commands. The flag allows validating / migrating-to
a unreleased / experimental API version.
Add a new experimentalAPIVersions map in validateSupportedVersion()
that contains v1beta4.
2023-06-26 13:50:47 +03:00
Lubomir I. Ivanov
0774f779d5
kubeadm: add v1beta4 to the kubeadm API scheme
...
The highest priority is still v1beta3.
2023-06-26 13:43:47 +03:00
Kubernetes Prow Robot
027ac5a426
Merge pull request #118762 from neolit123/1.28-kubeadm-add-v1beta4-boilerplate
...
kubeadm: add v1beta4 API boilerplate
2023-06-25 22:05:08 -07:00