-
Notifications
You must be signed in to change notification settings - Fork 90
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 & 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 <[email protected]>
- Loading branch information
1 parent
ab26c6b
commit b70d673
Showing
8 changed files
with
10 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters