The FeatureFlagSource supports multiple providers to fetch feature flag configurations. You define these in the spec.sources list.
Supported Providers:
kubernetes: Uses the FeatureFlag custom resource. The source field should be in the format namespace/custom_resource_name.flagd-proxy: An alternative to direct FeatureFlag access, useful for reducing Kubernetes API load or restricting permissions.file: Mounts FeatureFlag custom resources as volumes to the sidecar. The source refers to the file path.http: Fetches flags from an HTTP endpoint. Supports an optional httpSyncBearerToken and an interval (in seconds).grpc: Connects via gRPC. Supports certPath, tls (boolean), providerID, and selector for filtering.- Cloud Blob Storage (
azblob, gcs, s3): Uses Go CDK to access cloud storage.
Note on Cloud Credentials: The operator automatically forwards environment variables with specific prefixes to the sidecar without applying the standard envVarPrefix:
azblob: AZURE_STORAGE_*gcs: GOOGLE_*s3: AWS_*
# HTTP Example
sources:
- source: http://my-flag-source.json
provider: http
httpSyncBearerToken: token
interval: 5
# gRPC Example
sources:
- source: my-flag-source:8080
provider: grpc
certPath: /certs/ca.cert
tls: true
providerID: flagd-weatherapp-sidecar
selector: 'source=database,app=weatherapp'
# Azure Blob Example
sources:
- source: azblob://my-bucket/test.json
provider: azblob
envVars:
- name: AZURE_STORAGE_ACCOUNT
value: <account_name>
- name: AZURE_STORAGE_SAS_TOKEN
value: <SAS token>