-
Notifications
You must be signed in to change notification settings - Fork 353
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use ingress validator with dataclient
Signed-off-by: Mustafa Abdelrahman <[email protected]>
- Loading branch information
1 parent
f55a20a
commit 04347f1
Showing
4 changed files
with
82 additions
and
0 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
Empty file.
2 changes: 2 additions & 0 deletions
2
...clients/kubernetes/testdata/ingressV1/ingress-data/ing-with-invalid-routes-annotation.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,2 @@ | ||
Ingress validation failed: invalid \\\"zalando\.org\/skipper-routes\\\" annotation: invalid predicate count arg | ||
kind=Ingress name=qux ns=foo |
74 changes: 74 additions & 0 deletions
74
...lients/kubernetes/testdata/ingressV1/ingress-data/ing-with-invalid-routes-annotation.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,74 @@ | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
namespace: foo | ||
name: qux | ||
annotations: | ||
zalando.org/skipper-routes: | | ||
r1: Header("test") && Path("/login") -> 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 | ||
- 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 |