feat: Add feast apply init container to automate registry population on pod start#6106
Merged
ntkathole merged 4 commits intofeast-dev:masterfrom Mar 15, 2026
Merged
Conversation
3d55588 to
af75ad4
Compare
franciscojavierarceo
approved these changes
Mar 14, 2026
af75ad4 to
03b9079
Compare
03b9079 to
9f56fb3
Compare
9f56fb3 to
e19bdca
Compare
58f0951 to
a13f48e
Compare
…on pod start Signed-off-by: ntkathole <[email protected]>
Signed-off-by: ntkathole <[email protected]>
Signed-off-by: ntkathole <[email protected]>
Signed-off-by: ntkathole <[email protected]>
a13f48e to
c9be7aa
Compare
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.
What this PR does / why we need it:
When deploying Feast via the Feast Operator, users must manually run
feast applyafter every CRD creation to populate the feature store registry. This is an extra
operational step that is easy to forget and creates a poor user experience.
feast-applyinit container to the Feast deployment that runsfeast applyautomatically before the main server containers start. This ensures the registry is
always populated on every pod start. The init container inherits env vars, envFrom, and volume mounts from all configured server containers (registry, online, offline) to ensure DB/store connectivity.
Users can set
spec.services.runFeastApplyOnInittofalseto disable the automatic apply behavior. The feature can also be disabled globally via the existingspec.services.disableInitContainers: truefield.Surface container failure details in CRD status when the deployment is unavailable. Instead of the generic "Deployment is not available", the controller now inspects pod init/container statuses and reports the specific failure (e.g., Init container 'feast-apply' failed with exit code 1).
Fix
_apply_objectrace condition in SqlRegistry by wrapping the insert in a savepoint and catching IntegrityError, so concurrent feast apply calls from multiple pods don't crash on duplicate key conflicts. This was done to fix intermittent failures on rest-api tests.Make
replicasfield optional in the FeatureStore CRD spec (json:"replicas,omitempty"), removing it from the required list so it defaults to 1 without requiring explicit specification.