Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 920 Bytes

feature_flag_configuration.md

File metadata and controls

28 lines (23 loc) · 920 Bytes

Feature Flag Configuration

The FeatureFlagConfiguration version v1alpha2 CRD defines a CR with the following example structure:

apiVersion: core.openfeature.dev/v1alpha2
kind: FeatureFlagConfiguration
metadata:
  name: featureflagconfiguration-sample
spec:
  featureFlagSpec:
    flags:
      foo:
        state: "ENABLED"
        variants:
          bar: "BAR"
          baz: "BAZ"
        defaultVariant: "bar"

In the example above, we have defined a String type feature flag named foo and it is in the ENABLED state. It has variants of bar and baz, referring to respected values of BAR and BAZ. The default variant is set tobar.

featureFlagSpec

The featureFlagSpec is an object representing the flag configurations themselves. The documentation for this object can be found here.