Skip to content

Commit

Permalink
fix: store a list of image-mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
ccwienk committed Oct 16, 2024
1 parent f5307c7 commit 1bd9553
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions concourse/steps/helmcharts.mako
Original file line number Diff line number Diff line change
Expand Up @@ -204,13 +204,14 @@ for mapping in helmchart_cfg.mappings:
resource_name, ref_name = mapping.referenced_resource_and_attribute
attrs_by_resource[resource_name][ref_name] = mapping.attribute
%>
mappings = []
% for resource_name, attribute_mappings in attrs_by_resource.items():
mappings = {
mappings.append({
'resource': {'name': '${resource_name}'},
% for ref, attr in attribute_mappings.items():
'${ref}': '${attr}',
% endfor
}
})
% endfor
mapping_root = {
'imageMapping': mappings,
Expand Down

0 comments on commit 1bd9553

Please sign in to comment.