Feature Flags
A feature flag is a temporarily introduced setting that defaults to false and that you can opt into. It exists to allow a controlled rollout of a new feature: you can enable the feature early, on your own schedule, while it is still maturing.
Every flag follows the same lifecycle:
The flag is introduced with a default of
false. The feature is available only to deployments that opt in.You opt in by setting the flag to
truein your Helm values.When the feature becomes generally available, the flag’s default flips to
true, so new and upgraded deployments get the feature without setting anything.In a later release, the flag is removed from the code altogether and the feature is simply part of the product.
Flags are top-level boolean values in the gooddata-cn chart, so you set them at the root of your gdcn-values.yaml file. A flag applies to the whole deployment, so you cannot scope it to a single organization.
Permanent configuration switches, such as deployDexIdP and the other deploy* values that select which optional components the chart installs, are not feature flags. They are ordinary Helm configuration and are documented in the Helm Chart Values Reference.
Set a Feature Flag for the Whole Deployment
Open your
gdcn-values.yamlfile for editing.Add or update the value. For example (
enableExampleFeatureFlagis a placeholder; use the real name from the release notes):enableExampleFeatureFlag: trueApply the change:
helm upgrade --namespace gooddata-cn --version <gooddata-cn-release> \ -f gdcn-values.yaml gooddata-cn gooddata/gooddata-cnReplace
<gooddata-cn-release>with the version you are moving to (if upgrading) or your current version (if only changing values).