allow adding additional tags to OCI index and manifests#111
Merged
yeoldegrove merged 6 commits intomainfrom Jun 4, 2025
Merged
allow adding additional tags to OCI index and manifests#111yeoldegrove merged 6 commits intomainfrom
yeoldegrove merged 6 commits intomainfrom
Conversation
db91efb to
8bc6eea
Compare
01c7621 to
9715853
Compare
NotTheEvilOne
requested changes
May 22, 2025
| commit = "" | ||
| for artifact in oci_metadata: | ||
| if artifact["media_type"] == "application/io.gardenlinux.release": | ||
| file = open(f"{directory}/{artifact["file_name"]}", "r") |
Contributor
There was a problem hiding this comment.
Please use configparser.ConfigParser here as it will be compatible with the file content and makes the code more readable :)
Contributor
Author
There was a problem hiding this comment.
configparser seems to be designed for ini files (is compatible to env-files though) but fileshttps://docs.python.org/3/library/configparser.html#unnamed-sections seems to be a python 3.13 feature.
Garden Linux already has python 3.13 so we could bump the python version.
Added an implementation hat needs python 3.13.
adds the possibility to get debug logs for pytest e.g. debug which OCI tags exist
add create_test_data to conftest remove generate_test_certificates from helper as it is on conftest already
9715853 to
0d2ca49
Compare
0d2ca49 to
e1bdc94
Compare
enables pushing additional tags to OCI manifest
enables pushing additional tags to OCI index
e1bdc94 to
c1639c5
Compare
NotTheEvilOne
pushed a commit
that referenced
this pull request
Jun 4, 2025
* add a retry_on_error decoration for gardenlinux.oci * add make targets test-debug and test-trace adds the possibility to get debug logs for pytest e.g. debug which OCI tags exist * generate test data in a pythonic way add create_test_data to conftest remove generate_test_certificates from helper as it is on conftest already * add gardenlinux.oci.registry.push_additional_tags_manifest enables pushing additional tags to OCI manifest * update gardenlinux.oci.registry.update_index enables pushing additional tags to OCI index * rename src/gardenlinux/oci/helper.py src/gardenlinux/oci/wrapper.py
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What this PR does / why we need it:
gardenlinux/gardenlinux#2754 outlines the restructure of OCI release tags.
To actually add additional tags to the OCI index and manifests, a new paramter
--additional-taghas to be added to thegl-oci update-index|push-manifestcalls.Additionally this adds:
make test-debugandmake test-traceto debug OCI taggingSpecial notes for your reviewer: