-
Notifications
You must be signed in to change notification settings - Fork 26
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
base: main
Are you sure you want to change the base?
Support for JSON string in defaultImage field for overriding pipeline specific images in the mappings #293
Conversation
worker/docker.go
Outdated
@@ -97,6 +97,33 @@ type DockerManager struct { | |||
mu *sync.Mutex | |||
} | |||
|
|||
func overridePipelineImages(defaultImage string) error { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 👍
…line specific images in mappings
08e0bf9
to
ddfb96b
Compare
Towards closing 'livepeer/bounties/#69
This PR adds support for processing JSON string in
defaultImage
and specifies pipeline-specific images as key-value pairs with their mappings being updated to overridecontainerImage
.go-livepeer
PR which it supports is #3284cc @rickstaa