gardenlinux / python-gardenlinux-lib

Contains tools to work with the features directory of gardenlinux, for example deducting dependencies from feature sets or validating cnames
0 stars 0 forks source link

Get oci metadata from filelist #40

Closed mxmxchere closed 2 months ago

mxmxchere commented 2 months ago

This PR is a refactoring that abstracts the get_oci_metadata function a little bit. Before it was implicit to use the cname to generate a file list that then in turn is used to fill the oci_metadata for every file. This list is then used in later steps to create layers and to form a index manifest. With this PR the get_oci_metadata function is altered a little bit so that it takes a file list now, the rest of the process remains the same. This approach allows to use multiple ways to create the file list of which two are used now:

via feature expansion (old method) via extraction of a tarball (new, additional method)