-
Notifications
You must be signed in to change notification settings - Fork 0
allow adding additional tags to OCI index and manifests #111
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
Conversation
db91efb
to
8bc6eea
Compare
01c7621
to
9715853
Compare
for artifact in oci_metadata: | ||
if artifact["media_type"] == "application/io.gardenlinux.release": | ||
file = open(f"{directory}/{artifact["file_name"]}", "r") |
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.
Please use configparser.ConfigParser
here as it will be compatible with the file content and makes the code more readable :)
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.
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
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.
LGTM
* 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
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-tag
has to be added to thegl-oci update-index|push-manifest
calls.Additionally this adds:
make test-debug
andmake test-trace
to debug OCI taggingSpecial notes for your reviewer: