* 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>
* Use certificate name as primary identifier instead of ID
When the certificate type is lets_encrypt, the certificate ID will change when
it's renewed, so we have to rely on the certificate name as the primary
identifier instead.
* Support running LB and cert tests in parallel
* Add state migration for Certificate resource
* Add state migration for LoadBalancer resource
* Use resource.ParallelTest for tests.
* Use a v0.12-style StateUpgrader.
* loadbalancer: Fix panic in buildLoadBalancerRequest
* Add fallback to flattenForwardingRules to prevent error state when a hardcoded UUID is used.
* Fix typo in findCertificateByName.
* Deprecate forwarding_rule.certificate_id in favor of forwarding_rule.certificate_name
* Use a v0.12-style StateUpgrader for load balancer migration.
* Handle cert ID change in CDN resource.
* Clean up structure.
* Update documentation.
Co-authored-by: Steven Normore <snormore@digitalocean.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>
* Fix sweeper.
* Sweep Kubernetes clusters.
* Sweep database clusters.
* Set defaults as the sweeper does not have access to the provider DefaultFunc
* Add warning to makefile target.
Make clear that the `name` field is modifying the hostname, which is more consistent with UI. For whatever reason I lost 15 minutes on this today trying to understand how to add a record on a subdomain. Maybe this would have cleared it up. Oftentimes "name" is more decorative/useful for other resources whereas here it is quite important to the resource itself.
* Add test using the default expiry.
* Don't ignore error when calling updateExpiredDockerCredentials.
* Set default to the new max allowed by the API.
As part of the repo transition, our docs have been
removed from terraform.io They now redirect to our
page in the registry.
e832984aa6
This leads to test failures in CI. These test can
be removed as they are no longer relevent.
HashiCorp has provided a tool for previewing how
markdown will render on the registry.
* Add Goreleaser configuration.
* Add GitHub Action for release workflow.
* Add release overview to README.
* Run tests with same version used to build the provider.
* 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>