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: Update Coder Terraform Provider to v0.2.1 #563

Merged
merged 1 commit into from
Mar 25, 2022
Merged

Conversation

kylecarbs
Copy link
Member

This update exposes the workspace name and owner, and changes
authentication methods to be explicit. Implicit authentication
added unnecessary complexity and introduced inconsistency.

@kylecarbs kylecarbs requested a review from coadler March 25, 2022 16:12
@kylecarbs kylecarbs self-assigned this Mar 25, 2022
@kylecarbs kylecarbs force-pushed the updateprovider branch 3 times, most recently from 7eb968a to 6ac3bbf Compare March 25, 2022 16:20
if instanceIDRaw, has := resource.Expressions["instance_id"]; has {
instanceID, ok := instanceIDRaw.ConstantValue.(string)
if !ok {
return nil, xerrors.Errorf("unexpected type %q for instance_id", reflect.TypeOf(instanceIDRaw.ConstantValue).String())
Copy link
Member

Choose a reason for hiding this comment

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

you can use %T to print the type of a variable!

Copy link
Member Author

Choose a reason for hiding this comment

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

😮

@codecov
Copy link

codecov bot commented Mar 25, 2022

Codecov Report

Merging #563 (c4561d8) into main (8c0f403) will decrease coverage by 0.03%.
The diff coverage is 40.00%.

@@            Coverage Diff             @@
##             main     #563      +/-   ##
==========================================
- Coverage   62.91%   62.87%   -0.04%     
==========================================
  Files         194      194              
  Lines       11108    11107       -1     
  Branches       85       85              
==========================================
- Hits         6989     6984       -5     
- Misses       3359     3363       +4     
  Partials      760      760              
Flag Coverage Δ
unittest-go- 61.67% <40.00%> (-0.05%) ⬇️
unittest-go-macos-latest 57.54% <10.00%> (-0.02%) ⬇️
unittest-go-ubuntu-latest 60.76% <40.00%> (-0.16%) ⬇️
unittest-go-windows-2022 56.53% <10.00%> (+0.08%) ⬆️
unittest-js 63.32% <ø> (ø)
Impacted Files Coverage Δ
provisionersdk/agent.go 100.00% <ø> (ø)
cli/workspaceagent.go 10.00% <3.44%> (-5.79%) ⬇️
coderd/provisionerdaemons.go 58.51% <62.50%> (-0.09%) ⬇️
provisioner/terraform/provision.go 74.59% <78.26%> (-0.22%) ⬇️
provisionerd/provisionerd.go 77.54% <0.00%> (-1.15%) ⬇️
cli/cliui/job.go 67.52% <0.00%> (+0.85%) ⬆️
peer/conn.go 81.72% <0.00%> (+1.52%) ⬆️
peerbroker/listen.go 83.89% <0.00%> (+1.69%) ⬆️
... and 2 more

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 8c0f403...c4561d8. Read the comment docs.

This update exposes the workspace name and owner, and changes
authentication methods to be explicit. Implicit authentication
added unnecessary complexity and introduced inconsistency.
@kylecarbs kylecarbs enabled auto-merge (squash) March 25, 2022 16:28
@kylecarbs kylecarbs merged commit a06821c into main Mar 25, 2022
@kylecarbs kylecarbs deleted the updateprovider branch March 25, 2022 16:34
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