diff --git a/.github/workflows/generate_integration_config_pr.yml b/.github/workflows/generate_integration_config_pr.yml index c94f185d..30c18db0 100644 --- a/.github/workflows/generate_integration_config_pr.yml +++ b/.github/workflows/generate_integration_config_pr.yml @@ -31,5 +31,10 @@ jobs: commit-message: "[bot] Regenerate integration configs" title: "[bot] Regenerate integration configs" body: | - This PR regenerates `launchdarkly/audit_log_subscription_configs_generated.go` based on recent changes to the [integrations manifest endpoint](https://app.launchdarkly.com/api/v2/integration-manifests). + This PR regenerates `launchdarkly/integration_configs_generated.go` based on recent changes to the [integrations manifest endpoint](https://app.launchdarkly.com/api/v2/integration-manifests). + + The changes were made by running: + ```sh + make generate + ``` labels: bot diff --git a/CODEOWNERS b/CODEOWNERS index 4a510898..1bc98b78 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -1,3 +1,3 @@ -* @launchdarkly/team-app-platform-product +* @launchdarkly/team-release-backend /docs/ @launchdarkly/team-docs diff --git a/GNUmakefile b/GNUmakefile index f79d6c41..c8b9ac3f 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -44,7 +44,8 @@ install-codegen: cd scripts/codegen && go install && cd ../.. generate: install-codegen - go generate ./... + go generate ./launchdarkly/... + go generate . test-compile: @if [ "$(TEST)" = "./..." ]; then \ diff --git a/docs/data-sources/audit_log_subscription.md b/docs/data-sources/audit_log_subscription.md index eac9873c..77355510 100644 --- a/docs/data-sources/audit_log_subscription.md +++ b/docs/data-sources/audit_log_subscription.md @@ -28,7 +28,7 @@ data "launchdarkly_audit_log_subscription" "test" { ### Required - `id` (String) The audit log subscription ID. -- `integration_key` (String) The integration key. Supported integration keys are `chronosphere`, `cloudtrail`, `datadog`, `dynatrace`, `elastic`, `grafana`, `honeycomb`, `logdna`, `msteams`, `new-relic-apm`, `signalfx`, `slack`, and `splunk`. +- `integration_key` (String) The integration key. Supported integration keys are `chronosphere`, `cloudtrail`, `datadog`, `dynatrace`, `elastic`, `grafana`, `honeycomb`, `last9`, `logdna`, `msteams`, `new-relic-apm`, `signalfx`, `slack`, and `splunk`. ### Read-Only diff --git a/docs/resources/audit_log_subscription.md b/docs/resources/audit_log_subscription.md index 682e0fc6..591e25dc 100644 --- a/docs/resources/audit_log_subscription.md +++ b/docs/resources/audit_log_subscription.md @@ -41,7 +41,7 @@ resource "launchdarkly_audit_log_subscription" "example" { ### Required - `config` (Map of String) The set of configuration fields corresponding to the value defined for `integration_key`. Refer to the `formVariables` field in the corresponding `integrations//manifest.json` file in [this repo](https://github.com/launchdarkly/integration-framework/tree/master/integrations) for a full list of fields for the integration you wish to configure. **IMPORTANT**: Please note that Terraform will only accept these in snake case, regardless of the case shown in the manifest. -- `integration_key` (String) The integration key. Supported integration keys are `chronosphere`, `cloudtrail`, `datadog`, `dynatrace`, `elastic`, `grafana`, `honeycomb`, `logdna`, `msteams`, `new-relic-apm`, `signalfx`, `slack`, and `splunk`. A change in this field will force the destruction of the existing resource and the creation of a new one. +- `integration_key` (String) The integration key. Supported integration keys are `chronosphere`, `cloudtrail`, `datadog`, `dynatrace`, `elastic`, `grafana`, `honeycomb`, `last9`, `logdna`, `msteams`, `new-relic-apm`, `signalfx`, `slack`, and `splunk`. A change in this field will force the destruction of the existing resource and the creation of a new one. - `name` (String) A human-friendly name for your audit log subscription viewable from within the LaunchDarkly Integrations page. - `on` (Boolean) Whether or not you want your subscription enabled, i.e. to actively send events. - `statements` (Block List, Min: 1) A block representing the resources to which you wish to subscribe. (see [below for nested schema](#nestedblock--statements)) diff --git a/launchdarkly/integration_configs_generated.go b/launchdarkly/integration_configs_generated.go index 699d2213..836ee2e0 100644 --- a/launchdarkly/integration_configs_generated.go +++ b/launchdarkly/integration_configs_generated.go @@ -170,6 +170,32 @@ var SUBSCRIPTION_CONFIGURATION_FIELDS = map[string]IntegrationConfig{ Type: "string", }, }, + "last9": { + "apiToken": { + AllowedValues: []string{}, + DefaultValue: nil, + Description: "Enter Last9 API token. This token must have the `write` access to the Last9 API.", + IsOptional: false, + IsSecret: true, + Type: "string", + }, + "endpointUrl": { + AllowedValues: []string{}, + DefaultValue: nil, + Description: "Enter your Last9 api base url. Do not include a trailing \"/\".", + IsOptional: false, + IsSecret: false, + Type: "uri", + }, + "last9": { + AllowedValues: []string{}, + DefaultValue: "", + Description: "If provided, all feature flag events matching the policy filter will be associated with Last9 entities with the same tag.", + IsOptional: true, + IsSecret: false, + Type: "string", + }, + }, "logdna": { "ingestionKey": { AllowedValues: []string{}, diff --git a/scripts/codegen/cmd/root.go b/scripts/codegen/cmd/root.go index f36bc247..a88d5536 100644 --- a/scripts/codegen/cmd/root.go +++ b/scripts/codegen/cmd/root.go @@ -2,6 +2,7 @@ package cmd import ( "bytes" + "fmt" "os" "github.com/pkg/errors" @@ -25,6 +26,7 @@ var rootCmd = &cobra.Command{ `, RunE: func(cmd *cobra.Command, args []string) error { + fmt.Println("Generating LaunchDarkly integration code from manifests API...") if ACCESS_TOKEN == "" { return errors.New("LAUNCHDARKLY_ACCESS_TOKEN not set") } @@ -41,7 +43,9 @@ var rootCmd = &cobra.Command{ if err != nil { panic(err) } - return err + + fmt.Println("Done generating code.") + return nil }, }