Skip to content

Commit

Permalink
[Patterns] Pattern components generated from latest App Mesh manifests
Browse files Browse the repository at this point in the history
Signed-off-by: l5io <[email protected]>
  • Loading branch information
Revolyssup authored and l5io committed Dec 3, 2021
1 parent 3bf59e3 commit 943dedb
Show file tree
Hide file tree
Showing 12 changed files with 4,006 additions and 0 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"apiVersion": "core.oam.dev/v1alpha1",
"kind": "WorkloadDefinition",
"metadata": {
"name": "GatewayRoute.APP_MESH"
},
"spec": {
"definitionRef": {
"name": "gatewayroute.appmesh.meshery.layer5.io"
},
"metadata": {
"@type": "pattern.meshery.io/mesh/workload",
"meshVersion": "v1.4.1",
"meshName": "APP_MESH",
"k8sAPIVersion": "appmesh.k8s.aws/v1beta2",
"k8sKind": "GatewayRoute"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
{
"description": "MeshSpec defines the desired state of Mesh refers to https://docs.aws.amazon.com/app-mesh/latest/APIReference/API_MeshSpec.html",
"properties": {
"awsName": {
"description": "AWSName is the AppMesh Mesh object's name. If unspecified or empty, it defaults to be \"${name}\" of k8s Mesh",
"type": "string"
},
"egressFilter": {
"description": "The egress filter rules for the service mesh. If unspecified, default settings from AWS API will be applied. Refer to AWS Docs for default settings.",
"properties": {
"type": {
"description": "The egress filter type.",
"enum": [
"ALLOW_ALL",
"DROP_ALL"
],
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
},
"meshOwner": {
"description": "The AWS IAM account ID of the service mesh owner. Required if the account ID is not your own.",
"type": "string"
},
"namespaceSelector": {
"description": "NamespaceSelector selects Namespaces using labels to designate mesh membership. This field follows standard label selector semantics: \tif present but empty, it selects all namespaces. \tif absent, it selects no namespace.",
"properties": {
"matchExpressions": {
"description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.",
"items": {
"description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.",
"properties": {
"key": {
"description": "key is the label key that the selector applies to.",
"type": "string"
},
"operator": {
"description": "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.",
"type": "string"
},
"values": {
"description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.",
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"key",
"operator"
],
"type": "object"
},
"type": "array"
},
"matchLabels": {
"additionalProperties": {
"type": "string"
},
"description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.",
"type": "object"
}
},
"type": "object"
}
},
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"apiVersion": "core.oam.dev/v1alpha1",
"kind": "WorkloadDefinition",
"metadata": {
"name": "Mesh.APP_MESH"
},
"spec": {
"definitionRef": {
"name": "mesh.appmesh.meshery.layer5.io"
},
"metadata": {
"@type": "pattern.meshery.io/mesh/workload",
"meshVersion": "v1.4.1",
"meshName": "APP_MESH",
"k8sAPIVersion": "appmesh.k8s.aws/v1beta2",
"k8sKind": "Mesh"
}
}
}
Loading

0 comments on commit 943dedb

Please sign in to comment.