Skip to content

feat(operator): Add spec.services.initImage for init container image override - #6598

Merged
ntkathole merged 2 commits into
feast-dev:masterfrom
aniketpalu:fix/init-container-image
Jul 30, 2026
Merged

feat(operator): Add spec.services.initImage for init container image override#6598
ntkathole merged 2 commits into
feast-dev:masterfrom
aniketpalu:fix/init-container-image

Conversation

@aniketpalu

@aniketpalu aniketpalu commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

Add spec.services.initImage for init container image override.
Init containers (feast-init, feast-apply) previously only used RELATED_IMAGE_FEATURE_SERVER or the compiled-in DefaultImage, ignoring per-FeatureStore custom images. This blocked users with custom Feast images (e.g. Spark-capable) unless an admin patched the operator. Add spec.services.initImage with resolution order:
initImage → RELATED_IMAGE_FEATURE_SERVER → DefaultImage

Which issue(s) this PR fixes:

Checks

  • I've made sure the tests are passing.
  • My commits are signed off (git commit -s)
  • My PR title follows conventional commits format

Testing Strategy

  • Unit tests
  • Integration tests
  • Manual tests
  • Testing is not required for this change

Misc

@aniketpalu
aniketpalu requested a review from a team as a code owner July 9, 2026 21:28
@jyejare

jyejare commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

@aniketpalu Please resolve checks failures and rebase the PR.

@aniketpalu
aniketpalu force-pushed the fix/init-container-image branch from 2bd80e2 to 80f8b53 Compare July 29, 2026 08:38
@codecov-commenter

codecov-commenter commented Jul 29, 2026

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 46.44%. Comparing base (a9aaefc) to head (9a2483f).
⚠️ Report is 2 commits behind head on master.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #6598   +/-   ##
=======================================
  Coverage   46.43%   46.44%           
=======================================
  Files         414      414           
  Lines       50125    50134    +9     
  Branches     7172     7173    +1     
=======================================
+ Hits        23275    23284    +9     
+ Misses      25213    25212    -1     
- Partials     1637     1638    +1     
Flag Coverage Δ *Carryforward flag
go-feature-server 30.58% <ø> (ø) Carriedforward from a9aaefc
python-unit 47.74% <ø> (+0.01%) ⬆️

*This pull request uses carry forward flags. Click here to find out more.
see 1 file with indirect coverage changes


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 996c6ea...9a2483f. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@franciscojavierarceo franciscojavierarceo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This adds initImage only to the v1 API. The served/deprecated v1alpha1 FeatureStoreServices type, deepcopy output, and CRD schema are unchanged, so the same resource cannot round-trip or use the new field through that served version. The operator currently keeps both API versions in sync for new fields. Please add the field and generated artifacts for v1alpha1 (plus conversion/round-trip coverage), or explicitly document and enforce that new fields are no longer supported there.

@ntkathole ntkathole left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@ntkathole

Copy link
Copy Markdown
Member

v1alpha1 is deprecated

@ntkathole

Copy link
Copy Markdown
Member

@aniketpalu please resolve conflicts

@aniketpalu
aniketpalu force-pushed the fix/init-container-image branch from 80f8b53 to 93a2ead Compare July 30, 2026 09:51
aniketpalu and others added 2 commits July 30, 2026 18:34
…override

Init containers (feast-init, feast-apply) previously only used
RELATED_IMAGE_FEATURE_SERVER or the compiled-in DefaultImage, ignoring
per-FeatureStore custom images. This blocked users with custom Feast
images (e.g. Spark-capable) unless an admin patched the operator.
Add spec.services.initImage with resolution order:
  initImage → RELATED_IMAGE_FEATURE_SERVER → DefaultImage

Signed-off-by: Aniket Paluskar <apaluska@redhat.com>
Shift detect-secrets baseline line numbers for featurestore_types.go and
zz_generated.deepcopy.go after adding InitImage.

Signed-off-by: Aniket Paluskar <apaluska@redhat.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@ntkathole
ntkathole force-pushed the fix/init-container-image branch from 93a2ead to 9a2483f Compare July 30, 2026 13:04
@ntkathole
ntkathole merged commit ca355cb into feast-dev:master Jul 30, 2026
18 of 23 checks passed
ShumzZzZz added a commit to ShumzZzZz/feast that referenced this pull request Jul 30, 2026
Merge current master after feast-dev#6598 and resolve init container image selection as services.initImage, packaged.image, RELATED_IMAGE_FEATURE_SERVER, then DefaultImage. Preserve the upstream onlineStore.disabled defaults and regenerate operator artifacts.

Signed-off-by: Shumin <shumin.zheng@outlook.com>
ShumzZzZz added a commit to ShumzZzZz/feast that referenced this pull request Jul 31, 2026
Add spec.feastProjectDir.packaged for repositories distributed in feature server images, including staged and direct-use lifecycle modes, canonical path validation, generated CRD artifacts, documentation, and tests.

Integrate the init image override introduced by feast-dev#6598 with this precedence: services.initImage, packaged.image, RELATED_IMAGE_FEATURE_SERVER, then DefaultImage.

Signed-off-by: Shumin <shumin.zheng@outlook.com>
ShumzZzZz added a commit to ShumzZzZz/feast that referenced this pull request Jul 31, 2026
Add spec.feastProjectDir.packaged for repositories distributed in feature server images, including staged and direct-use lifecycle modes, canonical path validation, generated CRD artifacts, documentation, and tests.

Integrate the init image override introduced by feast-dev#6598 with this precedence: services.initImage, packaged.image, RELATED_IMAGE_FEATURE_SERVER, then DefaultImage.

Signed-off-by: Shumin <shumin.zheng@outlook.com>
ntkathole pushed a commit that referenced this pull request Jul 31, 2026
Add spec.feastProjectDir.packaged for repositories distributed in feature server images, including staged and direct-use lifecycle modes, canonical path validation, generated CRD artifacts, documentation, and tests.

Integrate the init image override introduced by #6598 with this precedence: services.initImage, packaged.image, RELATED_IMAGE_FEATURE_SERVER, then DefaultImage.

Signed-off-by: Shumin <shumin.zheng@outlook.com>
jyejare pushed a commit to opendatahub-io/feast that referenced this pull request Aug 5, 2026
…override (feast-dev#6598)

* feat(operator): add spec.services.initImage for init container image override
Init containers (feast-init, feast-apply) previously only used
RELATED_IMAGE_FEATURE_SERVER or the compiled-in DefaultImage, ignoring
per-FeatureStore custom images. This blocked users with custom Feast
images (e.g. Spark-capable) unless an admin patched the operator.
Add spec.services.initImage with resolution order:
  initImage → RELATED_IMAGE_FEATURE_SERVER → DefaultImage

Signed-off-by: Aniket Paluskar <apaluska@redhat.com>

* chore(operator): update secrets baseline after initImage API change

Shift detect-secrets baseline line numbers for featurestore_types.go and
zz_generated.deepcopy.go after adding InitImage.

Signed-off-by: Aniket Paluskar <apaluska@redhat.com>
Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Signed-off-by: Aniket Paluskar <apaluska@redhat.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
jyejare pushed a commit to opendatahub-io/feast that referenced this pull request Aug 5, 2026
Add spec.feastProjectDir.packaged for repositories distributed in feature server images, including staged and direct-use lifecycle modes, canonical path validation, generated CRD artifacts, documentation, and tests.

Integrate the init image override introduced by feast-dev#6598 with this precedence: services.initImage, packaged.image, RELATED_IMAGE_FEATURE_SERVER, then DefaultImage.

Signed-off-by: Shumin <shumin.zheng@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants