-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove deprecated ADDITIONAL_OCI_ARTIFACT_TYPES #1590
Merged
lubosmj
merged 1 commit into
pulp:main
from
git-hyagi:remove-deprecated-ADDITIONAL_OCI_ARTIFACT_TYPES
Apr 30, 2024
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Removed the deprecated `ADDITIONAL_OCI_ARTIFACT_TYPES` setting. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,14 @@ | ||
# Configure Supported OCI Types | ||
|
||
By default, the following list of media types is enabled in the Container Registry: | ||
|
||
* OCI images | ||
* Helm | ||
* Cosign, SBOMs, attestations | ||
* Source containers | ||
* Singularity | ||
* Conftest policies | ||
* WASM | ||
|
||
!!! note | ||
|
||
The `ADDITIONAL_OCI_ARTIFACT_TYPES` is deprecated and will be removed in a future release. | ||
Since the validation of media types is not part of the OCI standard and new types keep being | ||
added we decided to deprecate this configuration. | ||
|
||
For any other OCI media type that is not supported by default, you can add them to the | ||
`ADDITIONAL_OCI_ARTIFACT_TYPES` setting using the following format: | ||
|
||
``` | ||
ADDITIONAL_OCI_ARTIFACT_TYPES = { | ||
"<oci config type 1>": [ | ||
"<oci layer type A>", | ||
"<oci layer type B>", | ||
], | ||
"<oci config type 2>": [ | ||
"<oci layer type C>", | ||
"<oci layer type D>", | ||
], | ||
} | ||
``` | ||
|
||
For example, you can add support for custom defined mediatype by adding the following to your | ||
`ADDITIONAL_OCI_ARTIFACT_TYPES` setting: | ||
|
||
``` | ||
ADDITIONAL_OCI_ARTIFACT_TYPES = { | ||
"<oci config type 1>": [ | ||
"<oci layer type A>", | ||
"<oci layer type B>", | ||
], | ||
"<oci config type 2>": [ | ||
"<oci layer type C>", | ||
"<oci layer type D>", | ||
], | ||
"application/vnd.guardians.groot.config.v1+json": [ | ||
"text/plain", | ||
"application/vnd.guardians.groot.docs.layer.v1+tar", | ||
], | ||
} | ||
|
||
``` | ||
|
||
!!! note | ||
|
||
When adding OCI media types that are not configured by default, it is necessary then to manually add | ||
the `Default oci types<default-oci-types>` to the list. | ||
The OCI image-spec types are supported by default, they are built-in and cannot be disabled, it is | ||
not necessary to add them manually to the list. | ||
# Support To OCI Artifacts | ||
|
||
Pulp is not only a container registry, it also supports OCI artifacts by leveraging the config | ||
property on the image manifest. | ||
Here are some examples of compliant OCI artifacts supported by `pulp_container` plugin: | ||
|
||
* [OCI images](site:pulp_container/docs/user/guides/manage-image) | ||
* [Helm](site:pulp_container/docs/user/guides/manage-helm-chart) | ||
* [Flatpak images](site:pulp_container/docs/user/guides/manage-flatpak) | ||
* [Cosign, SBOMs, attestations](site:pulp_container/docs/user/guides/manage-cosign-signature) | ||
* Source containers | ||
* Singularity | ||
* Conftest policies | ||
* WASM |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would not remove entirely this file and leave a section in documentation stating that we are an OCI artifact registry. I would reword some of these docs with few examples what kind of additional to regular mediatypes we support ( out of the box) so it is clear for the end user that we are not just container but also artifact registry.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about we mention this information on our landing page (https://docs.pulpproject.org/pulp_container/)? I do not think it is necessary to have a dedicated page for it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I could be going both ways, however my preference would be to have it in a separate page for better readability and not cluttering the landing page
Example https://docs.docker.com/docker-hub/oci-artifacts/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@git-hyagi, do you think we should keep this doc section? If so, we may want to revisit the paragraphs and state clearly that we support
OCI Artifacts
, e.g., by referencing helm charts and providing more insights into what a generic OCI Artifact might look like. Of course, omitting the removed setting.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am in favor of keeping this doc section and rewriting the paragraphs to make it clear that this not just a container registry.