diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6449db43..c8dd09ec 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -71,4 +71,4 @@ jobs: env: TF_ACC: "1" run: | - go test -v -cover ./internal/provider/ + go test -v -cover ./provider/ diff --git a/docs/resources/app.md b/docs/resources/app.md index cddc1fe8..a90e77c5 100644 --- a/docs/resources/app.md +++ b/docs/resources/app.md @@ -63,7 +63,7 @@ resource "coder_app" "intellij" { ### Optional - `command` (String) A command to run in a terminal opening this app. In the web, this will open in a new tab. In the CLI, this will SSH and execute the command. Either "command" or "url" may be specified, but not both. -- `healthcheck` (Block Set) HTTP health checking to determine the application readiness. (see [below for nested schema](#nestedblock--healthcheck)) +- `healthcheck` (Block Set, Max: 1) HTTP health checking to determine the application readiness. (see [below for nested schema](#nestedblock--healthcheck)) - `icon` (String) A URL to an icon that will display in the dashboard. View built-in icons here: https://github.com/coder/coder/tree/main/site/static/icons. Use a built-in icon with `data.coder_workspace.me.access_url + "/icons/"`. - `name` (String) A display name to identify the app. - `relative_path` (Boolean) Specifies whether the URL will be accessed via a relative path or wildcard. Use if wildcard routing is unavailable. diff --git a/main.go b/main.go index 9fa45d9e..000436a3 100644 --- a/main.go +++ b/main.go @@ -3,7 +3,7 @@ package main import ( "github.com/hashicorp/terraform-plugin-sdk/v2/plugin" - "github.com/coder/terraform-provider-coder/internal/provider" + "github.com/coder/terraform-provider-coder/provider" ) // Run the docs generation tool, check its repository for more information on how it works and how docs diff --git a/internal/provider/agent.go b/provider/agent.go similarity index 100% rename from internal/provider/agent.go rename to provider/agent.go diff --git a/internal/provider/agent_test.go b/provider/agent_test.go similarity index 97% rename from internal/provider/agent_test.go rename to provider/agent_test.go index 79dc8790..8becbc44 100644 --- a/internal/provider/agent_test.go +++ b/provider/agent_test.go @@ -3,7 +3,7 @@ package provider_test import ( "testing" - "github.com/coder/terraform-provider-coder/internal/provider" + "github.com/coder/terraform-provider-coder/provider" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" diff --git a/internal/provider/app.go b/provider/app.go similarity index 100% rename from internal/provider/app.go rename to provider/app.go diff --git a/internal/provider/app_test.go b/provider/app_test.go similarity index 96% rename from internal/provider/app_test.go rename to provider/app_test.go index d56cf556..6513dcc4 100644 --- a/internal/provider/app_test.go +++ b/provider/app_test.go @@ -3,7 +3,7 @@ package provider_test import ( "testing" - "github.com/coder/terraform-provider-coder/internal/provider" + "github.com/coder/terraform-provider-coder/provider" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" diff --git a/internal/provider/metadata.go b/provider/metadata.go similarity index 100% rename from internal/provider/metadata.go rename to provider/metadata.go diff --git a/internal/provider/metadata_test.go b/provider/metadata_test.go similarity index 97% rename from internal/provider/metadata_test.go rename to provider/metadata_test.go index dbacf928..45cb8068 100644 --- a/internal/provider/metadata_test.go +++ b/provider/metadata_test.go @@ -4,7 +4,7 @@ import ( "regexp" "testing" - "github.com/coder/terraform-provider-coder/internal/provider" + "github.com/coder/terraform-provider-coder/provider" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" diff --git a/internal/provider/provider.go b/provider/provider.go similarity index 100% rename from internal/provider/provider.go rename to provider/provider.go diff --git a/internal/provider/provider_test.go b/provider/provider_test.go similarity index 78% rename from internal/provider/provider_test.go rename to provider/provider_test.go index faa7d871..cd00f9a4 100644 --- a/internal/provider/provider_test.go +++ b/provider/provider_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/coder/terraform-provider-coder/internal/provider" + "github.com/coder/terraform-provider-coder/provider" ) func TestProvider(t *testing.T) { diff --git a/internal/provider/provisioner.go b/provider/provisioner.go similarity index 100% rename from internal/provider/provisioner.go rename to provider/provisioner.go diff --git a/internal/provider/provisioner_test.go b/provider/provisioner_test.go similarity index 93% rename from internal/provider/provisioner_test.go rename to provider/provisioner_test.go index 7b64e332..777006f7 100644 --- a/internal/provider/provisioner_test.go +++ b/provider/provisioner_test.go @@ -4,7 +4,7 @@ import ( "runtime" "testing" - "github.com/coder/terraform-provider-coder/internal/provider" + "github.com/coder/terraform-provider-coder/provider" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" diff --git a/internal/provider/workspace.go b/provider/workspace.go similarity index 100% rename from internal/provider/workspace.go rename to provider/workspace.go diff --git a/internal/provider/workspace_test.go b/provider/workspace_test.go similarity index 97% rename from internal/provider/workspace_test.go rename to provider/workspace_test.go index 4ea3a3e6..5473f20f 100644 --- a/internal/provider/workspace_test.go +++ b/provider/workspace_test.go @@ -3,7 +3,7 @@ package provider_test import ( "testing" - "github.com/coder/terraform-provider-coder/internal/provider" + "github.com/coder/terraform-provider-coder/provider" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/terraform"