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

adding support for plugins #238

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

alshabib
Copy link
Contributor

No description provided.

@coveralls
Copy link

coveralls commented Dec 19, 2024

Pull Request Test Coverage Report for Build 12521127515

Details

  • 0 of 457 (0.0%) changed or added relevant lines in 2 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.03%) to 1.104%

Changes Missing Coverage Covered Lines Changed/Added Lines %
containerz/containerz_grpc.pb.go 0 109 0.0%
containerz/containerz.pb.go 0 348 0.0%
Files with Coverage Reduction New Missed Lines %
containerz/containerz_grpc.pb.go 1 0.0%
Totals Coverage Status
Change from base Build 12509849913: -0.03%
Covered Lines: 166
Relevant Lines: 15038

💛 - Coveralls


// StartPlugin starts the specified plugin identified by the name field
// of the request. It should be started using the instance_name of the
// request. If the plugin file named `name.tar` does not exist, this
Copy link
Contributor

Choose a reason for hiding this comment

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

I presume the plugin needs to be a packaged OCI image right? Does this necessarily mean it must be name.tar?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes - fair point. Basically we need to make sure that the file uploaded during deploy is referenceable when PluginStart is called. So there is no need to mandate an extension.

// of the request. It should be started using the instance_name of the
// request. If the plugin file named `name.tar` does not exist, this
// should return an error.
rpc StartPlugin(StartPluginRequest) returns (StartPluginResponse) {}
Copy link
Contributor

Choose a reason for hiding this comment

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

Given we have separate plugin-specific commands for start/stop/list -- did you consider having a different one for Deploy to make the API consistent? (Not sure of the pros/cons.)

Is there a link to how volume plugins look for podman? Best I could find is containers/podman#23762.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

AFAIK Docker plugins can be used in podman so podman plugins are the same as docker plugins.

I thought about a separate Deploy API but it seems like a lot of duplication since Deploy already uploads a file as we need.

@alshabib alshabib force-pushed the plugins branch 2 times, most recently from 0e9e060 to c2f51a1 Compare December 20, 2024 08:44
@alshabib alshabib requested a review from robshakir December 22, 2024 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants