From 7efde27b481a14545cbbc3d155aa96143378bd3e Mon Sep 17 00:00:00 2001 From: Updatebot Date: Mon, 26 Aug 2024 10:14:21 -0500 Subject: [PATCH] kustomize: Fix images schema The image name is specified in a field named `name`, not `image`. --- updatebot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/updatebot.py b/updatebot.py index fa67b2b..589b5f9 100644 --- a/updatebot.py +++ b/updatebot.py @@ -136,11 +136,11 @@ class KustomizeProject(BaseProject): images = kustomization.setdefault('images', []) new_tag = self.tag_format.format(version=version) for image in images: - if image['image'] == self.image: + if image['name'] == self.image: image['newTag'] = new_tag break else: - images.append({'image': self.image, 'newTag': new_tag}) + images.append({'name': self.image, 'newTag': new_tag}) with filepath.open('wb') as f: yaml.dump(kustomization, f)