Skip to content

[nydus] Remove old config's reference in config descriptor's annotations when adding empty layer#353

Merged
imeoer merged 1 commit intogoharbor:mainfrom
Fricounet:fricounet/oci-config-ann
Oct 13, 2025
Merged

[nydus] Remove old config's reference in config descriptor's annotations when adding empty layer#353
imeoer merged 1 commit intogoharbor:mainfrom
Fricounet:fricounet/oci-config-ann

Conversation

@Fricounet
Copy link
Copy Markdown
Contributor

Trying to push a manifest with an added empty layer to ECR currently fails because the manifest's config descriptor has an annotation field with a referrence to the old config digest.

The failure is Invalid parameter at 'ImageManifest' failed to satisfy constraint: 'Invalid JSON syntax'.

This field should be accepted by ECR because it's present in the spec but since there is no hard need to keep it as an annotation on the config descriptor, this PR removes the annotation entirely since the original config can still be discovered by finding the original OCI manifest using the digest stored in the new manifest annotations.

…ons when adding empty layer

Trying to push a manifest with an added empty layer to ECR currently fails because the manifest's config descriptor has an annotation field with a referrence to the old config digest. The failure is ` Invalid parameter at 'ImageManifest' failed to satisfy constraint: 'Invalid JSON syntax'`.
This field should be accepted by ECR because it's present in the spec but since there is no hard need to keep it as an annotation on the config descriptor, this commit remove the annotation entirely since the original config can still be discovered by finding the original OCI manifest using the digest stored in the new manifest annotations.

Signed-off-by: Baptiste Girard-Carrabin <baptiste.girardcarrabin@datadoghq.com>
@Fricounet Fricounet force-pushed the fricounet/oci-config-ann branch from 2994941 to d66f72d Compare October 10, 2025 10:03
@imeoer
Copy link
Copy Markdown
Collaborator

imeoer commented Oct 13, 2025

Thanks, LGTM!

@imeoer imeoer merged commit 4cb8d25 into goharbor:main Oct 13, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants