Skip to content

Commit

Permalink
add dapr rels for other components
Browse files Browse the repository at this point in the history
Signed-off-by: codeSafari10 <[email protected]>
  • Loading branch information
codeSafari10 committed Jul 10, 2024
1 parent 67b8778 commit f597671
Show file tree
Hide file tree
Showing 2 changed files with 111 additions and 74 deletions.

This file was deleted.

111 changes: 111 additions & 0 deletions server/meshmodel/dapr/relationships/sidecar-configuration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
{
"schemaVersion": "relationships.meshery.io/v1alpha2",
"version": "v1.0.0",
"kind": "Hierarchical",
"metadata": {
"description": "This relationship defines how various Dapr components (HTTPEndpoint, Resiliency, Configuration, and Subscription) are applied to a sidecar container running daprd. It represents a hierarchical inventory relationship where the child components (Dapr resources) patch the configuration of the parent component (sidecar container).",
"type": "SingularNodeInventoryWallet"
},
"model": {
"schemaVersion": "models.meshery.io/v1beta1",
"version": "v1.0.0",
"name": "dapr",
"model": {
"version": "*"
},
"displayName": "Dapr",
"category": {
"name": "Serverless",
"metadata": null
},
"metadata": {}
},
"subType": "Inventory",
"evaluationQuery": "hierarchical_inventory_relationship",
"selectors": [
{
"allow": {
"from": [
{
"kind": "HTTPEndpoint",
"model": "dapr",
"patch": {
"patchStrategy": "replace",
"mutatorRef": [
[
"spec",
"routes"
]
],
"description": "Specifies the Dapr HTTPEndpoint configuration, particularly the routes, that will be applied to the Dapr sidecar container. This configuration determines how incoming HTTP requests are handled and routed within the Dapr runtime."
}
},
{
"kind": "Resiliency",
"model": "dapr",
"patch": {
"patchStrategy": "replace",
"mutatorRef": [
[
"spec",
"policies"
]
],
"description": "Defines the Dapr Resiliency policies to be applied to the Dapr sidecar. These policies control retry, circuit breaking, and timeout behaviors for various Dapr operations."
}
},
{
"kind": "Configuration",
"model": "dapr",
"patch": {
"patchStrategy": "replace",
"mutatorRef": [
[
"spec"
]
],
"description": "Specifies the Dapr Configuration to be applied to the Dapr sidecar. This includes settings for features like tracing, metrics, and middleware that affect the behavior of the Dapr runtime."
}
},
{
"kind": "Subscription",
"model": "dapr",
"patch": {
"patchStrategy": "replace",
"mutatorRef": [
[
"spec",
"topic"
],
[
"spec",
"routes"
]
],
"description": "Defines the Dapr Subscription configuration to be applied to the Dapr sidecar. This determines which pub/sub topics the application subscribes to and how messages are routed to the application."
}
}
],
"to": [
{
"kind": "Container",
"model": "meshery-core",
"patch": {
"patchStrategy": "replace",
"mutatedRef": [
[
"args"
]
],
"description": "Identifies the sidecar container running daprd that will receive the Dapr component configurations. The container's arguments are updated to reflect the new configurations for HTTPEndpoint, Resiliency, Configuration, and Subscription, enabling the Dapr sidecar to operate with the specified behaviors."
}
}
]
},
"deny": {
"from": [],
"to": []
}
}
]
}

0 comments on commit f597671

Please sign in to comment.