Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prepare 2.2.0 release #75

Merged
merged 23 commits into from
Dec 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
7f0ed0f
pull from public
sloloris Aug 2, 2021
d3da275
Merge branch 'master' of github.com:launchdarkly/terraform-provider-l…
sloloris Aug 2, 2021
be20145
Update CHANGELOG.md
sloloris Aug 3, 2021
b3dc2ca
Imiller/ch117193/rename flag_fallthrough to fallthrough & user_target…
sloloris Aug 5, 2021
6922e79
Imiller/ch117375/GitHub issue empty string variation (#135)
sloloris Aug 16, 2021
ff8b35f
Merge branch 'master' of github.com:launchdarkly/terraform-provider-l…
Aug 25, 2021
b85f956
pull from public (#144)
Aug 25, 2021
61c544d
Fix duplicate text in CHANGELOG.md
Aug 25, 2021
84074c7
Fix duplicate text in CHANGELOG
Aug 26, 2021
361e8c2
V2 main (#128)
sloloris Aug 31, 2021
626fbef
Merge branch 'master' of github.com:launchdarkly/terraform-provider-l…
sloloris Aug 31, 2021
2762d14
Fix import of launchdarkly_project nested environments (#153)
ldhenry Sep 15, 2021
966aa6d
update doc (#154)
sloloris Sep 20, 2021
a866315
fix merge conflict in changelog
sloloris Sep 20, 2021
fe9668d
Imiller/sc 119920/add boolean archive attribute to launchdarkly (#155)
sloloris Sep 27, 2021
a298a44
Update index of docs with recommended version (#156)
ldhenry Sep 30, 2021
358b532
Imiller/sc 123568/add approval settings to environment resource (#157)
sloloris Oct 8, 2021
faeb9dd
merge changelog
sloloris Oct 8, 2021
5ee5b57
Imiller/sc 126337/make can apply declined changes default to (#158)
sloloris Oct 11, 2021
2a6511e
fix merge conflict
sloloris Oct 11, 2021
9b2a288
clarify rollout weights (#159)
sloloris Oct 29, 2021
aabe026
Upgrade Terraform provider to use api-client-go 7 (#160)
sloloris Dec 23, 2021
f0b2c60
2.2.0
monsagri Dec 23, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
## [2.2.0] (December 23, 2021)

ENHANCEMENTS:

- Upgraded the LaunchDarkly API client to version 7.
- Flag resource creation respects project level SDK availability defaults.

FEATURES:

- Added `client_side_availability` block to the `launchdarkly_feature_flag` resource to allow setting whether this flag should be made available to the client-side JavaScript SDK using the client-side ID, mobile key, or both.

NOTES:

- The `launchdarkly_feature_flag` resource's argument `include_in_snippet` has been deprecated in favor of `client_side_availability`. Please update your config to use `client_side_availability` in order to maintain compatibility with future versions.

## [2.1.1] (October 11, 2021)

BUG FIXES:
Expand Down
35 changes: 30 additions & 5 deletions examples/v2/feature_flags/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,19 @@ Terraform will perform the following actions:
+ resource "launchdarkly_feature_flag" "boolean_flag" {
+ description = "An example boolean feature flag that can be turned either on or off"
+ id = (known after apply)
+ include_in_snippet = false
+ include_in_snippet = (known after apply)
+ key = "boolean-flag"
+ maintainer_id = (known after apply)
+ name = "Bool feature flag"
+ project_key = "tf-flag-examples"
+ temporary = false
+ variation_type = "boolean"

+ client_side_availability {
+ using_environment_id = (known after apply)
+ using_mobile_key = (known after apply)
}

+ defaults {
+ off_variation = (known after apply)
+ on_variation = (known after apply)
Expand All @@ -49,7 +54,7 @@ Terraform will perform the following actions:
+ resource "launchdarkly_feature_flag" "json_flag" {
+ description = "An example of a multivariate feature flag with JSON variations"
+ id = (known after apply)
+ include_in_snippet = false
+ include_in_snippet = (known after apply)
+ key = "json-flag"
+ maintainer_id = (known after apply)
+ name = "JSON-based feature flag"
Expand All @@ -60,6 +65,11 @@ Terraform will perform the following actions:
+ temporary = false
+ variation_type = "json"

+ client_side_availability {
+ using_environment_id = (known after apply)
+ using_mobile_key = (known after apply)
}

+ defaults {
+ off_variation = (known after apply)
+ on_variation = (known after apply)
Expand Down Expand Up @@ -88,7 +98,7 @@ Terraform will perform the following actions:
+ resource "launchdarkly_feature_flag" "number_flag" {
+ description = "An example of a multivariate feature flag with numeric variations"
+ id = (known after apply)
+ include_in_snippet = false
+ include_in_snippet = (known after apply)
+ key = "number-flag"
+ maintainer_id = (known after apply)
+ name = "Number value-based feature flag"
Expand All @@ -99,6 +109,11 @@ Terraform will perform the following actions:
+ temporary = false
+ variation_type = "number"

+ client_side_availability {
+ using_environment_id = (known after apply)
+ using_mobile_key = (known after apply)
}

+ defaults {
+ off_variation = (known after apply)
+ on_variation = (known after apply)
Expand All @@ -122,7 +137,7 @@ Terraform will perform the following actions:
+ resource "launchdarkly_feature_flag" "string_flag" {
+ description = "An example of a multivariate feature flag with string variations"
+ id = (known after apply)
+ include_in_snippet = false
+ include_in_snippet = (known after apply)
+ key = "string-flag"
+ maintainer_id = (known after apply)
+ name = "String-based feature flag"
Expand All @@ -133,6 +148,11 @@ Terraform will perform the following actions:
+ temporary = false
+ variation_type = "string"

+ client_side_availability {
+ using_environment_id = (known after apply)
+ using_mobile_key = (known after apply)
}

+ defaults {
+ off_variation = (known after apply)
+ on_variation = (known after apply)
Expand Down Expand Up @@ -246,13 +266,18 @@ Terraform will perform the following actions:
# launchdarkly_project.tf_flag_examples will be created
+ resource "launchdarkly_project" "tf_flag_examples" {
+ id = (known after apply)
+ include_in_snippet = false
+ include_in_snippet = (known after apply)
+ key = "tf-flag-examples"
+ name = "Terraform Project for Flag Examples"
+ tags = [
+ "terraform-managed",
]

+ client_side_availability {
+ using_environment_id = (known after apply)
+ using_mobile_key = (known after apply)
}

+ environments {
+ api_key = (sensitive value)
+ client_side_id = (sensitive value)
Expand Down
26 changes: 23 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,28 @@ module github.com/launchdarkly/terraform-provider-launchdarkly
go 1.16

require (
github.com/antihax/optional v1.0.0
github.com/hashicorp/terraform-plugin-sdk/v2 v2.7.0
github.com/launchdarkly/api-client-go v5.3.0+incompatible
github.com/agext/levenshtein v1.2.3 // indirect
github.com/fatih/color v1.13.0 // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 // indirect
github.com/hashicorp/go-hclog v1.0.0 // indirect
github.com/hashicorp/go-plugin v1.4.3 // indirect
github.com/hashicorp/hcl/v2 v2.11.1 // indirect
github.com/hashicorp/terraform-plugin-sdk/v2 v2.10.0
github.com/hashicorp/terraform-registry-address v0.0.0-20210816115301-cb2034eba045 // indirect
github.com/hashicorp/yamux v0.0.0-20211028200310-0bc27b27de87 // indirect
github.com/launchdarkly/api-client-go/v7 v7.0.0
github.com/mattn/go-colorable v0.1.12 // indirect
github.com/mitchellh/go-wordwrap v1.0.1 // indirect
github.com/mitchellh/mapstructure v1.4.3 // indirect
github.com/oklog/run v1.1.0 // indirect
github.com/stretchr/testify v1.7.0
github.com/zclconf/go-cty v1.10.0 // indirect
golang.org/x/net v0.0.0-20211208012354-db4efeb81f4b // indirect
golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8 // indirect
golang.org/x/sys v0.0.0-20211205182925-97ca703d548d // indirect
golang.org/x/text v0.3.7 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20211208223120-3a66f561d7aa // indirect
google.golang.org/grpc v1.42.0 // indirect
)
Loading