package e2e import ( "fmt" . "github.com/onsi/ginkgo" federationapi "k8s.io/kubernetes/federation/apis/federation" "k8s.io/kubernetes/pkg/api" "k8s.io/kubernetes/test/e2e/framework" ) // Create/delete cluster api objects var _ = framework.KubeDescribe("Federation apiserver [Feature:Federation]", func() { f := framework.NewDefaultFederatedFramework("federated-cluster") It("should allow creation of cluster api objects", func() { framework.SkipUnlessFederated(f.Client) contexts := f.GetUnderlyingFederatedContexts() for _, context := range contexts { framework.Logf("Creating cluster object: %s (%s)", context.Name, context.Cluster.Cluster.Server) cluster := federationapi.Cluster{ ObjectMeta: api.ObjectMeta{ Name: context.Name, }, Spec: federationapi.ClusterSpec{ ServerAddressByClientCIDRs: []federationapi.ServerAddressByClientCIDR{ { ClientCIDR: "0.0.0.0/0", ServerAddress: context.Cluster.Cluster.Server, },
package e2e import ( "fmt" . "github.com/onsi/ginkgo" federationapi "k8s.io/kubernetes/federation/apis/federation" "k8s.io/kubernetes/pkg/api" "k8s.io/kubernetes/test/e2e/framework" ) // Create/delete cluster api objects var _ = framework.KubeDescribe("Federation apiserver [Feature:Federation]", func() { f := framework.NewDefaultFederatedFramework("federated-cluster") It("should allow creation of cluster api objects", func() { framework.SkipUnlessFederated() contexts := f.GetUnderlyingFederatedContexts() for _, context := range contexts { framework.Logf("Creating cluster object: %s (%s)", context.Name, context.Cluster.Cluster.Server) cluster := federationapi.Cluster{ ObjectMeta: api.ObjectMeta{ Name: context.Name, }, Spec: federationapi.ClusterSpec{ ServerAddressByClientCIDRs: []federationapi.ServerAddressByClientCIDR{ { ClientCIDR: "0.0.0.0/0", ServerAddress: context.Cluster.Cluster.Server, },