Skip to content

Conversation

@whatsacomputertho
Copy link
Member

Fixes an issue in which, even if we require support for multi-arch in our lint config, we would not catch the issue if we were passed a single-arch manifest. Fixes the issue by extending the ContainerImageManifestListLinter and its lint rule implementations to also support being passed a manifest.

For ManifestListSupportsRequiredMediaTypes, it now supports a new config attribute called allow-single-arch which defaults to True. If true and passed a manifest, then it will just check the manifest media type. If false and passed a manifest, then it will return a lint error.

For ManifestListSupportsRequiredPlatforms, it simply checks the manifest's platform. The ContainerImageLinter also passes in the manifest's config into this lint rule implementation when it is a single-arch manifest because that is where the platform metadata is stored.

Signed-off-by: ethanbalcik <ebalcik71@gmail.com>
@whatsacomputertho whatsacomputertho merged commit 3c9844c into main Nov 19, 2025
5 checks passed
@whatsacomputertho whatsacomputertho deleted the catch-single-arch branch November 19, 2025 19:37
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