-
Notifications
You must be signed in to change notification settings - Fork 156
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
Implemented the backend of Metadata APIs as MetadataStoreRegistry #5471
Conversation
Signed-off-by: t-kikuc <[email protected]>
Signed-off-by: t-kikuc <[email protected]>
Signed-off-by: t-kikuc <[email protected]>
Signed-off-by: t-kikuc <[email protected]>
Signed-off-by: t-kikuc <[email protected]>
This reverts commit 3707f8d. Signed-off-by: t-kikuc <[email protected]>
Signed-off-by: t-kikuc <[email protected]>
Signed-off-by: t-kikuc <[email protected]>
Signed-off-by: t-kikuc <[email protected]>
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.
The overview is good, and deleting the metadata store from the controller/planner is nice.
I have one concern about deployment metadata.
We will face a weird bug when multiple plugins use the same key to store deployment metadata.
I think it's good to append the plugin-name prefix to the deployment metadata key, WDYT?
Oops, we don't have a way to determine the plugin that requests piped to store deployment metadata. It's difficult to append the plugin-name prefix... |
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.
It's okay to start with this implementation.
Let's re-think this when we implement a way to determine which plugin sends requests to the piped service.
Signed-off-by: t-kikuc <[email protected]>
Signed-off-by: t-kikuc <[email protected]>
Signed-off-by: t-kikuc <[email protected]>
Signed-off-by: t-kikuc <[email protected]>
Signed-off-by: t-kikuc <[email protected]>
Signed-off-by: t-kikuc <[email protected]>
Signed-off-by: t-kikuc <[email protected]>
@Warashi A plugin will
|
After merging this PR, I'll create a PR with this branch: |
Signed-off-by: t-kikuc <[email protected]>
I solved the conflict: 3f448d0 |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #5471 +/- ##
==========================================
+ Coverage 26.24% 26.31% +0.07%
==========================================
Files 458 462 +4
Lines 49364 49535 +171
==========================================
+ Hits 12954 13036 +82
- Misses 35383 35466 +83
- Partials 1027 1033 +6 ☔ View full report in Codecov by Sentry. |
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.
Almost all LGTM! I just left a comment for test.
fmt.Printf("[DEBUG] store.shared: %+v\n", store.shared) | ||
fmt.Printf("[DEBUG] store.plugins: %+v\n", store.plugins) | ||
fmt.Printf("[DEBUG] store.plugins[plugin-1]: %+v\n", store.plugins["plugin-1"]) | ||
fmt.Printf("[DEBUG] store.stages: %+v\n", store.stages) | ||
fmt.Printf("[DEBUG] store.stages[stage-1]: %+v\n", store.stages["stage-1"]) |
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.
[nit] It would be nice to use t.Logf instead of fmt.Printf
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.
Signed-off-by: t-kikuc <[email protected]>
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.
LGTM!
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.
LGTM
What this PR does:
MetadataStoreRegistry
Register()
.Overview of New MetadataStore:
Why we need it:
MetadataStoreRegistry
is needed because PluginServiceServer does not exist per Deployment.Note:
I want to refactor some points in
pkg/app/pipedv1/metadatastore/store.go
after this PR.deploymentID
instead of the wholedeployment
(here)I won't make drastic changes in the store.
Which issue(s) this PR fixes:
Part of #4980
Follows #5469
Does this PR introduce a user-facing change?: