From b5d15b4fbd8d046da9ce9aff65a661ed436788c2 Mon Sep 17 00:00:00 2001 From: Cian Johnston Date: Fri, 24 May 2024 13:37:39 +0000 Subject: [PATCH] chore: make gen to add missing docs --- docs/data-sources/workspace_tags.md | 24 +++++++++++++++++++ docs/resources/metadata.md | 7 ++++++ examples/resources/coder_metadata/resource.tf | 7 ++++++ 3 files changed, 38 insertions(+) create mode 100644 docs/data-sources/workspace_tags.md diff --git a/docs/data-sources/workspace_tags.md b/docs/data-sources/workspace_tags.md new file mode 100644 index 00000000..62f72b0f --- /dev/null +++ b/docs/data-sources/workspace_tags.md @@ -0,0 +1,24 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "coder_workspace_tags Data Source - terraform-provider-coder" +subcategory: "" +description: |- + Use this data source to configure workspace tags to select provisioners. +--- + +# coder_workspace_tags (Data Source) + +Use this data source to configure workspace tags to select provisioners. + + + + +## Schema + +### Optional + +- `tags` (Map of String) Key-value map with workspace tags + +### Read-Only + +- `id` (String) The ID of this resource. diff --git a/docs/resources/metadata.md b/docs/resources/metadata.md index 2d67e526..9d6ff92f 100644 --- a/docs/resources/metadata.md +++ b/docs/resources/metadata.md @@ -18,6 +18,13 @@ data "coder_workspace" "me" { resource "kubernetes_pod" "dev" { count = data.coder_workspace.me.start_count + metadata { + name = "k8s_example" + namespace = "example" + } + spec { + # Draw the rest of the pod! + } } resource "tls_private_key" "example_key_pair" { diff --git a/examples/resources/coder_metadata/resource.tf b/examples/resources/coder_metadata/resource.tf index c4facfbb..0491ce57 100644 --- a/examples/resources/coder_metadata/resource.tf +++ b/examples/resources/coder_metadata/resource.tf @@ -3,6 +3,13 @@ data "coder_workspace" "me" { resource "kubernetes_pod" "dev" { count = data.coder_workspace.me.start_count + metadata { + name = "k8s_example" + namespace = "example" + } + spec { + # Draw the rest of the pod! + } } resource "tls_private_key" "example_key_pair" {