Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for JSON string in defaultImage field for overriding pipeline specific images in the mappings #293

Merged
merged 12 commits into from
Jan 28, 2025

Conversation

RUFFY-369
Copy link
Collaborator

Towards closing 'livepeer/bounties/#69

This PR adds support for processing JSON string in defaultImageand specifies pipeline-specific images as key-value pairs with their mappings being updated to override containerImage.

go-livepeer PR which it supports is #3284

cc @rickstaa

@RUFFY-369 RUFFY-369 requested a review from rickstaa as a code owner November 28, 2024 16:07
worker/docker.go Outdated Show resolved Hide resolved
@rickstaa rickstaa force-pushed the update/ai-runner-image-flag-support branch from 3e48a78 to 57b5ef7 Compare January 22, 2025 21:02
This commit expands the test coverage to ensure more robust behavior and
refactors the `overridePipelineImages` function to improve error
handling and readability.
@rickstaa rickstaa force-pushed the update/ai-runner-image-flag-support branch from 57b5ef7 to aca9cc8 Compare January 22, 2025 21:04
Copy link
Member

@victorges victorges left a comment

Choose a reason for hiding this comment

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

LGTM as it works, but I suggested some code changes. I'll open a separate branch to share with you to facilitate.

worker/docker.go Outdated Show resolved Hide resolved
worker/docker.go Outdated Show resolved Hide resolved
@victorges
Copy link
Member

@rickstaa here's a branch with my suggested changes: aca9cc8...vg/update/ai-runner-image-flag-support

Keep in mind I only updated docker.go, but not the tests. If you agree with the change would you mind updating the tests as well?

@rickstaa
Copy link
Member

@rickstaa here's a branch with my suggested changes: aca9cc8...vg/update/ai-runner-image-flag-support

Keep in mind I only updated docker.go, but not the tests. If you agree with the change would you mind updating the tests as well?

Thanks will do!

This commit ensures the tests are compatible with the new image
overrides behavoir.
This commit enhances the worker tests by introducing cases to verify the
behavior of image overrides.
rickstaa added a commit to RUFFY-369/go-livepeer that referenced this pull request Jan 23, 2025
…des`

This commit introduces deprecation logic for the `aiRunnerImage` flag, replacing
it with a new `aiRunnerImageOverrides` flag. The new flag is designed to support
enhanced image override functionality as implemented in the worker logic
in [ai-worker PR livepeer#293](livepeer/ai-worker#293).
rickstaa added a commit to RUFFY-369/go-livepeer that referenced this pull request Jan 27, 2025
…des`

This commit introduces deprecation logic for the `aiRunnerImage` flag, replacing
it with a new `aiRunnerImageOverrides` flag. The new flag is designed to support
enhanced image override functionality as implemented in the worker logic
in [ai-worker PR livepeer#293](livepeer/ai-worker#293).
@rickstaa rickstaa merged commit 5fc1474 into livepeer:main Jan 28, 2025
2 checks passed
rickstaa added a commit to RUFFY-369/go-livepeer that referenced this pull request Jan 28, 2025
…des`

This commit introduces deprecation logic for the `aiRunnerImage` flag, replacing
it with a new `aiRunnerImageOverrides` flag. The new flag is designed to support
enhanced image override functionality as implemented in the worker logic
in [ai-worker PR livepeer#293](livepeer/ai-worker#293).
rickstaa added a commit to livepeer/go-livepeer that referenced this pull request Jan 28, 2025
This commit introduces deprecation logic for the `aiRunnerImage` flag, replacing it with a new `aiRunnerImageOverrides` flag. The new flag is designed to support enhanced image override functionality as implemented in the worker logic in [ai-worker PR #293](livepeer/ai-worker#293).

---------

Co-authored-by: Rick Staa <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants