diff --git a/templates/oam/workloads/v1.4.8/httproutegroup.meshery.layer5.io.meshery.layer5io.schema.json b/templates/oam/workloads/v1.4.8/httproutegroup.meshery.layer5.io.meshery.layer5io.schema.json new file mode 100644 index 0000000..6951d46 --- /dev/null +++ b/templates/oam/workloads/v1.4.8/httproutegroup.meshery.layer5.io.meshery.layer5io.schema.json @@ -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" +} \ No newline at end of file diff --git a/templates/oam/workloads/v1.4.8/httproutegroup.meshery.layer5.io_definition.json b/templates/oam/workloads/v1.4.8/httproutegroup.meshery.layer5.io_definition.json new file mode 100644 index 0000000..50798e9 --- /dev/null +++ b/templates/oam/workloads/v1.4.8/httproutegroup.meshery.layer5.io_definition.json @@ -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" + } + } +} \ No newline at end of file diff --git a/templates/oam/workloads/v1.4.8/tcproute.meshery.layer5.io.meshery.layer5io.schema.json b/templates/oam/workloads/v1.4.8/tcproute.meshery.layer5.io.meshery.layer5io.schema.json new file mode 100644 index 0000000..d0cc9bf --- /dev/null +++ b/templates/oam/workloads/v1.4.8/tcproute.meshery.layer5.io.meshery.layer5io.schema.json @@ -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" +} \ No newline at end of file diff --git a/templates/oam/workloads/v1.4.8/tcproute.meshery.layer5.io_definition.json b/templates/oam/workloads/v1.4.8/tcproute.meshery.layer5.io_definition.json new file mode 100644 index 0000000..a3416c1 --- /dev/null +++ b/templates/oam/workloads/v1.4.8/tcproute.meshery.layer5.io_definition.json @@ -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" + } + } +} \ No newline at end of file diff --git a/templates/oam/workloads/v1.4.8/traefikmesh.meshery.layer5io.schema.json b/templates/oam/workloads/v1.4.8/traefikmesh.meshery.layer5io.schema.json new file mode 100644 index 0000000..c114d67 --- /dev/null +++ b/templates/oam/workloads/v1.4.8/traefikmesh.meshery.layer5io.schema.json @@ -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": {} +} diff --git a/templates/oam/workloads/v1.4.8/traefikmesh_definition.json b/templates/oam/workloads/v1.4.8/traefikmesh_definition.json new file mode 100644 index 0000000..6103944 --- /dev/null +++ b/templates/oam/workloads/v1.4.8/traefikmesh_definition.json @@ -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"}}} \ No newline at end of file diff --git a/templates/oam/workloads/v1.4.8/trafficsplit.meshery.layer5.io.meshery.layer5io.schema.json b/templates/oam/workloads/v1.4.8/trafficsplit.meshery.layer5.io.meshery.layer5io.schema.json new file mode 100644 index 0000000..13f0a9a --- /dev/null +++ b/templates/oam/workloads/v1.4.8/trafficsplit.meshery.layer5.io.meshery.layer5io.schema.json @@ -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" +} \ No newline at end of file diff --git a/templates/oam/workloads/v1.4.8/trafficsplit.meshery.layer5.io_definition.json b/templates/oam/workloads/v1.4.8/trafficsplit.meshery.layer5.io_definition.json new file mode 100644 index 0000000..513d5ee --- /dev/null +++ b/templates/oam/workloads/v1.4.8/trafficsplit.meshery.layer5.io_definition.json @@ -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" + } + } +} \ No newline at end of file diff --git a/templates/oam/workloads/v1.4.8/traffictarget.meshery.layer5.io.meshery.layer5io.schema.json b/templates/oam/workloads/v1.4.8/traffictarget.meshery.layer5.io.meshery.layer5io.schema.json new file mode 100644 index 0000000..83a2455 --- /dev/null +++ b/templates/oam/workloads/v1.4.8/traffictarget.meshery.layer5.io.meshery.layer5io.schema.json @@ -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" +} \ No newline at end of file diff --git a/templates/oam/workloads/v1.4.8/traffictarget.meshery.layer5.io_definition.json b/templates/oam/workloads/v1.4.8/traffictarget.meshery.layer5.io_definition.json new file mode 100644 index 0000000..ca2e8f2 --- /dev/null +++ b/templates/oam/workloads/v1.4.8/traffictarget.meshery.layer5.io_definition.json @@ -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" + } + } +} \ No newline at end of file