kustomize: Fix images schema
infra/updatebot/pipeline/head This commit looks good
Details
infra/updatebot/pipeline/head This commit looks good
Details
The image name is specified in a field named `name`, not `image`.master
parent
bcf7ee2cf1
commit
7efde27b48
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue