diff --git a/Makefile b/Makefile index d47444f..42c54e0 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ HOSTNAME=github.com NAMESPACE=komodorio NAME=komodor BINARY=terraform-provider-${NAME} -VERSION=1.0.10 +VERSION=1.0.11 OS_ARCH?=darwin_amd64 default: install @@ -23,4 +23,7 @@ test: echo $(TEST) | xargs -t -n4 go test $(TESTARGS) -timeout=30s -parallel=4 testacc: - TF_ACC=1 go test $(TEST) -v $(TESTARGS) -timeout 120m \ No newline at end of file + TF_ACC=1 go test $(TEST) -v $(TESTARGS) -timeout 120m + +generate-docs: + go run github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs diff --git a/docs/data-sources/kubernetes.md b/docs/data-sources/kubernetes.md index 2c820dd..bf43bbc 100644 --- a/docs/data-sources/kubernetes.md +++ b/docs/data-sources/kubernetes.md @@ -22,5 +22,3 @@ description: |- ### Read-Only - `id` (String) The id and api key of the cluster integration - - diff --git a/docs/data-sources/policy.md b/docs/data-sources/policy.md index cba0314..0b967c3 100644 --- a/docs/data-sources/policy.md +++ b/docs/data-sources/policy.md @@ -25,5 +25,3 @@ description: |- - `id` (String) The id of the policy - `statements` (String) The policy's statements - `updated_at` (String) The date and time of when the Policy was last updated - - diff --git a/docs/data-sources/role.md b/docs/data-sources/role.md index ef38aaf..0c3752e 100644 --- a/docs/data-sources/role.md +++ b/docs/data-sources/role.md @@ -25,5 +25,3 @@ description: |- - `id` (String) The id of the role - `is_default` (Boolean) Is default role - `updated_at` (String) The date and time of when the Role was last updated - - diff --git a/docs/index.md b/docs/index.md index 9f61ed0..322abff 100644 --- a/docs/index.md +++ b/docs/index.md @@ -23,7 +23,6 @@ variable "komodor_api_key" { ``` - ## Schema ### Optional diff --git a/docs/resources/action.md b/docs/resources/action.md index b3e7c24..c8d5e00 100644 --- a/docs/resources/action.md +++ b/docs/resources/action.md @@ -26,5 +26,3 @@ description: |- - `created_at` (String) - `id` (String) The ID of this resource. - `updated_at` (String) - - diff --git a/docs/resources/kubernetes.md b/docs/resources/kubernetes.md index e64f083..1eeedca 100644 --- a/docs/resources/kubernetes.md +++ b/docs/resources/kubernetes.md @@ -22,5 +22,3 @@ description: |- ### Read-Only - `id` (String) The id and api key of the cluster integration - - diff --git a/docs/resources/monitor.md b/docs/resources/monitor.md index 0dba1d8..16e79d2 100644 --- a/docs/resources/monitor.md +++ b/docs/resources/monitor.md @@ -32,5 +32,3 @@ description: |- ### Read-Only - `id` (String) The ID of this resource. - - diff --git a/docs/resources/policy.md b/docs/resources/policy.md index a3cf6ce..36c2252 100644 --- a/docs/resources/policy.md +++ b/docs/resources/policy.md @@ -20,10 +20,13 @@ description: |- - `name` (String) - `statements` (String) +### Optional + +- `tags` (Map of String) +- `type` (String) + ### Read-Only - `created_at` (String) - `id` (String) The ID of this resource. - `updated_at` (String) - - diff --git a/docs/resources/policy_role_attachment.md b/docs/resources/policy_role_attachment.md index 787bb34..777fbee 100644 --- a/docs/resources/policy_role_attachment.md +++ b/docs/resources/policy_role_attachment.md @@ -24,5 +24,3 @@ description: |- ### Read-Only - `id` (String) The ID of this resource. - - diff --git a/docs/resources/role.md b/docs/resources/role.md index 308c30f..6c878bd 100644 --- a/docs/resources/role.md +++ b/docs/resources/role.md @@ -25,5 +25,3 @@ description: |- - `id` (String) The ID of this resource. - `is_default` (Boolean) - `updated_at` (String) - - diff --git a/examples/policy_dynamic_tags.tf b/examples/policy_dynamic_tags.tf new file mode 100644 index 0000000..d52c3c3 --- /dev/null +++ b/examples/policy_dynamic_tags.tf @@ -0,0 +1,19 @@ +# This example shows how to create a policy with dynamic tags. +# Dynamic tags feature is not available by default. +# When the feature is disabled, applying this policy will fail with error: `400 Bad Request` + +resource "komodor_policy" "komo-example-dynamic-tags-policy" { + name = "komo-example-dynamic-tags-policy" + type = "dynamic_tag" + tags = { + "team": "super-heroes" + } + statements = <