-
Notifications
You must be signed in to change notification settings - Fork 64
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
Support Cookbook Uploads #250
Comments
I am currently taking a look at implementing this and submitting a PR. |
Cool. Just to note I've never been able to get the sandbox api client to work at all. |
I haven't had any trouble with it so far, but it may be due to different Chef Server versions (I've been working with Chef Server 15). Were you seeing issues against Chef Server, CINC Server, or Goiardi? |
I usually test against the current chef server. The test suite for this project has a cookbook that spins up a chef server I run the integration tests against and where I do development. Good to hear you have it working. |
* Add support for cookbook uploads (V0 and V2). * Add support for chefignore files * Improve metadata.rb parsing to conform with Chef API * Add ServerApiVersion customization to http * Minor linting changes for newer golang versions Resolves go-chef#250
* Add support for cookbook uploads (V0 and V2). * Add support for chefignore files * Improve metadata.rb parsing to conform with Chef API * Add ServerApiVersion customization to http * Minor linting changes for newer golang versions Resolves go-chef#250
As a user, I would like to be able to upload cookbooks using the go-chef/chef library.
Ruby Chef Cookbook Uploader: https://github.com/chef/chef/blob/main/lib/chef/cookbook_uploader.rb
General Process:
chef.Sandbox
Post
needs_upload
set to true in thechef.Sandbox
Post
JSON response by performing a PUT to the provided sandbox itemurl
.chef.Sandbox
Put
The text was updated successfully, but these errors were encountered: