mirror of
https://github.com/mulgadc/spinifex.git
synced 2026-10-19 19:01:42 +00:00
refactor: move core service to runtime role
This commit is contained in:
@@ -43,12 +43,12 @@ services:
|
||||
- "ochre.vector.*"
|
||||
|
||||
spinifex_daemon:
|
||||
path: spinifex/services/spinifex
|
||||
path: spinifex/runtime/roles/spinifex
|
||||
# Orchestrator. Owns most ec2.* + all elbv2.* + iam event publication.
|
||||
# Translates VPC / EBS / S3 operations into vpc.* / ebs.* / s3.* and
|
||||
# forwards to vpcd / viperblockd / predastore.
|
||||
#
|
||||
# Source layout: spinifex/services/spinifex (entry), spinifex/daemon
|
||||
# Source layout: spinifex/runtime/roles/spinifex (entry), spinifex/daemon
|
||||
# (subscribe registration), spinifex/handlers/{ec2,elbv2,iam} (per-
|
||||
# subject handler bodies). Selector treats all four paths as belonging
|
||||
# to this service via the `additional_paths` field.
|
||||
|
||||
@@ -9,7 +9,7 @@ import (
|
||||
"github.com/mulgadc/spinifex/spinifex/services/predastore"
|
||||
"github.com/mulgadc/spinifex/spinifex/runtime/roles/qemunbdd"
|
||||
"github.com/mulgadc/spinifex/spinifex/runtime/roles/qmpcollector"
|
||||
"github.com/mulgadc/spinifex/spinifex/services/spinifex"
|
||||
"github.com/mulgadc/spinifex/spinifex/runtime/roles/spinifex"
|
||||
"github.com/mulgadc/spinifex/spinifex/runtime/roles/spinifexui"
|
||||
"github.com/mulgadc/spinifex/spinifex/services/viperblockd"
|
||||
"github.com/mulgadc/spinifex/spinifex/vpcd"
|
||||
|
||||
@@ -26,7 +26,7 @@ func testManifest() *Manifest {
|
||||
Subscribes: []string{},
|
||||
},
|
||||
"spinifex_daemon": {
|
||||
Path: "spinifex/services/spinifex",
|
||||
Path: "spinifex/runtime/roles/spinifex",
|
||||
AdditionalPaths: []string{"spinifex/daemon", "spinifex/handlers/ec2"},
|
||||
Subscribes: []string{"ec2.RunInstances", "elbv2.CreateLoadBalancer"},
|
||||
Publishes: []string{"vpc.create", "ebs.mount", "s3.*", "iam.account.created"},
|
||||
|
||||
Reference in New Issue
Block a user