Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

implement a draft packs manager plugin #2

Closed
bacongobbler opened this issue May 6, 2017 · 9 comments
Closed

implement a draft packs manager plugin #2

bacongobbler opened this issue May 6, 2017 · 9 comments

Comments

@bacongobbler
Copy link
Contributor

For draft to work in a large organization, there needs to be a mechanism to acquire and update a standard set of packs. Developers need to ensure they are using the same set of possibly team-specific language packs and charts.

This would mean:

  • remove pack initialization from draft init
  • implement a draft-packs plugin to fetch, update and otherwise manage installed packs
  • implement a pack server to serve these packs
ultimateboy pushed a commit that referenced this issue May 8, 2017
closes #2
@mboersma mboersma added this to Done in Public Release May 9, 2017
@bacongobbler
Copy link
Contributor Author

This got accidentally closed.

@sgoings
Copy link
Member

sgoings commented Jun 1, 2017

I've had a few conversations with people and it seems like a good idea might be to port helm's plugin installer into draft for this purpose: https://github.com/kubernetes/helm/blob/master/pkg/plugin/installer/installer.go

@rodcloutier
Copy link
Contributor

rodcloutier commented Jun 8, 2017

I see that the plugin installer is already ported. I would be willing to work on this.

Maybe we could be inspired by Helm and have some of the same concepts? It would maybe make it easier to adopt the technology and move from one tool to the other since they are closely linked.

Pack management

So we would need operation on packs (package, verify, etc.) Maybe something like:

$ draft pack package
$ draft pack verify

Server

Maybe we could have something similar to helm with a simple http server that would server an index.yaml with link to archives containing the pack. Wild idea, we could potentially share the same server since the format is somewhat generic.

Maybe introduce the notion of repo, as with helm:

$ draft repo add <url>
$ draft repo update

Any thoughts on this?

@bacongobbler
Copy link
Contributor Author

I think @technosophos already has his teeth sunk into this feature, but yes, that's how we envisioned this feature.

@rodcloutier
Copy link
Contributor

Good.
@technosophos, if you need help with some tasks or testing, I would be more that willing to help!

@bacongobbler
Copy link
Contributor Author

Actually I was wrong on that assumption. Feel free to take this PR if you feel like working on it, otherwise myself or someone from the Azure team will pick up on this within the next month or so tops. :)

@rodcloutier
Copy link
Contributor

Good, I started working on this. Should it really be a plugin? Could you fill me in on the direction regarding plugins architecture of Draft?

It seems to be core to draft and Helm brought this functionality as embedded commands. I will put up a tentative pull request with the same approach. Feel free to comment.

@bacongobbler
Copy link
Contributor Author

One name stuck out above all the rest for this feature... In order to differentiate the scope and feature set of this plugin vs. #287, we thought draft pack-man would be an AWESOME name.

We're still ironing out the user/developer experience at this time, but a pack manager is still on the roadmap before we release v1.0.0.

@bacongobbler
Copy link
Contributor Author

Development is ongoing at https://github.com/Azure/draft-pack-repo.

@michelleN michelleN modified the milestones: 0.8.0, 0.9.0 Sep 28, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

4 participants