From fbc2c45e7f1701e568de33ca926ae370930d9d91 Mon Sep 17 00:00:00 2001 From: Timofei Larkin Date: Tue, 12 Aug 2025 14:22:15 +0300 Subject: [PATCH] [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 --- packages/system/kamaji/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/system/kamaji/Makefile b/packages/system/kamaji/Makefile index aa864c1a..55921018 100644 --- a/packages/system/kamaji/Makefile +++ b/packages/system/kamaji/Makefile @@ -27,4 +27,5 @@ image: yq -i '.kamaji.image.repository = strenv(REPOSITORY)' values.yaml TAG=$(TAG)@$$(yq e '."containerimage.digest"' images/kamaji.json -o json -r) \ yq -i '.kamaji.image.tag = strenv(TAG)' values.yaml + yq -i '.kamaji.extraArgs[0] = "--migrate-image=" + .kamaji.image.repository + ":" + .kamaji.image.tag' values.yaml rm -f images/kamaji.json