feat(flagd): add openfeature flagd application example#115
Draft
kriscoleman wants to merge 3 commits intoreplicatedhq:mainfrom
Draft
feat(flagd): add openfeature flagd application example#115kriscoleman wants to merge 3 commits intoreplicatedhq:mainfrom
kriscoleman wants to merge 3 commits intoreplicatedhq:mainfrom
Conversation
…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>
aa07dc5 to
9a7b327
Compare
Member
Author
|
I should add replicated CI/CD here like we did in other examples |
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
make problemandmake solutionflows showing before/after behavior on minikubeTesting
Run from
applications/flagd/:make cluster— start minikubemake problem— show stale evaluations without checksum annotationmake solution— show rolling update with checksum annotationmake clean— cleanup