Skip to content

Commit c45207f

Browse files
committed
[feat.] image config field imageRef
Signed-off-by: zhuangbowei.zbw <zhuangbowei.zbw@alibaba-inc.com>
1 parent c5dd4fa commit c45207f

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

pkg/snapshot/storage.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,7 @@ func (o *snapshotter) constructOverlayBDSpec(ctx context.Context, key string, wr
544544
}
545545

546546
configJSON.RepoBlobURL = blobPrefixURL
547+
configJSON.ImageRef = ref
547548
if isTurboOCI, dataDgst, compType := o.checkTurboOCI(info.Labels); isTurboOCI {
548549
var fsmeta string
549550

pkg/types/types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ package types
1818

1919
// OverlayBDBSConfig is the config of overlaybd target.
2020
type OverlayBDBSConfig struct {
21+
ImageRef string `json:"imageRef"`
2122
RepoBlobURL string `json:"repoBlobUrl"`
2223
Lowers []OverlayBDBSConfigLower `json:"lowers"`
2324
Upper OverlayBDBSConfigUpper `json:"upper"`

0 commit comments

Comments
 (0)