-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor old code to get rid of unused common yamls
- Loading branch information
Showing
19 changed files
with
779 additions
and
91 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
18 changes: 18 additions & 0 deletions
18
tests/data/virtual-server-route/route-multiple-updated.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
apiVersion: k8s.nginx.org/v1alpha1 | ||
kind: VirtualServerRoute | ||
metadata: | ||
name: backends | ||
spec: | ||
host: virtual-server-route.example.com | ||
upstreams: | ||
- name: backend1 | ||
service: backend1-svc | ||
port: 80 | ||
- name: backend3 | ||
service: backend3-svc | ||
port: 80 | ||
subroutes: | ||
- path: "/backends/updated-backend1" | ||
upstream: backend1 | ||
- path: "/backends/updated-backend3" | ||
upstream: backend3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
apiVersion: k8s.nginx.org/v1alpha1 | ||
kind: VirtualServerRoute | ||
metadata: | ||
name: backends | ||
spec: | ||
host: virtual-server-route.example.com | ||
upstreams: | ||
- name: backend1 | ||
service: backend1-svc | ||
port: 80 | ||
- name: backend3 | ||
service: backend3-svc | ||
port: 80 | ||
subroutes: | ||
- path: "/backends/backend1" | ||
upstream: backend1 | ||
- path: "/backends/backend3" | ||
upstream: backend3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
apiVersion: k8s.nginx.org/v1alpha1 | ||
kind: VirtualServerRoute | ||
metadata: | ||
name: backend-orphan | ||
spec: | ||
host: virtual-server-route.example.com | ||
upstreams: | ||
- name: backend2 | ||
service: backend2-svc | ||
port: 80 | ||
subroutes: | ||
- path: "/alone-backend2" | ||
upstream: backend2 |
15 changes: 15 additions & 0 deletions
15
tests/data/virtual-server-route/route-single-duplicate-path.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
apiVersion: k8s.nginx.org/v1alpha1 | ||
kind: VirtualServerRoute | ||
metadata: | ||
name: backend2 | ||
spec: | ||
host: virtual-server-route.example.com | ||
upstreams: | ||
- name: backend2 | ||
service: backend2-svc | ||
port: 80 | ||
subroutes: | ||
- path: "/backend2" | ||
upstream: backend2 | ||
- path: "/backend2" | ||
upstream: backend2 |
13 changes: 13 additions & 0 deletions
13
tests/data/virtual-server-route/route-single-invalid-host.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
apiVersion: k8s.nginx.org/v1alpha1 | ||
kind: VirtualServerRoute | ||
metadata: | ||
name: backend2 | ||
spec: | ||
host: invalid-host.example.com | ||
upstreams: | ||
- name: backend2 | ||
service: backend2-svc | ||
port: 80 | ||
subroutes: | ||
- path: "/backend2" | ||
upstream: backend2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
apiVersion: k8s.nginx.org/v1alpha1 | ||
kind: VirtualServerRoute | ||
metadata: | ||
name: backend2 | ||
spec: | ||
host: virtual-server-route.example.com | ||
upstreams: | ||
- name: backend2 | ||
service: backend2-svc | ||
port: 80 | ||
subroutes: | ||
- path: "/backend2" | ||
upstream: backend2 |
11 changes: 11 additions & 0 deletions
11
tests/data/virtual-server-route/standard/virtual-server.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
apiVersion: k8s.nginx.org/v1alpha1 | ||
kind: VirtualServer | ||
metadata: | ||
name: virtual-server-route | ||
spec: | ||
host: virtual-server-route.example.com | ||
routes: | ||
- path: "/backends" | ||
route: backends-namespace/backends | ||
- path: "/backend2" | ||
route: backend2-namespace/backend2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.