Skip to content

feat: Create provisioner abstraction#12

Merged
kylecarbs merged 14 commits into
mainfrom
provisioner
Jan 8, 2022
Merged

feat: Create provisioner abstraction#12
kylecarbs merged 14 commits into
mainfrom
provisioner

Conversation

@kylecarbs

Copy link
Copy Markdown
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

codecov Bot commented Jan 7, 2022

Copy link
Copy Markdown

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.

@kylecarbs kylecarbs requested a review from bryphe-coder January 7, 2022 19:31
Comment thread provisioner/terraform/parse_test.go Outdated
Comment thread provisionersdk/serve.go
Comment thread scripts/check_unstaged.sh
Comment thread provisionersdk/proto/provisioner.pb.go
Comment thread codecov.yml
Comment thread codecov.yml Outdated
@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
Copy Markdown
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
Copy Markdown
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