kustomize: Fix images schema
All checks were successful
infra/updatebot/pipeline/head This commit looks good
All checks were successful
infra/updatebot/pipeline/head This commit looks good
The image name is specified in a field named `name`, not `image`.
This commit is contained in:
@@ -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)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user