Closed Vincinator closed 3 months ago
Image state added to gl-oci tooling. In the task gardenlinux/gardenlinux#2441 we will take care of setting the states accordingly
Special case: overwrite an existing image with same tag (version-cname-arch), but different digest. Old manifest still exists, but must NOT be referenced by oci-index anymore. Additionally, old manifest must change state to "DEPRECATED".
Setting it to deprecated will create a new manifest with a new digest, while the old one still is available without the annotations.
So we need to figure out if we want to delete, or keep old manifests that are invalidated
last comment fixed with https://github.com/gardenlinux/gl-oci/commit/4d5084a38929bab6d60c5fddea144fc76f5166d4
A manifest contains layers. The flow how we create a manifest per Garden Linux image flavour is described in gardenlinux/python-gardenlinux-lib#45 (see the diagram).
The manifest can be created consecutively. In the Garden Linux case it would make sense to have the following steps:
This means that consecutive steps can attach blobs to a single manifest. Therefore, a manifest can be in different states depending on what additional layers are already available. States can be defined depending on the use case.
For Garden Linux OCI artifact images, we define the states like this: