From 6d6c6cfb0dcc4bb5db08c4baf29c368a57142cae Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Thu, 20 May 2021 01:15:05 +0300 Subject: [PATCH] kubeadm: remove e2e test for ClusterStatus Remove the e2e test for ClusterStatus in the kubeadm suite. The object was deprecated in a previous release and is no longer written by kubeadm v1.22 in the kubeadm-config config map. --- test/e2e_kubeadm/kubeadm_config_test.go | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/test/e2e_kubeadm/kubeadm_config_test.go b/test/e2e_kubeadm/kubeadm_config_test.go index 693e62b76c1..3e4b3677072 100644 --- a/test/e2e_kubeadm/kubeadm_config_test.go +++ b/test/e2e_kubeadm/kubeadm_config_test.go @@ -32,7 +32,6 @@ const ( kubeadmConfigRoleName = "kubeadm:nodes-kubeadm-config" kubeadmConfigRoleBindingName = kubeadmConfigRoleName kubeadmConfigClusterConfigurationConfigMapKey = "ClusterConfiguration" - kubeadmConfigClusterStatusConfigMapKey = "ClusterStatus" ) var ( @@ -60,23 +59,6 @@ var _ = Describe("kubeadm-config ConfigMap", func() { cm := GetConfigMap(f.ClientSet, kubeSystemNamespace, kubeadmConfigName) gomega.Expect(cm.Data).To(gomega.HaveKey(kubeadmConfigClusterConfigurationConfigMapKey)) - gomega.Expect(cm.Data).To(gomega.HaveKey(kubeadmConfigClusterStatusConfigMapKey)) - - m := unmarshalYaml(cm.Data[kubeadmConfigClusterStatusConfigMapKey]) - if _, ok := m["apiEndpoints"]; ok { - d := m["apiEndpoints"].(map[interface{}]interface{}) - // get all control-plane nodes - controlPlanes := getControlPlaneNodes(f.ClientSet) - - // checks that all the control-plane nodes are in the apiEndpoints list - for _, cp := range controlPlanes.Items { - if _, ok := d[cp.Name]; !ok { - framework.Failf("failed to get apiEndpoints for control-plane %s in %s", cp.Name, kubeadmConfigClusterStatusConfigMapKey) - } - } - } else { - framework.Failf("failed to get apiEndpoints from %s", kubeadmConfigClusterStatusConfigMapKey) - } }) ginkgo.It("should have related Role and RoleBinding", func() {