Skip to content

Commit

Permalink
Add annotations as labels to Config
Browse files Browse the repository at this point in the history
  • Loading branch information
lyoung-confluent committed Sep 27, 2023
1 parent b71bae6 commit d59c326
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/build/oci/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func BuildImageFromLayer(layer v1.Layer, ic types.ImageConfiguration, created ti
cfg.Architecture = platform.Architecture
cfg.Variant = platform.Variant
cfg.Created = v1.Time{Time: created}
cfg.Config.Labels = make(map[string]string)
cfg.Config.Labels = annotations
cfg.OS = "linux"

// NOTE: Need to allow empty Entrypoints. The runtime will override to `/bin/sh -c` and handle quoting
Expand Down

0 comments on commit d59c326

Please sign in to comment.