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

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

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
@@ -97,6 +97,33 @@ type DockerManager struct {
mu *sync.Mutex
}

func overridePipelineImages(defaultImage string) error {
Copy link
Member

Choose a reason for hiding this comment

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

@RUFFY-369 could you add a basic function docsting and tests?

Copy link
Collaborator Author

@RUFFY-369 RUFFY-369 Dec 1, 2024

Choose a reason for hiding this comment

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

@rickstaa Thanks for the review! I just added the docstring and the test in the latest commits. 👍 🚀

Update:some nits were made in test for test failure due to logical error(change in pipeline names) and update func code for tackling malformed json case in the latest commit. Also added one more test case.
Rest is working smoothly with tests passing 👍

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.

2 participants