You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We (w/@Dentrax) thought that one of the main goals of the OCI Artifacts1 is that it allows you to author new artifact types that you want to support within your client tooling.2 The first step of writing a new artifact type is to define a unique type for it.3 Defining a unique artifact allows various tools to know how to work with the type uniquely. When writing this, Flux's pull and push operations rely on the first layer of an image.4 As we can use client tools for registry and image operations such as crane, skopeo, etc., we have to know that we should put things to the first layer of an image, so, in today's world, we can store different things within the image layers in addition to the tarball. So, if we define Flux's artifact types for OCI, we can search them within image layers. With that, we don't need to limit ourselves to only storing things at the first layer of an image.
For example, OPA Rego policies can be stored on the OCI registry with their own types5; also, we have planned to do the same in Kyverno CLI6.
We (w/@Dentrax) thought that one of the main goals of the OCI Artifacts1 is that it allows you to author new artifact types that you want to support within your client tooling.2 The first step of writing a new artifact type is to define a unique type for it.3 Defining a unique artifact allows various tools to know how to work with the type uniquely. When writing this, Flux's pull and push operations rely on the first layer of an image.4 As we can use client tools for registry and image operations such as crane, skopeo, etc., we have to know that we should put things to the first layer of an image, so, in today's world, we can store different things within the image layers in addition to the tarball. So, if we define Flux's artifact types for OCI, we can search them within image layers. With that, we don't need to limit ourselves to only storing things at the first layer of an image.
For example, OPA Rego policies can be stored on the OCI registry with their own types5; also, we have planned to do the same in Kyverno CLI6.
Footnotes
https://github.com/opencontainers/artifacts ↩
https://github.com/opencontainers/artifacts/blob/main/artifact-authors.md ↩
https://github.com/opencontainers/artifacts/blob/main/artifact-authors.md#defining-a-unique-artifact-type ↩
https://github.com/fluxcd/pkg/blob/8d88cfe7078e71936258a70e111bd6a429fa2bc8/oci/client/pull.go#L65 ↩
https://github.com/open-policy-agent/conftest/blob/master/internal/commands/push.go ↩
https://github.com/developer-guy/oci-kyverno/blob/master/main.go ↩
The text was updated successfully, but these errors were encountered: