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

fix: Use plan to detect resource agent association #381

Merged
merged 19 commits into from
Feb 28, 2022
Merged

Conversation

kylecarbs
Copy link
Member

Before this used the configuration object which detected all resources
regardless of count.

This was detecting branches, but not our "main" branch before.
Hopefully this fixes it!
This enables a consistent API for project import and provisioned resources.
This is a much cleaner abstraction. Explicitly declaring the user
parameters for each provisioner makes for significantly simpler
testing.
Terraform (or other provisioners) may need to cleanup state, or
cancel actions before exit. This adds the ability to gracefully
exit provisionerd.
This enables the full flow of create/update/delete.
Before this used the configuration object which detected all resources
regardless of count.
@kylecarbs kylecarbs self-assigned this Feb 28, 2022
@codecov
Copy link

codecov bot commented Feb 28, 2022

Codecov Report

Merging #381 (5f2ca1b) into main (b6017a7) will increase coverage by 0.16%.
The diff coverage is 97.50%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #381      +/-   ##
==========================================
+ Coverage   67.93%   68.09%   +0.16%     
==========================================
  Files         148      148              
  Lines        8276     8297      +21     
  Branches       72       72              
==========================================
+ Hits         5622     5650      +28     
+ Misses       2091     2087       -4     
+ Partials      563      560       -3     
Flag Coverage Δ
unittest-go-macos-latest 66.26% <ø> (+0.14%) ⬆️
unittest-go-ubuntu-latest 67.45% <97.50%> (+0.10%) ⬆️
unittest-js 66.10% <ø> (ø)
Impacted Files Coverage Δ
provisioner/terraform/provision.go 74.87% <97.50%> (+1.37%) ⬆️
peer/conn.go 78.77% <0.00%> (+0.25%) ⬆️
provisionerd/provisionerd.go 68.56% <0.00%> (+0.55%) ⬆️
peer/channel.go 84.21% <0.00%> (+1.75%) ⬆️

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 b6017a7...5f2ca1b. Read the comment docs.

Base automatically changed from delete to main February 28, 2022 19:20
@kylecarbs kylecarbs enabled auto-merge (squash) February 28, 2022 19:22
@kylecarbs kylecarbs merged commit 8acd58a into main Feb 28, 2022
@kylecarbs kylecarbs deleted the tfresources branch February 28, 2022 19:32
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.

None yet

2 participants