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
fcde3ac
commit 3785998
Showing
4 changed files
with
125 additions
and
0 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
.../oam/workloads/v1.2.1/extensionservice.OSM.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,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" | ||
} |
20 changes: 20 additions & 0 deletions
20
templates/oam/workloads/v1.2.1/extensionservice.OSM.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": "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" | ||
} | ||
} | ||
} |
56 changes: 56 additions & 0 deletions
56
templates/oam/workloads/v1.2.1/telemetry.OSM.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,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" | ||
} |
20 changes: 20 additions & 0 deletions
20
templates/oam/workloads/v1.2.1/telemetry.OSM.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": "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" | ||
} | ||
} | ||
} |