-
Notifications
You must be signed in to change notification settings - Fork 257
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2305 from itowlson/service-chaining
Service chaining
- Loading branch information
Showing
32 changed files
with
1,106 additions
and
39 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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,85 @@ | ||
{ | ||
"spin_lock_version": 1, | ||
"must_understand": [ | ||
"host_requirements" | ||
], | ||
"metadata": { | ||
"authors": [ | ||
"Gul Madred", | ||
"Edward Jellico", | ||
"JL" | ||
], | ||
"description": "A simple application that returns the number of lights", | ||
"name": "chain-of-command", | ||
"origin": "file://<test-dir>/service-chaining.toml", | ||
"trigger": { | ||
"type": "http" | ||
}, | ||
"triggers": {}, | ||
"version": "6.11.2" | ||
}, | ||
"host_requirements": { | ||
"local_service_chaining": "required" | ||
}, | ||
"triggers": [ | ||
{ | ||
"id": "four-lights-http-trigger", | ||
"trigger_type": "http", | ||
"trigger_config": { | ||
"component": "four-lights", | ||
"executor": { | ||
"type": "http" | ||
}, | ||
"route": "/lights" | ||
} | ||
}, | ||
{ | ||
"id": "old-test-http-trigger", | ||
"trigger_type": "http", | ||
"trigger_config": { | ||
"component": "old-test", | ||
"route": "/test" | ||
} | ||
}, | ||
{ | ||
"id": "web-http-trigger", | ||
"trigger_type": "http", | ||
"trigger_config": { | ||
"component": "web", | ||
"route": "/dont/test" | ||
} | ||
} | ||
], | ||
"components": [ | ||
{ | ||
"id": "four-lights", | ||
"metadata": { | ||
"allowed_outbound_hosts": [ | ||
"http://old-test.spin.internal" | ||
] | ||
}, | ||
"source": { | ||
"content_type": "application/wasm", | ||
"source": "file://<test-dir>/wasm/dummy.wasm" | ||
}, | ||
"env": { | ||
"env1": "first", | ||
"env2": "second" | ||
} | ||
}, | ||
{ | ||
"id": "old-test", | ||
"source": { | ||
"content_type": "application/wasm", | ||
"source": "file://<test-dir>/wasm/dummy.wasm" | ||
} | ||
}, | ||
{ | ||
"id": "web", | ||
"source": { | ||
"content_type": "application/wasm", | ||
"source": "file://<cache-dir>/spin/registry/wasm/sha256:0000000000000000000000000000000000000000000000000000000000000000" | ||
} | ||
} | ||
] | ||
} |
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,35 @@ | ||
spin_manifest_version = 2 | ||
|
||
[application] | ||
authors = ["Gul Madred", "Edward Jellico", "JL"] | ||
description = "A simple application that returns the number of lights" | ||
name = "chain-of-command" | ||
version = "6.11.2" | ||
|
||
[[trigger.http]] | ||
route = "/lights" | ||
component = "four-lights" | ||
executor = { type = "http" } | ||
|
||
[[trigger.http]] | ||
route = "/test" | ||
component = "old-test" | ||
|
||
[[trigger.http]] | ||
route = "/dont/test" | ||
component = "web" | ||
|
||
[component.four-lights] | ||
source = "wasm/dummy.wasm" | ||
allowed_outbound_hosts = ["http://old-test.spin.internal"] | ||
[component.four-lights.environment] | ||
env1 = "first" | ||
env2 = "second" | ||
|
||
[component.old-test] | ||
source = "wasm/dummy.wasm" | ||
|
||
[component.web] | ||
[component.web.source] | ||
url = "https://example.com/wasm.wasm.wasm" | ||
digest = "sha256:0000000000000000000000000000000000000000000000000000000000000000" |
Oops, something went wrong.