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

Pass the DeploySource directly to the plugin #5050

Closed
wants to merge 3 commits into from

Conversation

Warashi
Copy link
Contributor

@Warashi Warashi commented Jul 17, 2024

What this PR does / why we need it:

This PR modifies the plugin input.
The piped passes the deploy source information directly to the plugin, and the plugin expects the piped to prepare the deploy source before invoking the RPC methods.
The application spec is defined in bytes because we don't want to define the spec's structure for each plugin.

This PR does not touch the deploysource package because it's widely used, and the type DeploySource is not only used in the pipedv1 but also in other packages.

Which issue(s) this PR fixes:

Fixes #

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: Shinnosuke Sawada-Dazai <shin@warashi.dev>
Signed-off-by: Shinnosuke Sawada-Dazai <shin@warashi.dev>
Signed-off-by: Shinnosuke Sawada-Dazai <shin@warashi.dev>
Copy link

codecov bot commented Jul 17, 2024

Codecov Report

Attention: Patch coverage is 0% with 14 lines in your changes missing coverage. Please review.

Project coverage is 22.48%. Comparing base (35f0408) to head (e7d20a5).
Report is 7 commits behind head on master.

Files Patch % Lines
pkg/app/pipedv1/plugin/inputs.go 0.00% 11 Missing ⚠️
...pedv1/plugin/platform/kubernetes/planner/server.go 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5050      +/-   ##
==========================================
+ Coverage   22.45%   22.48%   +0.02%     
==========================================
  Files         522      522              
  Lines       57026    57007      -19     
==========================================
+ Hits        12807    12818      +11     
+ Misses      43192    43161      -31     
- Partials     1027     1028       +1     

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

Comment on lines +79 to +82
// The source of the deployment.
DeploySource deploy_source = 3;
// The source of the last successful deployment.
DeploySource last_successful_deploy_source = 4;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// The source of the deployment.
DeploySource deploy_source = 3;
// The source of the last successful deployment.
DeploySource last_successful_deploy_source = 4;
// The source of the target state.
DeploySource target_deploy_source = 3;
// The source of the running state.
DeploySource running_deploy_source = 4;

How about renaming like this 👀

@Warashi
Copy link
Contributor Author

Warashi commented Aug 2, 2024

I have not been able to work on this PR for a while.
It is tough to resolve conflicts, so I will close it and work on it again.

@Warashi Warashi closed this Aug 2, 2024
@Warashi Warashi deleted the pipecdv1-plugin-deploysource branch August 2, 2024 00:42
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