diff --git a/docs/resources/cluster.md b/docs/resources/cluster.md index c1ecf97..1c18f97 100644 --- a/docs/resources/cluster.md +++ b/docs/resources/cluster.md @@ -17,6 +17,7 @@ A representation of a cluster you can deploy to. ### Required +- `metadata` (String) Arbitrary JSON metadata to store user-specific state of this cluster (e.g. IAM roles for add-ons). - `name` (String) Human-readable name of this cluster, that also translates to cloud resource name. ### Optional diff --git a/example/gcp/main.tf b/example/gcp/main.tf index 7ffae10..fbad407 100644 --- a/example/gcp/main.tf +++ b/example/gcp/main.tf @@ -28,6 +28,20 @@ resource "plural_cluster" "gcp_workload_cluster" { tags = { "managed-by" = "terraform-provider-plural" } - + metadata = jsonencode({ + test1 = "string" + test2 = false + test3 = jsonencode({ + abc = false + }) + }) +# Alternative method: +# metadata = <