This repository has been archived by the owner on Sep 27, 2023. It is now read-only.
generated from meshery/meshery-adapter-template
-
Notifications
You must be signed in to change notification settings - Fork 47
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 OSM manifests
Signed-off-by: l5io <[email protected]>
- Loading branch information
1 parent
bd30cad
commit 5b1fa6b
Showing
16 changed files
with
959 additions
and
0 deletions.
There are no files selected for viewing
103 changes: 103 additions & 0 deletions
103
templates/oam/workloads/v1.0.0-rc.4/egress.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,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" | ||
} |
20 changes: 20 additions & 0 deletions
20
templates/oam/workloads/v1.0.0-rc.4/egress.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": "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" | ||
} | ||
} | ||
} |
60 changes: 60 additions & 0 deletions
60
...s/oam/workloads/v1.0.0-rc.4/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.0.0-rc.4/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": "OPEN_SERVICE_MESH", | ||
"meshVersion": "v1.0.0-rc.4" | ||
} | ||
} | ||
} |
118 changes: 118 additions & 0 deletions
118
...s/oam/workloads/v1.0.0-rc.4/ingressbackend.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,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" | ||
} |
20 changes: 20 additions & 0 deletions
20
templates/oam/workloads/v1.0.0-rc.4/ingressbackend.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": "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" | ||
} | ||
} | ||
} |
Oops, something went wrong.