Repository navigation
feat: expose flagd sync-server keepalive settings on FeatureFlagSource - #852
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (7)
🚧 Files skipped from review as they are similar to previous changes (3)
📝 WalkthroughWalkthrough
ChangesFeatureFlag keepalive configuration
Estimated code review effort: 2 (Simple) | ~10 minutes Sequence Diagram(s)sequenceDiagram
participant FeatureFlagSourceSpec
participant ToEnvVars
participant flagdSidecar
FeatureFlagSourceSpec->>ToEnvVars: configured keepalive fields
ToEnvVars->>flagdSidecar: FLAGD_KEEP_ALIVE_* environment variables
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #852 +/- ##
===========================================
- Coverage 86.51% 69.63% -16.89%
===========================================
Files 19 31 +12
Lines 1587 2022 +435
===========================================
+ Hits 1373 1408 +35
- Misses 173 561 +388
- Partials 41 53 +12
... and 24 files with indirect coverage changes
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
Signed-off-by: Jason Benedicic <48251655+jabenedicic@users.noreply.github.com>
Signed-off-by: Jason Benedicic <48251655+jabenedicic@users.noreply.github.com>
Signed-off-by: Jason Benedicic <48251655+jabenedicic@users.noreply.github.com>
Signed-off-by: Jason Benedicic <48251655+jabenedicic@users.noreply.github.com>
7052be2 to
b6dc790
Compare
What
Adds two opt-in fields to
FeatureFlagSourcethat surface flagd's new sync-server gRPC keepalive-enforcement settings, so keepalive tolerance for operator-managed flagd (injected sidecar and standaloneFlagd) can be tuned from the CRD instead of per-container env/args.Closes #851.
keepAliveMinTimeFLAGD_KEEP_ALIVE_MIN_TIME--keep-alive-min-timekeepAlivePermitWithoutStreamFLAGD_KEEP_ALIVE_PERMIT_WITHOUT_STREAM--keep-alive-permit-without-streamThe corresponding flagd flags are proposed in open-feature/flagd#1999 (issue #1998). That change and this one are best considered together, but can land in either order — see below.
Design notes
+kubebuilder:default. The env var is emitted only when the field is set; unset means flagd uses its own default, so there is no behaviour change for existingFeatureFlagSources.FeatureFlagSourceSpec.ToEnvVars()rather than container args. A flagd that predates these flags silently ignores unknownFLAGD_*env vars (whereas an unknown CLI flag would hard-error). So these fields are inert against the current flagd and this change has no issues if merged before the flagd change — it is safe to land in either order.Flagd(which references aFeatureFlagSource) pick this up through the shared injection path.Test plan
make unit-test— new tests forMerge()(override/nil) andToEnvVars()(set / unset / mixed / explicitfalse).make generate manifests generate-crdocs); reference doc updated.FLAGD_KEEP_ALIVE_MIN_TIME/FLAGD_KEEP_ALIVE_PERMIT_WITHOUT_STREAMset — the unknown env vars are ignored, no crash, output identical to baseline.