forked from meshery/meshery
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: codeSafari10 <[email protected]>
- Loading branch information
1 parent
67b8778
commit f597671
Showing
2 changed files
with
111 additions
and
74 deletions.
There are no files selected for viewing
74 changes: 0 additions & 74 deletions
74
server/meshmodel/dapr/1.14.0-rc.2/v1.0.0/relationships/sidecar-configuration.json
This file was deleted.
Oops, something went wrong.
111 changes: 111 additions & 0 deletions
111
server/meshmodel/dapr/relationships/sidecar-configuration.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,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": [] | ||
} | ||
} | ||
] | ||
} |