// // Slow by design (10 min) var _ = framework.KubeDescribe("GCE L7 LoadBalancer Controller [Feature:Ingress]", func() { // These variables are initialized after framework's beforeEach. var ns string var addonDir string var client *client.Client var responseTimes, creationTimes []time.Duration var ingController *IngressController f := framework.Framework{BaseName: "glbc"} BeforeEach(func() { // This test requires a GCE/GKE only cluster-addon framework.SkipUnlessProviderIs("gce", "gke") f.BeforeEach() client = f.Client ns = f.Namespace.Name addonDir = filepath.Join( framework.TestContext.RepoRoot, "cluster", "addons", "cluster-loadbalancing", "glbc") ingController = &IngressController{ ns: ns, Project: framework.TestContext.CloudConfig.ProjectID, c: client, } ingController.init() // If we somehow get the same namespace uid as someone else in this // gce project, just back off. Expect(ingController.Cleanup(false)).NotTo(HaveOccurred()) responseTimes = []time.Duration{} creationTimes = []time.Duration{}