Kubernetes Prow Robot
bb06804e52
Merge pull request #120828 from SataQiu/fix-kubeadm-cri-20230922
...
kubeadm: fix the bug that kubeadm always do CRI detection when --config is passed even if it is not required by the subcommand
2023-10-07 11:58:22 +02:00
Kubernetes Prow Robot
854d0e7fc8
Merge pull request #120956 from my-git9/clusterinfout
...
kubeadm: increase ut converage for bootstraptoken/clusterinfo
2023-10-06 13:43:22 +02:00
Dave Chen
e8e22f645d
kubeadm: Optimize the logic to override the arguments
...
Signed-off-by: Dave Chen <dave.chen@arm.com >
2023-10-06 19:01:00 +08:00
xin.li
8510057e2d
kubeadm: increase ut converage for bootstraptoken/clusterinfo
...
Signed-off-by: xin.li <xin.li@daocloud.io >
2023-10-06 18:36:02 +08:00
Kubernetes Prow Robot
c54c6b2383
Merge pull request #120938 from ptsgr/fix-linter
...
Refactoring variable declaration and value setting
2023-09-29 10:56:43 -07:00
Kubernetes Prow Robot
afe4c041f3
Merge pull request #120530 from my-git9/node-ut
...
kubeadm: add unit test for phases/bootstraptoken/node/token.go
2023-09-29 07:08:43 -07:00
Egor Pats
5ebde41efb
Refactoring variable declaration and value setting
2023-09-29 16:17:28 +03:00
Kubernetes Prow Robot
29ff98ff37
Merge pull request #120417 from neolit123/1.29-v1beta4-ecdsa
...
kubeadm: add v1beta4.ClusterConfiguration.EncryptionAlgorithm
2023-09-28 02:38:33 -07:00
xin.li
e320fadebe
kubeadm: add unit test for phases/bootstraptoken/node/token.go
...
Signed-off-by: xin.li <xin.li@daocloud.io >
2023-09-28 16:42:29 +08:00
caoyingjunz
2172ea6083
Fix typos: update Enpoint to Endpoint
2023-09-26 21:23:44 +08:00
SataQiu
1a68195626
kubeadm: fix the bug that kubeadm always do CRI detection when --config is passed even if it is not required by subcommand
2023-09-25 16:35:47 +08:00
Paco Xu
534a0941e8
kubeadm: change kubelet skew to apiserver to n-3
2023-09-22 20:46:29 +08:00
Lubomir I. Ivanov
b5bffb6d97
kubeadm: add v1beta4.ClusterConfiguration.EncryptionAlgorithm
...
Add v1beta4.ClusterConfiguration.EncryptionAlgorithm field (string)
and allow the user to configure the cluster asymetric encryption
algorithm to be either "RSA" (default, 2048 pkey size) or "ECDSA" (P-256).
Add validation and fuzzing. Conversion from v1beta3 is not required
because an empty field value is accepted and defaulted to RSA if needed.
Leverage the existing configuration option (feature gate) PublicKeysECDSA
but rename the backend fields, arguments, function names to be more
generic - EncryptionAlgorithm instead of PublicKeyAlgorithm.
That is because once the feature gate is enabled the algorithm
configuration also applies to private keys. It also uses the kubeadm API
type (string) instead of the x509.PublicKeyAlgorithm enum (int).
Deprecate the PublicKeysECDSA feature gate with a message.
It should be removed with the release of v1beta4 or maximum one release
later (it is an alpha FG).
2023-09-21 11:48:48 +03:00
Dave Chen
d8cf68e75f
kubeadm: Nominate myself (chendave) as kubeadm approver
...
Signed-off-by: Dave Chen <dave.chen@arm.com >
2023-09-21 15:00:53 +08:00
Dave Chen
0786fcc941
kubeadm: Remove the support of configurable component configs
...
`kubeadm upgrade plan` uses to support the configure of component
configs(kubeproxy and kubelet) in a config file and then check if
the version is supported or not, if it's not supported it will be
marked as a unsupported version and require to manually upgrade
the component.
This feature will make the upgrade config API much harder as this
violates the no-mutation principle for upgrade, and we have seen it's
quite problematic to do like this.
This change removes the support of configurable component configs for
`kubeadm upgrade plan`, along with the removal, the logic to parse
the config file to decide whether a manual upgrade for the component
configs is needed is removed as well.
NOTE that API is not changed, i.e. `ManualUpgradeRequired` is not removed
from `ComponentConfigVersionState` but it's no-op now.
Signed-off-by: Dave Chen <dave.chen@arm.com >
2023-09-21 13:26:13 +08:00
Kubernetes Prow Robot
144baff189
Merge pull request #120598 from neolit123/1.29-kubeadm-ownders-cleanup
...
/cmd/kubeadm,/test/e2e*: update OWNERS for fabriziopandini & RA489
2023-09-19 21:39:59 -07:00
Kubernetes Prow Robot
0241da314e
Merge pull request #120514 from fengxsong/patch-1
...
fix: check if initsystem service exists
2023-09-15 14:08:23 -07:00
SataQiu
15ce5dd990
kubeadm: fix flaky-test TestManifestFilesAreEqual
2023-09-12 23:44:44 +08:00
Kubernetes Prow Robot
e2b03d41c5
Merge pull request #120561 from chendave/dependency
...
kubeadm: remove reference of k8s.io/kubernetes/pkg/apis/core/v1
2023-09-12 03:44:12 -07:00
Lubomir I. Ivanov
3d91ffc6f9
/cmd/kubeadm,/test/e2e*: update OWNERS for fabriziopandini & RA489
...
- move fabriziopandini to emeritus_approvers for /test/e2e*
and /cmd/kubeadm. fabriziopandini remains in /OWNERS_ALIASES
under sig-cluster-lifecycle-leads.
- remove RA489 as reviewer for /test/e2e* and /cmd/kubeadm
2023-09-12 12:35:40 +03:00
SataQiu
4e0c8a9752
kubeadm: remove reference of k8s.io/kubernetes/pkg/apis/core/v1
...
Co-authored-by: Dave Chen <dave.chen@arm.com >
2023-09-12 17:09:19 +08:00
Kubernetes Prow Robot
35199e42a4
Merge pull request #120549 from pacoxu/kubeadm-etcd-manifests
...
kubeadm: fix diff order and add tests for new default value manifest
2023-09-12 00:44:13 -07:00
Paco Xu
4d105eb1ce
add TestUnmarshalJson for UniversalUnmarshal
2023-09-12 14:41:07 +08:00
Stephen Kitt
e2c1c0d34a
kubeadm: drop deprecated pointer package
...
This replaces deprecated k8s.io/utils/pointer functions with their ptr
equivalent.
Signed-off-by: Stephen Kitt <skitt@redhat.com >
2023-09-11 16:41:12 +02:00
Paco Xu
678b958567
use universal decoder and add a check on default dns Policy of static pod for test
2023-09-11 22:31:35 +08:00
Paco Xu
2d86c333f5
add test case for generating etcd manifests
2023-09-11 10:35:50 +08:00
Paco Xu
912041ce41
kubeadm: fix diff order and add test for new default value manifest
2023-09-11 10:35:50 +08:00
SaumyaBhushan
df5c1bb1ea
added documentation about the format of certificateKey
...
Signed-off-by: SaumyaBhushan <saumya.bhushan666@gmail.com >
2023-09-10 19:50:42 +05:30
Kubernetes Prow Robot
fd8f2c7fc6
Merge pull request #120541 from pacoxu/kubeadm-fix-hash
...
kubeadm: add log for static pod manifest diff
2023-09-09 06:08:08 -07:00
Paco Xu
b443a841e3
kubeadm: add log for static pod manifest diff
2023-09-09 20:00:31 +08:00
Kubernetes Prow Robot
4c0d37e767
Merge pull request #120521 from SataQiu/clean-kubeadm-20230908
...
kubeadm: remove 'system:masters' organization from apiserver-etcd-client certificate
2023-09-08 05:26:25 -07:00
Kubernetes Prow Robot
4c43a25e6a
Merge pull request #119274 from tukwila/test_addons
...
kubeadm: add tests in ./cmd/phases/init/addons_test.go
2023-09-08 05:26:13 -07:00
guangli.bao
9feaefb5cb
Increase ut for kubeadm phases init addon
...
rename field casename to name
do go lint check
Update addons_test.go to remove whitespace
Signed-off-by: guangli.bao <guangli.bao@daocloud.io >
2023-09-08 15:35:17 +08:00
SataQiu
3e2bad02dc
kubeadm: remove 'system:masters' organization from apiserver-etcd-client certificate
2023-09-08 15:01:00 +08:00
fengxsong
a69f56e137
fix: check if initsystem service exists
...
when detecting whether a service exists, if it does not, the output result will be like "Unit noneexists.service could not be found." on ubuntu:20.04
2023-09-08 11:15:07 +08:00
Kubernetes Prow Robot
cd04f47e8b
Merge pull request #120381 from my-git9/dnsut1
...
kubeadm: increase ut coverage for addons/dns/dns.go
2023-09-03 20:21:47 -07:00
Kubernetes Prow Robot
03762cbcb5
Merge pull request #120316 from dims/move-to-new-repo-for-reference
...
New repo who dis? distribution/reference
2023-09-02 21:05:11 -07:00
xin.li
6f55437472
kubeadm: increase ut coverage for addons/dns/dns.go
...
Signed-off-by: xin.li <xin.li@daocloud.io >
2023-09-03 11:07:59 +08:00
Davanum Srinivas
889c8e919b
New repo who dis? distribution/reference
...
github.com/docker/distribution/reference has a new home github.com/distribution/reference
and a new tag v0.5.0. Let's switch to that.
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
2023-08-31 21:53:40 -04:00
dairlair
3c5a58c5f8
Refactor checkErr func
...
I moved a simpler condition to the beginning of the function (when the error == nil). This has substantially streamlined the function for readability and comprehension of its logic flow.
2023-08-31 17:29:08 +03:00
Kubernetes Prow Robot
3cf3702d1e
Merge pull request #119346 from chendave/clean_testcases
...
kubeadm: Remove the usage to print the default component configs for `reset` and `join`
2023-08-30 04:38:48 -07:00
Dave Chen
879dad9c2f
kubeadm: Remove the usage to print the default component configs for reset and join
...
component configs is only needed for `kubeadm init`, the `join` and `reset` doesn't
need to provid the config with component configs.
Signed-off-by: Dave Chen <dave.chen@arm.com >
2023-08-30 15:38:21 +08:00
Kubernetes Prow Robot
973ea2d376
Merge pull request #120228 from pacoxu/kubeadm-learner-etcd-beta
...
kubeadm: promote EtcdLearnerMode to beta
2023-08-29 06:29:21 -07:00
Paco Xu
618e40c61b
kubeadm: promote EtcdLearnerMode to beta
2023-08-29 16:11:05 +08:00
Paco Xu
eb0afbc7d0
kubeadm: update swap warning for v1.28 change
2023-08-28 15:46:23 +08:00
Kubernetes Prow Robot
d4572d58db
Merge pull request #120186 from chendave/testcase_exported
...
kubeadm: Add testcases for exported method `ValueFromFlagsOrConfig`
2023-08-27 00:47:22 -07:00
Kubernetes Prow Robot
4cb47f2ba1
Merge pull request #120116 from tukwila/update-coredns-v1.11.0
...
update coredns to v1.11.1
2023-08-26 10:17:21 -07:00
SataQiu
628bbb9ef8
kubeadm: add supported etcd version for v1.29
2023-08-26 20:43:04 +08:00
Dave Chen
dcbe7755bf
kubeadm: Add testcases for exported method ValueFromFlagsOrConfig
...
Signed-off-by: Dave Chen <dave.chen@arm.com >
2023-08-26 18:41:43 +08:00
guangli.bao
78538bd303
update coredns to v1.11.0
...
update coredns to v1.11.1
update coredns-kubeadm to 1.11.1
bump up corefile-migration to v1.0.21 based on https://github.com/coredns/corefile-migration/releases/tag/v1.0.21
fix dns_test ut failure
Signed-off-by: guangli.bao <guangli.bao@daocloud.io >
2023-08-26 17:15:46 +08:00