feat: Add Terraform Provider for agent resources#368
Merged
Conversation
This was detecting branches, but not our "main" branch before. Hopefully this fixes it!
Codecov Report
@@ Coverage Diff @@
## main #368 +/- ##
==========================================
+ Coverage 67.70% 68.03% +0.32%
==========================================
Files 148 148
Lines 8064 8096 +32
Branches 72 72
==========================================
+ Hits 5460 5508 +48
+ Misses 2041 2026 -15
+ Partials 563 562 -1
Continue to review full report at Codecov.
|
Comment on lines
+2
to
+3
| GOOS=$(shell go env GOOS) | ||
| GOARCH=$(shell go env GOARCH) |
Contributor
There was a problem hiding this comment.
Looks like the foundation for cross-compilation coming in 🎉
Comment on lines
+71
to
+72
| mkdir -p ~/.terraform.d/plugins/coder.com/internal/coder/0.2/$(OS_ARCH) | ||
| cp bin/terraform-provider-coder ~/.terraform.d/plugins/coder.com/internal/coder/0.2/$(OS_ARCH) |
Contributor
There was a problem hiding this comment.
Nice 👍
Not a blocker or needed but eventually we'll need a nice way to set the VERSION (vs the hardcoded 0.2)
bryphe-coder
approved these changes
Feb 28, 2022
Contributor
bryphe-coder
left a comment
There was a problem hiding this comment.
Thanks for integrating this @kylecarbs - just minor nits but overall looks great.
Co-authored-by: Bryan <bryan@coder.com>
2e2c185 to
7594657
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds a
coderTerraform Provider that adds two resources: