fix(image-builder):Refactor ensembler image naming convention #368
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.
Context
This fix/enhancement revises the image naming convention for both ensembler service and ensembler job images built by the image builder:
Before
or
After
or
By removing the
runID
from the image name, we now allow all images built for the same ensembler to be stored within the same image repository as opposed to storing them in separate repositories. Furthermore, since all built images of the same ensembler will now be stored in the same repository, we now tag them with their specificrunID
-s in order to distinguish between different versions of the same ensembler.This PR contains changes similar to what is implemented for Merlin in caraml-dev/merlin#526.
Modifications
api/turing/imagebuilder/ensembler.go
- Change in template string for the ensembler image nameapi/turing/imagebuilder/imagebuilder.go
- Change of image tag fromensemblerID
torunID