-
Notifications
You must be signed in to change notification settings - Fork 351
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
validator: use ingressValidator after loading all ingress (#2757)
Signed-off-by: Mustafa Abdelrahman <[email protected]>
- Loading branch information
1 parent
072f747
commit d3f0322
Showing
6 changed files
with
80 additions
and
8 deletions.
There are no files selected for viewing
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
Empty file.
1 change: 1 addition & 0 deletions
1
...ata/ingressV1/ingress-data/ing-with-invalid-routes-annotation-missing-header-argument.log
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 @@ | ||
\[ingress\] invalid \\\"zalando\.org\/skipper-routes\\\" annotation: invalid predicate count arg |
64 changes: 64 additions & 0 deletions
64
...ta/ingressV1/ingress-data/ing-with-invalid-routes-annotation-missing-header-argument.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,64 @@ | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
namespace: foo | ||
name: qux | ||
annotations: | ||
zalando.org/skipper-routes: | | ||
r1: Header("test") -> status(200) -> "http://foo.test" | ||
spec: | ||
defaultBackend: | ||
service: | ||
name: bar | ||
port: | ||
number: 1234 | ||
rules: | ||
- host: www.example.org | ||
http: | ||
paths: | ||
- path: "/" | ||
pathType: ImplementationSpecific | ||
backend: | ||
service: | ||
name: bar | ||
port: | ||
name: baz | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
namespace: foo | ||
name: bar | ||
spec: | ||
clusterIP: 10.3.190.97 | ||
ports: | ||
- name: baz | ||
port: 8181 | ||
protocol: TCP | ||
targetPort: 8080 | ||
- name: qux | ||
port: 1234 | ||
protocol: TCP | ||
targetPort: 2134 | ||
selector: | ||
application: myapp | ||
type: ClusterIP | ||
--- | ||
apiVersion: v1 | ||
kind: Endpoints | ||
metadata: | ||
labels: | ||
application: myapp | ||
namespace: foo | ||
name: bar | ||
subsets: | ||
- addresses: | ||
- ip: 10.2.9.103 | ||
- ip: 10.2.9.104 | ||
ports: | ||
- name: baz | ||
port: 8080 | ||
protocol: TCP | ||
- name: qux | ||
port: 2134 | ||
protocol: TCP |