* upgrade terraform-plugin-sdk and `go mod vendor`
* Update digitalocean/datasource_digitalocean_image_test.go
Co-authored-by: Andrew Starr-Bochicchio <andrewsomething@users.noreply.github.com>
* Update digitalocean/datasource_digitalocean_kubernetes_cluster_test.go
Co-authored-by: Andrew Starr-Bochicchio <andrewsomething@users.noreply.github.com>
* Update digitalocean/datasource_digitalocean_vpc_test.go
Co-authored-by: Andrew Starr-Bochicchio <andrewsomething@users.noreply.github.com>
* Update digitalocean/datasource_digitalocean_vpc_test.go
Co-authored-by: Andrew Starr-Bochicchio <andrewsomething@users.noreply.github.com>
* go fmt
* fix droplet_id to be of the right type
* fix digitalocean_project resource
* fix creation order in digitalocean_certificate test
* fix digitalocean_container_registry data source tes
* Port new changes to v2.
* Port all tests to resource.ParallelTest
* Fix KubernetesProviderInteroperability test.
* Fix TestAccDigitalOceanKubernetesCluster_UpgradeVersion
* Fix firewall panic s/create_at/created_at/
* Fix TestAccDigitalOceanDroplet_Basic: Droplets now have private networking by default.
* Fix TestAccDataSourceDigitalOceanDomain_Basic
* Fix TestAccDataSourceDigitalOceanDropletSnapshot tests.
* Fix TestAccDataSourceDigitalOceanSSHKey_Basic
* Fix TestAccDataSourceDigitalOceanVolumeSnapshot tests.
* Fix TestAccDataSourceDigitalOceanVolume tests.
* Fix TestAccDataSourceDigitalOceanRecord_Basic
* Fix TestAccDataSourceDigitalOceanProject_NonDefaultProject
* Fix TestAccDigitalOceanImage_PublicSlug
* Fix TestAccDataSourceDigitalOceanImages_Basic via bug in imageSchema()
* go mod tidy
* Fix TestAccDataSourceDigitalOceanDroplet tests.
* Fix TestAccDataSourceDigitalOceanVPC_ByName
* Fix TestAccDataSourceDigitalOceanTag_Basic
* Fix TestAccDataSourceDigitalOceanTags_Basic
* Ensure versions are set in DBaaS tests.
* Fix TestAccDataSourceDigitalOceanApp_Basic
* Fix non-set related issues with TestAccDataSourceDigitalOceanLoadBalancer tests.
* Fix TestAccDataSourceDigitalOceanKubernetesCluster_Basic
* Remove testAccDigitalOceanKubernetesConfigWithEmptyNodePool: Empty node pools are no longer supported.
* Fix TestAccDigitalOceanProject_WithManyResources.
* Fix TestAccDigitalOceanProject_UpdateFromDropletToSpacesResource
* vendor set helpers from AWS provider
* Fix TestAccDigitalOceanFloatingIP_Droplet.
* Fix CDN panic.
* fix TestAccDigitalOceanSpacesBucket_LifecycleBasic using setutil helpers
* vendor set helpers from AWS provider
* fix TestAccDigitalOceanSpacesBucket_LifecycleBasic using setutil helpers
* Fix load balancer tests using setutil helpers.
* Fix K8s tests using setutil helpers.
* Fix TestAccDigitalOceanApp_Envs using setutil helpers.
* Fix TestAccDigitalOceanSpacesBucket_LifecycleExpireMarkerOnly using setutil helpers.
* Fix TestAccDigitalOceanFloatingIPAssignment_createBeforeDestroy
* fix remaining TypeSet tests using setutil
* Registry test can not run in parallel. One per account.
* Fix TestAccDigitalOceanProject_UpdateWithDropletResource
* Fix replica tests.
* go mod tidy
Co-authored-by: Andrew Starr-Bochicchio <andrewsomething@users.noreply.github.com>
Co-authored-by: Andrew Starr-Bochicchio <a.starr.b@gmail.com>
* Bump godo version.
* Initial support for app service spec.
* Update godo
* Add support for static sites.
* Refactor to share appSpecComponentBase
* Add support for workers.
* Fix expandAppDomainSpec
* Add database support.
* Add first set of acceptance tests.
* Add test excercising envs.
* Add worker test.
* Add import test.
* Add sweeper.
* Add App data source.
* Add documentation for the resource.
* Add data source docs.
* Update health_check attributes.
* Use basic plan in acceptance tests.
* Test upgrading an app from basic to professional.
* Update waitForAppDeployment method.
* Fix env docs.
* Update digitalocean/datasource_digitalocean_app_test.go
Co-authored-by: Cesar Garza <scotch.neat@live.com>
* Simplify expand methods.
* Fix typo in sweeper log message.
Co-authored-by: Cesar Garza <scotch.neat@live.com>
* adding Container Registry support
* adding endpoint and docker_credentials as attributes to datasource
* updating documentation on how to use the endpoint attribute
* adding a server_url attribute
* adding tests, exporting attributes from resources, fixing go.sum, updating docs
* adding update function and splitting out generateDockerCreds into a separate function
* updating acceptance tests and docs
* Update website/docs/d/container_registry.html.md
Co-Authored-By: Andrew Starr-Bochicchio <andrewsomething@users.noreply.github.com>
* Update website/docs/d/container_registry.html.md
Co-Authored-By: Andrew Starr-Bochicchio <andrewsomething@users.noreply.github.com>
* Update website/docs/d/container_registry.html.md
Co-Authored-By: Andrew Starr-Bochicchio <andrewsomething@users.noreply.github.com>
* adding kubernetes example
* adding note about container registry beta
* removing TODOs
* partial push
* almost done, odd error in import test and waiting for final default value
* setting default for expiry_seconds and creating custom importer
* creating new resource for docker credentials
* fixed tiny bug in testing
* Update website/docs/r/container_registry_docker_credentials.html.markdown
Co-authored-by: Andrew Starr-Bochicchio <andrewsomething@users.noreply.github.com>
* Update website/docs/r/container_registry_docker_credentials.html.markdown
Co-authored-by: Andrew Starr-Bochicchio <andrewsomething@users.noreply.github.com>
* Final tweaks as requested
Co-authored-by: Andrew Starr-Bochicchio <andrewsomething@users.noreply.github.com>
* Initial work on VPC supprt.
* Add VPC data source.
* Additional test cases.
* Droplet updates for VPC support.
* Kubernetes updates for VPC support.
* Load balancer updates for VPC support.
* Retry on 403 errors in delete method to prevent race condition with database cluster deletion.
* DBaaS updates for VPC support.
* Add docs on VPC resource and data source.
* Update docs for related resources.
* Clean up.
* Bump godo to v1.34.0.
* Update with ip_range and description fields.
* Update re: private_networking atribute.
* Update vpc docs to say smaller than /24 not supported.
* upgrade godo to v1.30.0
* add labels attribute to node pool resources
* add support for labels in the k8s cluster datasource
* fix bug in creating default node pools with labels plus tests
* update docs for labels support
* Add label example to the node pool docs.
* add link to Kubernetes documentation about how labels are exposed
Co-authored-by: Andrew Starr-Bochicchio <andrewsomething@users.noreply.github.com>
* datasource_digitalocean_droplet: use ExactlyOneOf to ensure only one way of specifying droplet
* run `go mod vendor`
* Remove go version from go.mod
Co-authored-by: Andrew Starr-Bochicchio <andrewsomething@users.noreply.github.com>
* DO cluster ver change will make an upgrade request instead of force new
* add custom diff to force new if kubernetes version is decreased
* run go mod vendor; go mod tidy
* check NoZeroValues for kubernetes version and update kubenetes upgrade version test to check id
* Add note to the docs about version upgrades.
* Revert addition of go version to go.mod
* Upgrade to terraform-plugin-sdk
After following the [guide](https://www.terraform.io/docs/extend/plugin-sdk.html#using-tf-sdk-migrator)
Check
```
▶ GO111MODULE=on tf-sdk-migrator check
Checking Go runtime version ...
Go version 1.12.10: OK.
Checking whether provider uses Go modules...
Go modules in use: OK.
Checking version of github.com/hashicorp/terraform-plugin-sdk to determine if provider was already migrated...
Checking version of github.com/hashicorp/terraform used in provider...
Terraform version 0.12.8: OK.
Checking whether provider uses deprecated SDK packages or identifiers...
No imports of deprecated SDK packages or identifiers: OK.
All constraints satisfied. Provider can be migrated to the new SDK.
```
Migrate
```
▶ GO111MODULE=on tf-sdk-migrator migrate
Checking Go runtime version ...
Go version 1.12.10: OK.
Checking whether provider uses Go modules...
Go modules in use: OK.
Checking version of github.com/hashicorp/terraform-plugin-sdk to determine if provider was already migrated...
Checking version of github.com/hashicorp/terraform used in provider...
Terraform version 0.12.8: OK.
Checking whether provider uses deprecated SDK packages or identifiers...
No imports of deprecated SDK packages or identifiers: OK.
All constraints satisfied. Provider can be migrated to the new SDK.
Rewriting provider go.mod file...
Rewriting SDK package imports...
Running `go mod tidy`...
Success! Provider is migrated to github.com/hashicorp/terraform-plugin-sdk v1.1.0.
It looks like this provider vendors dependencies. Don't forget to run `go mod vendor`.
Make sure to review all changes and run all tests.
```
* Fix build under go 1.13.x.
* vendor: Ignore github.com/hashicorp/terraform/backend
This is to avoid dependency sprawl - e.g. vendoring AWS or Azure SDK
when we don't really need remote backend functionality
in provider code - it's core's responsibility.
* vendor: github.com/hashicorp/terraform/...@v0.10.0