Commit Graph

9 Commits

Author SHA1 Message Date
Lubomir I. Ivanov
2fba7c8ade test/e2e_kubeadm: fix matching UnversionedKubeletConfigMap defaults
The kubeadm defaults in features.go differ between versions.
e2e_kubeadm tests cannot import the kubeadm features.go,
or easily detect the versioned of the kubeadm binary used
to create the cluster.

Check for the existence of both versioned and unversioned
objects independent of the value of the FG. Once the FG
goes GA only the unversioned objects should be checked.

Without this change kubeadm e2e skew tests will fail where kubeadm
is at 1.24 (has the FG defaulted to true), the FG is not
explicitly set by the user and the k8s version is at 1.23.
2022-02-15 18:38:44 +02:00
Lubomir I. Ivanov
66a18df14c kubeadm: switch UnversionedKubeletConfigMap to true
- Graduate the feature gate to Beta and enable it by default.
- Pre-set the default value for UnversionedKubeletConfigMap
to "true" in test/e2e_kubeadm.
- Fix a couple of typos in "tolerate" introduced in the PR that
added the FG in 1.23.
2022-02-09 18:33:27 +02:00
Lubomir I. Ivanov
7fa7f6d400 kubeadm: fix failure in e2e_kubeadm related to kubelet-config
The featureGates field in ClusterConfiguration ends up
as a map[interface{}]interface{} in the test suite
and cannot be casted to map[string]bool directly.
Adapt the test to use map[interface{}]interface{}.
2021-11-10 21:56:22 +02:00
Lubomir I. Ivanov
17cc064f7f kubeadm: update e2e tests for the kubelet-config
Add means to parse the value of UnversionedKubletConfigMap
feature gate if present and based on that decide what
configmap to look for.
2021-11-08 17:31:29 +02:00
Roy Hvaara
a9ed936792
Fix golint issues in test/e2e_kubeadm 2019-11-04 23:20:24 +01:00
SataQiu
d9bfff9976 e2e_kubeadm: use log functions of core framework 2019-08-26 13:56:14 +08:00
SataQiu
fc2d6aea48 e2e_kubeadm: clean up non-recommended import 2019-07-26 12:02:26 +08:00
SataQiu
332be4b1e3 refactor: replace framework.Failf with e2elog.Failf 2019-06-19 17:52:35 +08:00
fabriziopandini
5b675d6f00 e2e-kubeadm-new-test 2019-03-26 12:16:57 +01:00