From 86b66b0dc593ae4100ebd8e6a1d786867c674a74 Mon Sep 17 00:00:00 2001 From: ribeirophillipe <134315911+ribeirophillipe@users.noreply.github.com> Date: Wed, 13 Sep 2023 03:23:33 -0700 Subject: [PATCH] FFM-9321: Perform release for feature flag (#688) * Add changelog * Update documentation --- .changelog/684.txt | 3 +++ docs/resources/platform_feature_flag.md | 4 ++-- .../resources/harness_platform_feature_flag/resource.tf | 6 +++--- 3 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 .changelog/684.txt diff --git a/.changelog/684.txt b/.changelog/684.txt new file mode 100644 index 000000000..e008080ee --- /dev/null +++ b/.changelog/684.txt @@ -0,0 +1,3 @@ +```release-note:enhancement +harness_platform_feature_flag - Add support to add targets with feature flags +``` \ No newline at end of file diff --git a/docs/resources/platform_feature_flag.md b/docs/resources/platform_feature_flag.md index dff02a976..14653fc76 100644 --- a/docs/resources/platform_feature_flag.md +++ b/docs/resources/platform_feature_flag.md @@ -112,7 +112,7 @@ resource "harness_platform_feature_flag" "mymultivariateflag" { } add_target_rules { - variation = "enabled" + variation = "Enabled" targets = ["targets1", "targets2"] } } @@ -153,7 +153,7 @@ resource "harness_platform_feature_flag" "mymultivariateflag" { add_target_groups_rules { group_name = "group_name" - variation = "enabled" + variation = "Enabled" distribution = { bucketBy = "identifier", variations = [ diff --git a/examples/resources/harness_platform_feature_flag/resource.tf b/examples/resources/harness_platform_feature_flag/resource.tf index 84451ad38..863da6c96 100644 --- a/examples/resources/harness_platform_feature_flag/resource.tf +++ b/examples/resources/harness_platform_feature_flag/resource.tf @@ -97,8 +97,8 @@ resource "harness_platform_feature_flag" "mymultivariateflag" { } add_target_rules { - variation = "enabled" - targets = ["targets1", "targets2"] + variation = "Enabled" + targets = ["target1", "targets2"] } } @@ -138,7 +138,7 @@ resource "harness_platform_feature_flag" "mymultivariateflag" { add_target_groups_rules { group_name = "group_name" - variation = "enabled" + variation = "Enabled" distribution = { variations = [ {