Skip to content
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

Start livestatereporter on pipedv1 #5457

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

ffjlabo
Copy link
Member

@ffjlabo ffjlabo commented Dec 26, 2024

What this PR does:

Fix to start the livestatereporter when starting pipedv1.

Also, I added a plugin name field for the application model to list apps by it.

Why we need it:

These fixes are needed to start the internal reporter for each plugin.

Which issue(s) this PR fixes:

Part of #5363

Does this PR introduce a user-facing change?:

  • How are users affected by this change:
  • Is this breaking change:
  • How to migrate (if breaking change):

Signed-off-by: Yoshiki Fujikane <[email protected]>
@ffjlabo ffjlabo force-pushed the start-livestatereporter-on-pipedv1 branch from fa22a0f to a6603eb Compare December 26, 2024 09:10
Copy link

codecov bot commented Dec 26, 2024

Codecov Report

Attention: Patch coverage is 52.38095% with 10 lines in your changes missing coverage. Please review.

Project coverage is 26.12%. Comparing base (f6a472e) to head (0c4fc0d).

Files with missing lines Patch % Lines
pkg/app/pipedv1/cmd/piped/piped.go 0.00% 7 Missing ⚠️
pkg/app/pipedv1/apistore/applicationstore/store.go 78.57% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5457      +/-   ##
==========================================
+ Coverage   26.09%   26.12%   +0.03%     
==========================================
  Files         457      457              
  Lines       49081    49086       +5     
==========================================
+ Hits        12808    12825      +17     
+ Misses      35251    35238      -13     
- Partials     1022     1023       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Yoshiki Fujikane <[email protected]>
Signed-off-by: Yoshiki Fujikane <[email protected]>
@ffjlabo ffjlabo marked this pull request as ready for review December 26, 2024 09:33
@@ -45,6 +45,8 @@ message Application {
string platform_provider = 15;
// The names of deploy taget where to deploy this application.
repeated string deploy_targets = 16;
// The name of plugin used to deploy this application.
string plugin = 17;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's not a single plugin which deploys an application but it's a list of plugins do

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@khanhtc1202
Thanks, fixed it on 0c4fc0d

@@ -36,6 +36,8 @@ type Lister interface {
ListByPlatformProvider(name string) []*model.Application
// Get retrieves a specifiec deployment for the given id.
Get(id string) (*model.Application, bool)
// ListByPluginName lists all applications for a given plugin name.
ListByPluginName(name string) []*model.Application
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we replace the ListByPlatformProver?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@khanhtc1202 Your right. We don't need it for now. So I removed it. 374de36

Signed-off-by: Yoshiki Fujikane <[email protected]>
Signed-off-by: Yoshiki Fujikane <[email protected]>
@ffjlabo ffjlabo force-pushed the start-livestatereporter-on-pipedv1 branch from c1654db to 0c4fc0d Compare December 27, 2024 01:16
@ffjlabo ffjlabo requested a review from khanhtc1202 December 27, 2024 01:24
@ffjlabo ffjlabo enabled auto-merge (squash) December 27, 2024 01:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants