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)