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

Add deploy_targets field to GetLivestateRequest message #5618

Merged
merged 1 commit into from
Mar 4, 2025

Conversation

Warashi
Copy link
Contributor

@Warashi Warashi commented Mar 4, 2025

What this PR does:

as title

Why we need it:

We need the deploy target information to retrieve live resource states.

Which issue(s) this PR fixes:

Part of #5363

Does this PR introduce a user-facing change?: No.

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

@Warashi Warashi marked this pull request as ready for review March 4, 2025 01:55
Copy link

codecov bot commented Mar 4, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 26.57%. Comparing base (04394f5) to head (81151ee).
Report is 4 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5618   +/-   ##
=======================================
  Coverage   26.57%   26.57%           
=======================================
  Files         475      475           
  Lines       50592    50592           
=======================================
  Hits        13444    13444           
  Misses      36085    36085           
  Partials     1063     1063           

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

Copy link
Member

@t-kikuc t-kikuc left a comment

Choose a reason for hiding this comment

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

Seems good! I wanna ask you one tiny point!

@@ -30,6 +30,7 @@ service LivestateService {
message GetLivestateRequest {
string application_id = 1;
grpc.plugin.common.v1alpha1.DeploymentSource deploy_source = 2;
repeated string deploy_targets = 3;
Copy link
Member

Choose a reason for hiding this comment

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

[ask] Are these fields required or not?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think the application ID seems required, but the others are plugin-dependent.

Copy link
Member

Choose a reason for hiding this comment

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

Thank you, I got it

Copy link
Member

Choose a reason for hiding this comment

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

IMO, all should be required since this is livestate, so common plugins (like wait, wait approval) would not use this; only platform-based plugins use these fields, so should mark as required, wdyt?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree with you about the plugins I can imagine now. But I think we should not restrict the possibility of third-party plugins that don't use these fields.

Copy link
Member

@khanhtc1202 khanhtc1202 left a comment

Choose a reason for hiding this comment

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

👌

@khanhtc1202 khanhtc1202 merged commit b72972d into master Mar 4, 2025
18 checks passed
@khanhtc1202 khanhtc1202 deleted the livestate-plugin-proto branch March 4, 2025 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants