diff --git a/acceptance/image/image.go b/acceptance/image/image.go index 7b8dd1231..f46ab1ca2 100644 --- a/acceptance/image/image.go +++ b/acceptance/image/image.go @@ -72,7 +72,6 @@ const ( ) const ( - unknownConfig = "application/vnd.unknown.config.v1+json" openPolicyAgentData = "application/vnd.cncf.openpolicyagent.data.layer.v1+json" title = "org.opencontainers.image.title" ) @@ -856,7 +855,7 @@ func createAndPushKeylessImage(ctx context.Context, imageName string) (context.C // layers func createAndPushPolicyBundle(ctx context.Context, imageName string, files *godog.Table) (context.Context, error) { bundle := mutate.MediaType(empty.Image, types.OCIManifestSchema1) - bundle = mutate.ConfigMediaType(bundle, unknownConfig) + bundle = mutate.ConfigMediaType(bundle, types.OCIConfigJSON) // add each row as a layer to the bundle for _, row := range files.Rows { diff --git a/internal/tracker/oci.go b/internal/tracker/oci.go index cb207beb4..fd9e70c9f 100644 --- a/internal/tracker/oci.go +++ b/internal/tracker/oci.go @@ -33,7 +33,6 @@ import ( ) const ( - unknownConfig = "application/vnd.unknown.config.v1+json" openPolicyAgentData = "application/vnd.cncf.openpolicyagent.data.layer.v1+json" title = "org.opencontainers.image.title" dataFileTitle = "data/data/trusted_tekton_tasks.yml" @@ -117,7 +116,7 @@ func PushImage(ctx context.Context, imageRef string, data []byte, invocation str } bundle := mutate.MediaType(empty.Image, types.OCIManifestSchema1) - bundle = mutate.ConfigMediaType(bundle, unknownConfig) + bundle = mutate.ConfigMediaType(bundle, types.OCIConfigJSON) if bundle, err = mutate.Append(bundle, mutate.Addendum{ History: v1.History{ CreatedBy: invocation, diff --git a/internal/tracker/oci_test.go b/internal/tracker/oci_test.go index edcb1393d..13621e9f2 100644 --- a/internal/tracker/oci_test.go +++ b/internal/tracker/oci_test.go @@ -117,7 +117,7 @@ func TestPullImage(t *testing.T) { yaml := []byte("data: blah") img := mutate.MediaType(empty.Image, types.OCIManifestSchema1) - img = mutate.ConfigMediaType(img, unknownConfig) + img = mutate.ConfigMediaType(img, types.OCIConfigJSON) img, err := mutate.Append(img, mutate.Addendum{ MediaType: openPolicyAgentData, Layer: static.NewLayer(yaml, openPolicyAgentData),