Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
oci/client: drop custom platfrom from default client options
In OCI terms having platform `flux/flux/v2` implies that the image is runnable on some OS called "flux" on architecture called "flux". In reality there is no such platform and there is no good reason for Flux to pretend. OCI 1.1 (albeit still and RC at the moment), doesn't mandate artifact to define a platform at all. When client is constructed with a platform selector, many functions will apply the selector, which is often undesirable. The `flux/flux/v2` platform was only defined in client options, so it wasn't set on any images and is safe to drop; source-controller doesn't use `DefaultOptions`, so there is no concern. Another inconvenient behaviour of GGCR is that some functions will pick just the very first element that matches the platform and ignore any additional elements, e.g. elements with same platform, but different media type. That behaviour prevents searching for artefacts by media type. Signed-off-by: Ilya Dmitrichenko <errordeveloper@gmail.com>
- Loading branch information