Skip to content

Commit 3eaf157

Browse files
committed
exporter: allow configuring inline attestations for image exporters
Signed-off-by: Justin Chadwell <[email protected]>
1 parent e55f8b6 commit 3eaf157

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

exporter/containerimage/opts.go

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,14 @@ import (
1212
)
1313

1414
const (
15-
keyImageName = "name"
16-
keyLayerCompression = "compression"
17-
keyCompressionLevel = "compression-level"
18-
keyForceCompression = "force-compression"
19-
keyOCITypes = "oci-mediatypes"
20-
keyBuildInfo = "buildinfo"
21-
keyBuildInfoAttrs = "buildinfo-attrs"
15+
keyImageName = "name"
16+
keyLayerCompression = "compression"
17+
keyCompressionLevel = "compression-level"
18+
keyForceCompression = "force-compression"
19+
keyOCITypes = "oci-mediatypes"
20+
keyBuildInfo = "buildinfo"
21+
keyBuildInfoAttrs = "buildinfo-attrs"
22+
keyForceInlineAttestations = "attestation-inline"
2223

2324
// preferNondistLayersKey is an exporter option which can be used to mark a layer as non-distributable if the layer reference was
2425
// already found to use a non-distributable media type.
@@ -75,6 +76,8 @@ func (c *ImageCommitOpts) Load(opt map[string]string) (map[string]string, error)
7576
err = parseBoolWithDefault(&c.BuildInfo, k, v, true)
7677
case keyBuildInfoAttrs:
7778
err = parseBoolWithDefault(&c.BuildInfoAttrs, k, v, false)
79+
case keyForceInlineAttestations:
80+
err = parseBool(&c.ForceInlineAttestations, k, v)
7881
case keyPreferNondistLayers:
7982
err = parseBool(&c.RefCfg.PreferNonDistributable, k, v)
8083
default:

0 commit comments

Comments
 (0)