Skip to content

Commit

Permalink
[Patterns] Pattern components generated from latest Traefik manifests
Browse files Browse the repository at this point in the history
Signed-off-by: l5io <ci@layer5.io>
  • Loading branch information
leecalcote authored and l5io committed Aug 19, 2022
1 parent 87af9f3 commit 6d13a10
Show file tree
Hide file tree
Showing 10 changed files with 323 additions and 0 deletions.
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"
}
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"
}
}
}
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"
}
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"
}
}
}
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": {}
}
1 change: 1 addition & 0 deletions templates/oam/workloads/v1.4.8/traefikmesh_definition.json
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"}}}
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"
}
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"
}
}
}
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"
}
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"
}
}
}

0 comments on commit 6d13a10

Please sign in to comment.