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 Oct 4, 2022
1 parent fcde3ac commit 3785998
Show file tree
Hide file tree
Showing 4 changed files with 125 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"properties": {
"connectTimeout": {
"description": "Timeout for connecting to the service.",
"type": "string"
},
"host": {
"description": "Hostname of the service.",
"minLength": 1,
"type": "string"
},
"port": {
"description": "Port of the service.",
"maximum": 65535,
"minimum": 1,
"type": "integer"
},
"protocol": {
"description": "Protocol of the service.",
"type": "string"
}
},
"required": [
"host",
"port"
],
"title": "Extension Service",
"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": "ExtensionService.OSM",
"creationTimestamp": null
},
"spec": {
"definitionRef": {
"name": "extensionservice.OSM.meshery.layer5.io"
},
"metadata": {
"@type": "pattern.meshery.io/mesh/workload",
"k8sAPIVersion": "config.openservicemesh.io/v1alpha2",
"k8sKind": "ExtensionService",
"meshName": "OPEN_SERVICE_MESH",
"meshVersion": "v1.2.1"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"properties": {
"accessLog": {
"description": "accessLog (optional) defines the Envoy access log configuration.",
"properties": {
"format": {
"description": "format (optional) defines the Envoy access log format. The format can either be unstructured or structured (e.g. JSON). Refer to https://www.envoyproxy.io/docs/envoy/latest/configuration/observability/access_log/usage#format-strings regarding how a format string can be specified.",
"minLength": 1,
"type": "string"
},
"openTelemetry": {
"description": "openTelemetry (optional) defines the OpenTelemetry configuration used to export the Envoy access logs to an OpenTelemetry collector.",
"properties": {
"attributes": {
"additionalProperties": true,
"description": "attributes (optional) defines key-value pairs as additional metadata corresponding access log record.",
"type": "object"
},
"extensionService": {
"description": "extensionService defines the reference to ExtensionService resource corresponding to the OpenTelemetry collector the access log should be exported to.",
"properties": {
"name": {
"description": "Name of the ExtensionService resource.",
"minLength": 1,
"type": "string"
},
"namespace": {
"description": "Namespace of the ExtensionService resource.",
"minLength": 1,
"type": "string"
}
},
"required": [
"namespace",
"name"
],
"type": "object"
}
},
"required": [
"extensionService"
],
"type": "object"
}
},
"type": "object"
},
"selector": {
"additionalProperties": true,
"description": "selector (optional) defines the pod label selector for pods the Telemetry configuration is applicable to. It selects pods with matching label keys and values. If not specified, the configuration applies to all pods in the Telemetry resource's namespace.",
"type": "object"
}
},
"title": "Telemetry",
"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": "Telemetry.OSM",
"creationTimestamp": null
},
"spec": {
"definitionRef": {
"name": "telemetry.OSM.meshery.layer5.io"
},
"metadata": {
"@type": "pattern.meshery.io/mesh/workload",
"k8sAPIVersion": "policy.openservicemesh.io/v1alpha1",
"k8sKind": "Telemetry",
"meshName": "OPEN_SERVICE_MESH",
"meshVersion": "v1.2.1"
}
}
}

0 comments on commit 3785998

Please sign in to comment.