LaunchDarkly Feature Flags Extension
Note: These feature flag extensions are being deprecated. We will open-source these extensions soon and will update this page when the open source versions of them are available. Please contact support if you have any questions.
Precondition to control the execution of a changelog or changeset based on the state of the feature flag in LaunchDarkly.
Supported Editions
Installation
The easiest way to install this extension is with lpm
liquibase package manager.
lpm update
lpm add launchdarkly
Setup
A server-side SDK Key is required for the extension to access the LaunchDarkly API.
--launch-darkly-sdk-key=PARAM
SDK Key for LaunchDarkly
(liquibase.launchDarkly.sdkKey)
(LIQUIBASE_LAUNCH_DARKLY_SDK_KEY)
[deprecated: --launchDarklySdkKey]
Usage
To use this extension, add the launchDarklyFeatureFlag
precondition to your Changelog or Changeset with an enabledFlags
attribute. The value for enabledFlags
is either a string with one feature flag key or a comma separated string with multiple feature flag keys. All feature flags must be enabled for the precondition to pass.
Example
databaseChangeLog:
- preConditions:
- launchDarklyFeatureFlag:
enabledFlags: changelog-testing
<changeSet id="1" author="example">
<preConditions>
<ext:launchDarklyFeatureFlag enabledFlags="changelog-testing"/>
</preConditions>
...
</changeSet>