chore: change Route crd structure

This commit is contained in:
Jonas Kaninda
2024-11-29 08:04:30 +01:00
parent 614c05b283
commit 3bd4b68925
11 changed files with 195 additions and 237 deletions

View File

@@ -77,15 +77,11 @@ var _ = Describe("Route Controller", func() {
},
Spec: gomaprojv1beta1.RouteSpec{
Gateway: resourceName,
Routes: []gomaprojv1beta1.RouteConfig{
{
Path: "/",
Name: resourceName,
Rewrite: "/",
Destination: "https://example.com",
Methods: []string{"GET", "POST"},
},
},
Path: "/",
Rewrite: "/",
Destination: "https://example.com",
Methods: []string{"GET", "POST"},
},
}
Expect(k8sClient.Create(ctx, resource)).To(Succeed())