Skip to content

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

Draft
kriscoleman wants to merge 3 commits intoreplicatedhq:mainfrom
kriscoleman:kriscoleman/add-flagd-example
Draft

feat(flagd): add openfeature flagd application example#115
kriscoleman wants to merge 3 commits intoreplicatedhq:mainfrom
kriscoleman:kriscoleman/add-flagd-example

Conversation

@kriscoleman
Copy link
Member

@kriscoleman kriscoleman commented Mar 18, 2026

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 kriscoleman marked this pull request as draft March 18, 2026 03:43
…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>
@kriscoleman kriscoleman force-pushed the kriscoleman/add-flagd-example branch from aa07dc5 to 9a7b327 Compare March 18, 2026 04:14
@kriscoleman
Copy link
Member Author

I should add replicated CI/CD here like we did in other examples

kriscoleman and others added 2 commits March 19, 2026 16:48
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>
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