Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Commit

Permalink
[Patterns] Pattern components generated from latest OSM manifests
Browse files Browse the repository at this point in the history
Signed-off-by: l5io <[email protected]>
  • Loading branch information
leecalcote authored and l5io committed Jan 24, 2022
1 parent bd30cad commit 5b1fa6b
Show file tree
Hide file tree
Showing 16 changed files with 959 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
{
"properties": {
"hosts": {
"description": "Hosts that the sources are allowed to direct external traffic to.",
"items": {
"type": "string"
},
"type": "array"
},
"ipAddresses": {
"description": "IP address ranges that the sources are allowed to direct external traffic to.",
"items": {
"pattern": "((?:\\d{1,3}\\.){3}\\d{1,3})\\/(\\d{1,2})$",
"type": "string"
},
"type": "array"
},
"matches": {
"description": "The resource references an Egress policy should match on.",
"items": {
"properties": {
"apiGroup": {
"description": "API group for the resource being referenced.",
"type": "string"
},
"kind": {
"description": "Type of resource being referenced.",
"type": "string"
},
"name": {
"description": "Name of resource being referenced.",
"type": "string"
}
},
"required": [
"apiGroup",
"kind",
"name"
],
"type": "object"
},
"type": "array"
},
"ports": {
"description": "Ports that the sources are allowed to direct external traffic to.",
"items": {
"properties": {
"number": {
"description": "Port number of this port.",
"maximum": 65535,
"minimum": 1,
"type": "integer"
},
"protocol": {
"description": "Protocol served by this port.",
"type": "string"
}
},
"required": [
"number",
"protocol"
],
"type": "object"
},
"type": "array"
},
"sources": {
"description": "Sources the egress policy is applicable to.",
"items": {
"properties": {
"kind": {
"description": "Kind of this source.",
"enum": [
"ServiceAccount"
],
"type": "string"
},
"name": {
"description": "Name of this source.",
"type": "string"
},
"namespace": {
"description": "Namespace of this source.",
"type": "string"
}
},
"required": [
"kind",
"name",
"namespace"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"sources",
"ports"
],
"title": "Egress",
"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": "Egress",
"creationTimestamp": null
},
"spec": {
"definitionRef": {
"name": "egress.meshery.layer5.io"
},
"metadata": {
"@type": "pattern.meshery.io/mesh/workload",
"k8sAPIVersion": "policy.openservicemesh.io/v1alpha1",
"k8sKind": "Egress",
"meshName": "OPEN_SERVICE_MESH",
"meshVersion": "v1.0.0-rc.4"
}
}
}
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": "OPEN_SERVICE_MESH",
"meshVersion": "v1.0.0-rc.4"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
{
"properties": {
"backends": {
"description": "Backends the IngressBackend policy is applicable to.",
"items": {
"properties": {
"name": {
"description": "Name of the backend.",
"type": "string"
},
"port": {
"description": "Port of the backend.",
"properties": {
"number": {
"description": "Port number of this port.",
"maximum": 65535,
"minimum": 1,
"type": "integer"
},
"protocol": {
"description": "Protocol served by this port.",
"type": "string"
}
},
"required": [
"number",
"protocol"
],
"type": "object"
},
"tls": {
"description": "TLS configuration for the backend.",
"properties": {
"skipClientCertValidation": {
"description": "Skip client certificate validation.",
"type": "boolean"
},
"sniHosts": {
"description": "SNI hosts allowed by the backend.",
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"skipClientCertValidation"
],
"type": "object"
}
},
"required": [
"name",
"port"
],
"type": "object"
},
"type": "array"
},
"matches": {
"description": "The resource references an IngressBackend policy should match on.",
"items": {
"properties": {
"apiGroup": {
"description": "API group for the resource being referenced.",
"type": "string"
},
"kind": {
"description": "Type of resource being referenced.",
"type": "string"
},
"name": {
"description": "Name of resource being referenced.",
"type": "string"
}
},
"required": [
"apiGroup",
"kind",
"name"
],
"type": "object"
},
"type": "array"
},
"sources": {
"description": "Sources the IngressBackend policy is applicable to.",
"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": [
"kind",
"name"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"backends",
"sources"
],
"title": "Ingress Backend",
"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": "IngressBackend",
"creationTimestamp": null
},
"spec": {
"definitionRef": {
"name": "ingressbackend.meshery.layer5.io"
},
"metadata": {
"@type": "pattern.meshery.io/mesh/workload",
"k8sAPIVersion": "policy.openservicemesh.io/v1alpha1",
"k8sKind": "IngressBackend",
"meshName": "OPEN_SERVICE_MESH",
"meshVersion": "v1.0.0-rc.4"
}
}
}
Loading

0 comments on commit 5b1fa6b

Please sign in to comment.