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

feat: Create provisioner abstraction #12

Merged
merged 14 commits into from
Jan 8, 2022
Merged

feat: Create provisioner abstraction #12

merged 14 commits into from
Jan 8, 2022

Conversation

kylecarbs
Copy link
Member

Creates a provisioner abstraction that takes prior art from the Terraform plugin system. It's safe to assume this code will change a lot when it becomes integrated with provisionerd.

Closes #10.

Creates a provisioner abstraction that takes prior art from the Terraform plugin system. It's safe to assume this code will change a lot when it becomes integrated with provisionerd.

Closes #10.
@kylecarbs kylecarbs self-assigned this Jan 7, 2022
@codecov
Copy link

codecov bot commented Jan 7, 2022

Codecov Report

Merging #12 (49b0ac8) into main (2769f4c) will decrease coverage by 0.44%.
The diff coverage is 66.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #12      +/-   ##
==========================================
- Coverage   69.93%   69.48%   -0.45%     
==========================================
  Files          10       15       +5     
  Lines         735      888     +153     
==========================================
+ Hits          514      617     +103     
- Misses        177      212      +35     
- Partials       44       59      +15     
Flag Coverage Δ
macos-latest 58.91% <66.66%> (+1.54%) ⬆️
ubuntu-latest 68.01% <66.66%> (-1.65%) ⬇️
windows-latest 57.43% <66.66%> (+0.64%) ⬆️
Impacted Files Coverage Δ
provisioner/terraform/provision.go 63.26% <63.26%> (ø)
provisionersdk/serve.go 63.33% <63.33%> (ø)
provisioner/terraform/serve.go 66.66% <66.66%> (ø)
provisioner/terraform/parse.go 70.73% <70.73%> (ø)
provisionersdk/transport.go 72.22% <72.22%> (ø)
peer/channel.go 88.05% <0.00%> (+0.62%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2769f4c...49b0ac8. Read the comment docs.

codecov.yml Outdated Show resolved Hide resolved
@kylecarbs kylecarbs merged commit 7c260f8 into main Jan 8, 2022
@kylecarbs kylecarbs deleted the provisioner branch January 8, 2022 17:24
)

// Provision executes `terraform apply`.
func (t *terraform) Provision(ctx context.Context, request *proto.Provision_Request) (*proto.Provision_Response, error) {
Copy link
Contributor

Choose a reason for hiding this comment

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

@kylecarbs should we name this according to the canonical action names instead of Provision?

Copy link
Member Author

Choose a reason for hiding this comment

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

Hmm. So WorkspaceProvision instead?

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.

Create provisioner protocol definition
3 participants