Extend StorageObjectUpload() to allow setting custom metadata on the uploaded object. Modify worker's osbuild job implementation and GCP CLI upload tool to set the chosen image name as a custom metadata on the uploaded object. This will make it possible to connect Storage objects to specific images. Add News entry about image name being added as metadata to uploaded GCP Storage object as part of worker job. Signed-off-by: Tomas Hozza <thozza@redhat.com>
361 B
361 B
Worker: Set image name as custom metadata on the file uploaded to GCP Storage
Worker osbuild jobs with GCP upload target now set the chosen image name as custom metadata on the uploaded object. This makes finding the uploaded object using the image name possible. The behavior is useful mainly for cleaning up cloud resources in case of unexpected failures.