kustomize: Fix images schema
infra/updatebot/pipeline/head This commit looks good Details

The image name is specified in a field named `name`, not `image`.
master
Updatebot 2024-08-26 10:14:21 -05:00 committed by Dustin C. Hatch
parent bcf7ee2cf1
commit 7efde27b48
1 changed files with 2 additions and 2 deletions

View File

@ -136,11 +136,11 @@ class KustomizeProject(BaseProject):
images = kustomization.setdefault('images', []) images = kustomization.setdefault('images', [])
new_tag = self.tag_format.format(version=version) new_tag = self.tag_format.format(version=version)
for image in images: for image in images:
if image['image'] == self.image: if image['name'] == self.image:
image['newTag'] = new_tag image['newTag'] = new_tag
break break
else: else:
images.append({'image': self.image, 'newTag': new_tag}) images.append({'name': self.image, 'newTag': new_tag})
with filepath.open('wb') as f: with filepath.open('wb') as f:
yaml.dump(kustomization, f) yaml.dump(kustomization, f)