Skip to content

Commit fbc2c45

Browse files
committed
[kamaji] Pass in-tree image as migrate-image
The in-tree build of the Kamaji image lacks the appropriate ldflags, resulting in invalid flags of the Kamaji controller manager binary. When a migration job starts, it tries to pull an image with an explicit empty string as a tag, which is invalid. This patch sets the in-tree image as the image for the migration job, both working around this issue, as well as being consistent in the image used. Signed-off-by: Timofei Larkin <[email protected]>
1 parent c02a381 commit fbc2c45

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎packages/system/kamaji/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,5 @@ image:
2727
yq -i '.kamaji.image.repository = strenv(REPOSITORY)' values.yaml
2828
TAG=$(TAG)@$$(yq e '."containerimage.digest"' images/kamaji.json -o json -r) \
2929
yq -i '.kamaji.image.tag = strenv(TAG)' values.yaml
30+
yq -i '.kamaji.extraArgs[0] = "--migrate-image=" + .kamaji.image.repository + ":" + .kamaji.image.tag' values.yaml
3031
rm -f images/kamaji.json

0 commit comments

Comments
 (0)