-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ks-146 standard capability framework #514
Conversation
c29ac37
to
663356f
Compare
663356f
to
4759b73
Compare
pkg/loop/internal/core/services/capability/standard_capability.go
Outdated
Show resolved
Hide resolved
pkg/loop/internal/core/services/capability/test/standard_capability.go
Outdated
Show resolved
Hide resolved
} | ||
c.resources = append(c.resources, errorLogRes) | ||
|
||
pipelineRunnerID, pipelineRunnerRes, err := c.ServeNew("PipelineRunner", func(s *grpc.Server) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need a pipeline runner?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My understanding is that the standard capability is analogous to a generic plugin, and thus should have the same resources available to it, one of those being pipeline runner. IIRC I did raise this specific question regarding pipeline runner with Cedric to check (same as for keyvalue store). As I understand it the idea is that we give the capability/plugin writers as much functionality as possible to avoid them having to write custom implementations that would have to access core code directly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we plan to use this for any existing capabilities? If not, is it worth considering keeping the API surface small if there is a way to extend the API in a non-breaking way later?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we plan to use this for any existing capabilities? If not, is it worth considering keeping the API surface small if there is a way to extend the API in a non-breaking way later?
Nvm, we actually need it for the Consensus capability.
} | ||
c.resources = append(c.resources, telemetryRes) | ||
|
||
keyValueStoreID, keyValueStoreRes, err := c.ServeNew("KeyValueStore", func(s *grpc.Server) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we need a KV store?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(see answer wrt pipeline runner)
66e516b
to
18a54f6
Compare
18a54f6
to
21b0904
Compare
3be4eea
to
5fccd04
Compare
No description provided.