Add feature_flags:sync to deploy initContainer (pal-e-deployments) #140
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Type
Feature
Lineage
Dependent on #130 (FeatureFlag model). Cannot be done until #130 merges and the migration + rake task exist. Cross-repo change in pal-e-deployments.
Repo
ldraney/pal-e-deploymentsUser Story
As a platform operator
I want feature flags to be registered automatically on every deploy
So that new flags appear in production without manual rake task execution
Context
Issue #130 creates the
FeatureFlagmodel andfeature_flags:syncrake task. The rake task is idempotent —find_or_create_by!creates missing flags without overwriting existingenabledstate. But it only runs if the deploy initContainer invokes it.Currently the initContainer runs
bin/rails db:prepareonly.db:prepareruns seeds on first DB creation but skips them on subsequent deploys. New flags added to the rake task would never appear in production without this change.File Targets
Files to modify:
overlays/landscaping-assistant/prod/deployment-patch.yaml— update initContainer commandFiles NOT to touch:
Acceptance Criteria
bin/rails db:preparetosh -c "bin/rails db:prepare && bin/rails feature_flags:sync"Test Expectations
FeatureFlag.countmatches rake task entries viakubectl execkubectl exec -it deploy/landscaping-assistant -n landscaping-assistant -- bin/rails runner "puts FeatureFlag.pluck(:name, :enabled)"Constraints
Checklist
Related
project-landscaping-assistant— main projectScope Review: NEEDS_REFINEMENT
Review note:
review-1368-2026-06-06Ticket scope is solid — file target verified, blocker #130 resolved, rake task confirmed idempotent, single-line change fits easily in one agent pass.
Two traceability gaps (systemic, not ticket-specific):
arch-k8s-deployarchitecture note in pal-e-docs (referenced by multiple board items)