Skip to content

Commit

Permalink
fix: update properly reference to the image in export map
Browse files Browse the repository at this point in the history
This causes the image manifest to be generated incorrectly.

Signed-off-by: Andrey Smirnov <[email protected]>
  • Loading branch information
smira authored and talos-bot committed Jul 20, 2020
1 parent f71d92d commit f3b2dcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/pkg/pkgfile/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func Build(ctx context.Context, c client.Client, options *environment.Options) (
} else {
k := ctrplatforms.Format(platform.PlatformSpec)
res.AddMeta(fmt.Sprintf("%s/%s", exptypes.ExporterImageConfigKey, k), config)
res.AddRef(platform.ID, ref)
res.AddRef(k, ref)
expPlatforms.Platforms[i] = exptypes.Platform{
ID: k,
Platform: platform.PlatformSpec,
Expand Down

0 comments on commit f3b2dcf

Please sign in to comment.