mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
Merge pull request #102157 from neolit123/1.22-remove-cluster-status-from-e2e
kubeadm: remove e2e test for ClusterStatus
This commit is contained in:
commit
44cffa1ef7
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user