generated from meshery/meshery-istio
-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Patterns] Pattern components generated from latest Traefik manifests
Signed-off-by: l5io <ci@layer5.io>
- Loading branch information
1 parent
87af9f3
commit 6d13a10
Showing
10 changed files
with
323 additions
and
0 deletions.
There are no files selected for viewing
60 changes: 60 additions & 0 deletions
60
templates/oam/workloads/v1.4.8/httproutegroup.meshery.layer5.io.meshery.layer5io.schema.json
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,60 @@ | ||
{ | ||
"properties": { | ||
"matches": { | ||
"description": "Match conditions of this route group.", | ||
"items": { | ||
"properties": { | ||
"headers": { | ||
"description": "Header match conditions of this route.", | ||
"items": { | ||
"additionalProperties": { | ||
"type": "string" | ||
}, | ||
"description": "Header match condition of this route.", | ||
"type": "object" | ||
}, | ||
"type": "array" | ||
}, | ||
"methods": { | ||
"description": "The HTTP methods of this HTTP route.", | ||
"items": { | ||
"description": "The HTTP method of this HTTP route.", | ||
"enum": [ | ||
"*", | ||
"GET", | ||
"HEAD", | ||
"PUT", | ||
"POST", | ||
"DELETE", | ||
"CONNECT", | ||
"OPTIONS", | ||
"TRACE", | ||
"PATCH" | ||
], | ||
"type": "string" | ||
}, | ||
"type": "array" | ||
}, | ||
"name": { | ||
"description": "Name of the HTTP route.", | ||
"type": "string" | ||
}, | ||
"pathRegex": { | ||
"description": "URI path regex of the HTTP route.", | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"name" | ||
], | ||
"type": "object" | ||
}, | ||
"type": "array" | ||
} | ||
}, | ||
"required": [ | ||
"matches" | ||
], | ||
"title": "HTTP Route Group", | ||
"type": "object" | ||
} |
20 changes: 20 additions & 0 deletions
20
templates/oam/workloads/v1.4.8/httproutegroup.meshery.layer5.io_definition.json
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,20 @@ | ||
{ | ||
"kind": "WorkloadDefinition", | ||
"apiVersion": "core.oam.dev/v1alpha1", | ||
"metadata": { | ||
"name": "HTTPRouteGroup", | ||
"creationTimestamp": null | ||
}, | ||
"spec": { | ||
"definitionRef": { | ||
"name": "httproutegroup.meshery.layer5.io" | ||
}, | ||
"metadata": { | ||
"@type": "pattern.meshery.io/mesh/workload", | ||
"k8sAPIVersion": "specs.smi-spec.io/v1alpha4", | ||
"k8sKind": "HTTPRouteGroup", | ||
"meshName": "TRAEFIK_MESH", | ||
"meshVersion": "v1.4.8" | ||
} | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
templates/oam/workloads/v1.4.8/tcproute.meshery.layer5.io.meshery.layer5io.schema.json
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,25 @@ | ||
{ | ||
"properties": { | ||
"matches": { | ||
"description": "Match conditions of this route.", | ||
"properties": { | ||
"ports": { | ||
"description": "Port numbers to match TCP traffic.", | ||
"items": { | ||
"type": "integer" | ||
}, | ||
"type": "array" | ||
} | ||
}, | ||
"required": [ | ||
"ports" | ||
], | ||
"type": "object" | ||
} | ||
}, | ||
"required": [ | ||
"matches" | ||
], | ||
"title": "TCP Route", | ||
"type": "object" | ||
} |
20 changes: 20 additions & 0 deletions
20
templates/oam/workloads/v1.4.8/tcproute.meshery.layer5.io_definition.json
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,20 @@ | ||
{ | ||
"kind": "WorkloadDefinition", | ||
"apiVersion": "core.oam.dev/v1alpha1", | ||
"metadata": { | ||
"name": "TCPRoute", | ||
"creationTimestamp": null | ||
}, | ||
"spec": { | ||
"definitionRef": { | ||
"name": "tcproute.meshery.layer5.io" | ||
}, | ||
"metadata": { | ||
"@type": "pattern.meshery.io/mesh/workload", | ||
"k8sAPIVersion": "specs.smi-spec.io/v1alpha4", | ||
"k8sKind": "TCPRoute", | ||
"meshName": "TRAEFIK_MESH", | ||
"meshVersion": "v1.4.8" | ||
} | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
templates/oam/workloads/v1.4.8/traefikmesh.meshery.layer5io.schema.json
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,7 @@ | ||
{ | ||
"$id": "http://meshery.layer5.io/definition/Workload/TraefikMesh", | ||
"$schema": "http://json-schema.org/draft-07/schema", | ||
"title": "TraefikMesh", | ||
"type": "object", | ||
"properties": {} | ||
} |
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 @@ | ||
{"kind":"WorkloadDefinition","apiVersion":"core.oam.dev/v1alpha1","metadata":{"name":"TraefikMesh","creationTimestamp":null},"spec":{"definitionRef":{"name":"Traefikmesh.meshery.layer5.io"},"metadata":{"version":"v1.4.8"}}} |
59 changes: 59 additions & 0 deletions
59
templates/oam/workloads/v1.4.8/trafficsplit.meshery.layer5.io.meshery.layer5io.schema.json
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,59 @@ | ||
{ | ||
"properties": { | ||
"backends": { | ||
"description": "The backend services of this split.", | ||
"items": { | ||
"properties": { | ||
"service": { | ||
"description": "Name of the Kubernetes service.", | ||
"type": "string" | ||
}, | ||
"weight": { | ||
"description": "Traffic weight value of this backend.", | ||
"type": "number" | ||
} | ||
}, | ||
"required": [ | ||
"service", | ||
"weight" | ||
], | ||
"type": "object" | ||
}, | ||
"type": "array" | ||
}, | ||
"matches": { | ||
"description": "The HTTP route groups that this traffic split should match.", | ||
"items": { | ||
"properties": { | ||
"kind": { | ||
"description": "Kind of the matching group.", | ||
"enum": [ | ||
"HTTPRouteGroup" | ||
], | ||
"type": "string" | ||
}, | ||
"name": { | ||
"description": "Name of the matching group.", | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"kind", | ||
"name" | ||
], | ||
"type": "object" | ||
}, | ||
"type": "array" | ||
}, | ||
"service": { | ||
"description": "The apex service of this split.", | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"service", | ||
"backends" | ||
], | ||
"title": "Traffic Split", | ||
"type": "object" | ||
} |
20 changes: 20 additions & 0 deletions
20
templates/oam/workloads/v1.4.8/trafficsplit.meshery.layer5.io_definition.json
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,20 @@ | ||
{ | ||
"kind": "WorkloadDefinition", | ||
"apiVersion": "core.oam.dev/v1alpha1", | ||
"metadata": { | ||
"name": "TrafficSplit", | ||
"creationTimestamp": null | ||
}, | ||
"spec": { | ||
"definitionRef": { | ||
"name": "trafficsplit.meshery.layer5.io" | ||
}, | ||
"metadata": { | ||
"@type": "pattern.meshery.io/mesh/workload", | ||
"k8sAPIVersion": "split.smi-spec.io/v1alpha4", | ||
"k8sKind": "TrafficSplit", | ||
"meshName": "TRAEFIK_MESH", | ||
"meshVersion": "v1.4.8" | ||
} | ||
} | ||
} |
91 changes: 91 additions & 0 deletions
91
templates/oam/workloads/v1.4.8/traffictarget.meshery.layer5.io.meshery.layer5io.schema.json
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,91 @@ | ||
{ | ||
"properties": { | ||
"destination": { | ||
"description": "The destination of this traffic target.", | ||
"properties": { | ||
"kind": { | ||
"description": "Kind of the destination.", | ||
"type": "string" | ||
}, | ||
"name": { | ||
"description": "Name of the destination.", | ||
"type": "string" | ||
}, | ||
"namespace": { | ||
"description": "Namespace of the destination.", | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"name", | ||
"kind" | ||
], | ||
"type": "object" | ||
}, | ||
"rules": { | ||
"description": "Specifications of this traffic target.", | ||
"items": { | ||
"properties": { | ||
"kind": { | ||
"description": "Kind of this spec.", | ||
"enum": [ | ||
"HTTPRouteGroup", | ||
"TCPRoute", | ||
"UDPRoute" | ||
], | ||
"type": "string" | ||
}, | ||
"matches": { | ||
"description": "Match conditions of this spec.", | ||
"items": { | ||
"type": "string" | ||
}, | ||
"type": "array" | ||
}, | ||
"name": { | ||
"description": "Name of this spec.", | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"name", | ||
"kind" | ||
], | ||
"type": "object" | ||
}, | ||
"type": "array" | ||
}, | ||
"sources": { | ||
"description": "Sources of this traffic target.", | ||
"items": { | ||
"properties": { | ||
"kind": { | ||
"description": "Kind of this source.", | ||
"type": "string" | ||
}, | ||
"name": { | ||
"description": "Name of this source.", | ||
"type": "string" | ||
}, | ||
"namespace": { | ||
"description": "Namespace of this source.", | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"name", | ||
"kind" | ||
], | ||
"type": "object" | ||
}, | ||
"type": "array" | ||
} | ||
}, | ||
"required": [ | ||
"destination", | ||
"rules", | ||
"sources" | ||
], | ||
"title": "Traffic Target", | ||
"type": "object" | ||
} |
20 changes: 20 additions & 0 deletions
20
templates/oam/workloads/v1.4.8/traffictarget.meshery.layer5.io_definition.json
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,20 @@ | ||
{ | ||
"kind": "WorkloadDefinition", | ||
"apiVersion": "core.oam.dev/v1alpha1", | ||
"metadata": { | ||
"name": "TrafficTarget", | ||
"creationTimestamp": null | ||
}, | ||
"spec": { | ||
"definitionRef": { | ||
"name": "traffictarget.meshery.layer5.io" | ||
}, | ||
"metadata": { | ||
"@type": "pattern.meshery.io/mesh/workload", | ||
"k8sAPIVersion": "access.smi-spec.io/v1alpha3", | ||
"k8sKind": "TrafficTarget", | ||
"meshName": "TRAEFIK_MESH", | ||
"meshVersion": "v1.4.8" | ||
} | ||
} | ||
} |