Skip to content

feat(flagd): add openfeature flagd application example#137

Open
kriscoleman wants to merge 4 commits intomainfrom
kriscoleman/add-flagd-example
Open

feat(flagd): add openfeature flagd application example#137
kriscoleman wants to merge 4 commits intomainfrom
kriscoleman/add-flagd-example

Conversation

@kriscoleman
Copy link
Member

Summary

Adds a new applications/flagd/ example demonstrating the configmap hash rolling update pattern with OpenFeature's flagd feature flag daemon. flagd reads flag definitions from a ConfigMap-mounted JSON file, making pod restarts necessary when configurations change — an ideal use case for the checksum annotation pattern.

Changes

  • Helm chart with realistic flag definitions (fractional rollout, boolean toggles, kill-switch)
  • Makefile-driven demo with make problem and make solution flows showing before/after behavior on minikube
  • Flag evaluation API queries to show actual evaluations, sampling users to demonstrate distribution shifts
  • Pattern README update to include flagd as a second source application alongside MLflow

Testing

Run from applications/flagd/:

  • make cluster — start minikube
  • make problem — show stale evaluations without checksum annotation
  • make solution — show rolling update with checksum annotation
  • make clean — cleanup

kriscoleman and others added 4 commits March 23, 2026 00:14
…hash rolling update pattern

Adds a new applications/flagd/ example demonstrating the configmap hash rolling update pattern with OpenFeature's flagd feature flag daemon. flagd reads flag definitions from a ConfigMap-mounted JSON file, making pod restarts necessary when configurations change — an ideal use case for the checksum annotation pattern.

- Helm chart with realistic flag definitions: fractional rollout (new-checkout-flow at 10%), boolean toggle (dark-mode), kill-switch (maintenance-mode)
- Makefile-driven demo with `make problem` and `make solution` flows showing before/after behavior on minikube
- Demo queries flagd's OFREP HTTP API to display actual flag evaluations, sampling 100 users for fractional rollouts to show distribution
- Updated configmap-hash-rolling-update pattern README to include flagd as a second source application alongside MLflow

Fixes #2 (kriscoleman/platform-examples)

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Lint, template, and integration test the flagd chart on CMX k3s.
Verifies checksum annotation triggers rolling updates on config changes.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Prevents cascade failure when REPLICATED_PLATFORM_EXAMPLES_TOKEN
is unavailable (e.g. fork PRs).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Gates the helm-install-test job so it skips rather than fails on fork PRs
where REPLICATED_PLATFORM_EXAMPLES_TOKEN is not accessible.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@kriscoleman kriscoleman force-pushed the kriscoleman/add-flagd-example branch from e060917 to 299cd4f Compare March 23, 2026 04:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant