-
Notifications
You must be signed in to change notification settings - Fork 194
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: migrate to tf-sdk2 #102
Merged
Merged
Changes from 1 commit
Commits
Show all changes
59 commits
Select commit
Hold shift + click to select a range
a991d03
chore: runs v2 upgrade cmd
mavogel e10e1b1
chore: moves all files into the internal provider dir
mavogel 325ad03
chore: renames internal package from docker to provider
mavogel e2761c9
feat: migrates main and provider
mavogel 27b526c
fix: migrates tests to provider factories
mavogel 331cd6c
fix: upgrades funcs with context
mavogel c92b621
fix: label migration test
mavogel cd54dd6
fix: reg image funcs test
mavogel c72a236
feat: migrates to resource context aware funcs
mavogel ea3b5ea
fix: context propagation in resources
mavogel c294281
fix: adds missing ctx
mavogel 7753bfe
chore: adapts internal provider directory path
mavogel 251a999
fix: replace import state passthrough ctx func
mavogel 6c227ba
fix: replace wait for state ctx
mavogel 4c27132
fix: ignores lint check for schema.SchemaValidateFunc
mavogel 62019c2
fix: adapts v2 path for linter errcheck settings
mavogel e736734
feat: adds context param to tests
mavogel 4cbf4fc
fix: swiches registry_auth to TypeList maxItems 1
mavogel 25fbafc
fix: switches service auth, restart_policy from Map to List
mavogel 4566618
fix: acc test setup
mavogel f8dc9c0
fix: auth element from set to list parsing
mavogel 30129eb
fix: flattener for container.HostConfig.ExtraHosts
mavogel cad9954
fix: adapts impl of service auth map to list switch
mavogel 2220d5b
fix: service restart_policy map to list with one item
mavogel 3f60dfa
fix: dockerconfig file path in tests after go files migration
mavogel a2903ab
fix: image context file path in tests after go files migration
mavogel a3fff81
fix: catch non-existing restart policy
mavogel e072968
chore: bumps docker to v20.10.0 and tmp fixes build
mavogel 75bd236
fix: merge conflicts
mavogel b798fd6
fix: test with providerFactories
mavogel 62714f6
fix: add docker plugin resource and datasource
mavogel f8fa0d4
fix: test file path for new structure
mavogel 3020f19
fix: add name attribute eto ds docker plugin schema
mavogel 77a2d07
test: skip image build and keep
mavogel b6b5c3e
chore: bump tf-sdk to v2.4.4
mavogel b1bd97f
fix: add stop grace period for tests of 10s
mavogel 1bc2df7
fix: linter tmp
mavogel 6c4f1e1
fix: acc test by adding stop grace period
mavogel c7b26aa
feat: set descriptions to markdown and show an example builder
mavogel 78ee421
feat: replace first base64 encoder wirh diag func
mavogel 0d0232d
chore: remove diag suffix from validator
mavogel 6a107c6
fix: update validateIntegerInRange to SchemaValidateDiagFunc
mavogel 576be5d
fix: make base64 validator return a func
mavogel 1d7fc6e
fix: make validateIntegerGeqThan with diag
mavogel 5444a2e
fix: remove validateFloatRatio due to unusage
mavogel 999aeac
fix: remove validateIntegerInRange due to unusage
mavogel 6106905
fix: make validateStringIsFloatRatio with diag
mavogel 229e753
fix: make validateDurationGeq0 diag
mavogel f098d3e
fix: make validateStringMatchesPattern diag
mavogel 27fbadd
fix: make validateDockerContainerPath diag
mavogel ca0c2d1
fix: validator error output format to %v
mavogel d867b20
fix: remove staticlink check skip for validators funcs
mavogel 9aca4fe
test: switch from ctx TODO to Background
mavogel 14ee44f
fix: change param of providerSetToRegistryAuth to list
mavogel 27454eb
chore: use diags.HasError() instead of len(diags)
mavogel 8e3d832
feat: add state upgrade for restart_policy
mavogel 4744283
feat: add state upgrade for auth
mavogel 41a3c79
chore: fix linting
mavogel ac3579e
Merge branch 'master' into feat-migrate-tf-sdk2
suzuki-shunsuke File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
State Migration should be implemented.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://www.terraform.io/docs/extend/resources/state-migration.html#terraform-v0-12-sdk-state-migrations
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for pointing out :) So for all
TypeMap
toTypeList
we need those migrators right?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think so.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
contributing
section (I wonder how we can automate those tests)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work!
Would you split files per schema version like
docker_container
resource?I did the same in thing hashicorp/terraform-provider-docker#272 .